thermophysicalFunction: Moved the operator<< to thermophysicalFunction.C

This commit is contained in:
Henry Weller
2019-11-26 20:05:32 +00:00
parent 0f9578d53f
commit f2f9fae27b
2 changed files with 18 additions and 5 deletions

View File

@ -94,4 +94,13 @@ void Foam::thermophysicalFunction::write(Ostream& os, const word& name) const
} }
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
Foam::Ostream& Foam::operator<<(Ostream& os, const thermophysicalFunction& f)
{
f.write(os);
return os;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -44,6 +44,10 @@ Description
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class thermophysicalFunction;
Ostream& operator<<(Ostream& os, const thermophysicalFunction& l);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class thermophysicalFunction Declaration Class thermophysicalFunction Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -102,11 +106,11 @@ public:
// Ostream Operator // Ostream Operator
friend Ostream& operator<<(Ostream& os, const thermophysicalFunction& f) friend Ostream& operator<<
{ (
f.write(os); Ostream& os,
return os; const thermophysicalFunction& f
} );
}; };