gcc8 compliance improvments. Danial Khazaei

This commit is contained in:
Hrvoje Jasak 2019-04-09 11:50:59 +01:00
commit ca3b76f412
110 changed files with 586 additions and 58 deletions

View file

@ -72,8 +72,15 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators
class rotationalConstraint;
Ostream& operator<<(Ostream&, const rotationalConstraint&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class rotationalConstraint Declaration Class rotationalConstraint Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -72,8 +72,15 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators
class translationalConstraint;
Ostream& operator<<(Ostream&, const translationalConstraint&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class translationalConstraint Declaration Class translationalConstraint Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -54,8 +54,15 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators
class combinedRestraint;
Ostream& operator<<(Ostream&, const combinedRestraint&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class combinedRestraint Declaration Class combinedRestraint Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -54,8 +54,15 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators
class rotationalRestraint;
Ostream& operator<<(Ostream&, const rotationalRestraint&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class rotationalRestraint Declaration Class rotationalRestraint Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -54,8 +54,15 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators
class translationalRestraint;
Ostream& operator<<(Ostream&, const translationalRestraint&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class translationalRestraint Declaration Class translationalRestraint Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -52,6 +52,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class sixDOFqODE;
Ostream& operator<<(Ostream&, const sixDOFqODE&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class sixDOFqODE Declaration Class sixDOFqODE Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -51,6 +51,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class translationODE;
Ostream& operator<<(Ostream&, const translationODE&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class translationODE Declaration Class translationODE Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -47,6 +47,17 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Istream;
class Ostream;
// Forward declaration of friend functions and operators
class memInfo;
Istream& operator>>(Istream&, memInfo&);
Ostream& operator<<(Ostream&, const memInfo&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class memInfo Declaration Class memInfo Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -51,6 +51,13 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class ensightPart;
Ostream& operator<<(Ostream&, const ensightPart&);
ensightGeoFile& operator<<(ensightGeoFile&, const ensightPart&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class ensightPart Declaration Class ensightPart Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -46,6 +46,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class ensightParts;
ensightGeoFile& operator<<(ensightGeoFile&, const ensightParts&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class ensightParts Declaration Class ensightParts Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -44,6 +44,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class boundaryPatch;
Ostream& operator<<(Ostream&, const boundaryPatch&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class boundaryPatch Declaration Class boundaryPatch Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -62,6 +62,8 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class polyPatch; class polyPatch;
class polyMesh; class polyMesh;
class primitiveMesh; class primitiveMesh;
@ -69,6 +71,13 @@ class edge;
class face; class face;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators
class directionInfo;
Ostream& operator<<(Ostream&, const directionInfo&);
Istream& operator>>(Istream&, directionInfo&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class directionInfo Declaration Class directionInfo Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -43,9 +43,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Istream; class Istream;
class Ostream; class Ostream;
// Forward declaration of friend functions and operators
class refineCell;
Ostream& operator<<(Ostream&, const refineCell&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class refineCell Declaration Class refineCell Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -51,6 +51,13 @@ namespace Foam
class polyPatch; class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators
class wallNormalInfo;
Ostream& operator<<(Ostream&, const wallNormalInfo&);
Istream& operator>>(Istream&, wallNormalInfo&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class wallNormalInfo Declaration Class wallNormalInfo Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -55,6 +55,12 @@ class polyTopoChanger;
class polyTopoChange; class polyTopoChange;
class mapPolyMesh; class mapPolyMesh;
// Forward declaration of friend functions and operators
class polyMeshModifier;
Ostream& operator<<(Ostream&, const polyMeshModifier&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class polyMeshModifier Declaration Class polyMeshModifier Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -44,12 +44,17 @@ SourceFiles
namespace Foam namespace Foam
{ {
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Forward declaration of classes
class polyMesh; class polyMesh;
class mapPolyMesh; class mapPolyMesh;
class polyBoundaryMesh; class polyBoundaryMesh;
// Forward declaration of friend functions and operators
class polyTopoChanger;
Ostream& operator<<(Ostream&, const polyTopoChanger&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class polyTopoChanger Declaration Class polyTopoChanger Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -45,9 +45,17 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class polyPatch; class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators
class refinementData;
Ostream& operator<<(Ostream&, const refinementData&);
Istream& operator>>(Istream&, refinementData&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class refinementData Declaration Class refinementData Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -45,9 +45,17 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class polyPatch; class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators
class refinementDistanceData;
Ostream& operator<<(Ostream&, const refinementDistanceData&);
Istream& operator>>(Istream&, refinementDistanceData&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class refinementDistanceData Declaration Class refinementDistanceData Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -87,6 +87,14 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class mapPolyMesh; class mapPolyMesh;
class mapDistributePolyMesh; class mapDistributePolyMesh;
class polyMesh;
// Forward declaration of friend functions and operators
class refinementHistory;
Ostream& operator<<(Ostream&, const refinementHistory&);
Istream& operator>>(Istream&, refinementHistory&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class refinementHistory Declaration Class refinementHistory Declaration
@ -360,6 +368,10 @@ public:
}; };
Istream& operator>>(Istream&, refinementHistory::splitCell8&);
Ostream& operator<<(Ostream&, const refinementHistory::splitCell8&);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam } // End namespace Foam

View file

@ -45,6 +45,13 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class edgeMesh;
Ostream& operator<<(Ostream&, const edgeMesh&);
Istream& operator>>(Istream&, edgeMesh&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class edgeMesh Declaration Class edgeMesh Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -107,16 +107,18 @@ Author
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
class equation; class equation;
class equationOperation; class equationOperation;
// Forward declaration of friend functions and operators
// *** Located in equationReaderIO.C *** // *** Located in equationReaderIO.C ***
class equationReader; class equationReader;
Istream& operator>>(Istream&, equationReader&); Istream& operator>>(Istream&, equationReader&);
Ostream& operator<<(Ostream&, const equationReader&); Ostream& operator<<(Ostream&, const equationReader&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class equationReader Declaration Class equationReader Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -50,7 +50,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class faBoundaryMesh; class faBoundaryMesh;
class faPatch;
Ostream& operator<<(Ostream&, const faPatch&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class faPatch Declaration Class faPatch Declaration

View file

@ -80,8 +80,15 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class fvMesh; class fvMesh;
// Forward declaration of friend functions and operators
class porousZone;
Ostream& operator<<(Ostream&, const porousZone&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class porousZone Declaration Class porousZone Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -61,7 +61,11 @@ else
const scalar deltaX = Foam::cbrt(mesh.V()[0]); const scalar deltaX = Foam::cbrt(mesh.V()[0]);
velMag = mag(U[0]); // recover velocity field in a more general way
const volVectorField& URef
= mesh.db().lookupObject<const volVectorField>("U");
velMag = mag(URef[0]);
CoNum = velMag*deltaT/deltaX; CoNum = velMag*deltaT/deltaX;

View file

@ -51,8 +51,15 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
template<class Type> class octree; template<class Type> class octree;
// Forward declaration of friend functions and operators
class octreeDataPoint;
Ostream& operator<<(Ostream&, const octreeDataPoint&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class octreeDataPoint Declaration Class octreeDataPoint Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -66,8 +66,19 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Random; class Random;
// Forward declaration of friend functions and operators
class treeBoundBox;
bool operator==(const treeBoundBox&, const treeBoundBox&);
bool operator!=(const treeBoundBox&, const treeBoundBox&);
Istream& operator>>(Istream& is, treeBoundBox&);
Ostream& operator<<(Ostream& os, const treeBoundBox&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class treeBoundBox Declaration Class treeBoundBox Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -50,13 +50,14 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class treeBoundBox; class treeBoundBox;
class Ostream; class Ostream;
template<class Type> class octree; template<class Type> class octree;
template<class Type> class treeLeaf;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
template<class Type> class treeLeaf;
template<class Type> Istream& operator>>(Istream&, treeLeaf<Type>&); template<class Type> Istream& operator>>(Istream&, treeLeaf<Type>&);
template<class Type> Ostream& operator<<(Ostream&, const treeLeaf<Type>&); template<class Type> Ostream& operator<<(Ostream&, const treeLeaf<Type>&);

View file

@ -58,12 +58,12 @@ namespace Foam
{ {
// class intersection; // class intersection;
template<class Type> class octree; template<class Type> class octree;
template<class Type> class treeLeaf; template<class Type> class treeLeaf;
template<class Type> class treeNode;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
template<class Type> class treeNode;
template<class Type> Istream& operator>>(Istream&, treeNode<Type>&); template<class Type> Istream& operator>>(Istream&, treeNode<Type>&);
template<class Type> Ostream& operator<<(Ostream&, const treeNode<Type>&); template<class Type> Ostream& operator<<(Ostream&, const treeNode<Type>&);

View file

@ -43,6 +43,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Istream; class Istream;
class Ostream; class Ostream;

View file

@ -55,10 +55,11 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
template<class T> class List; template<class T> class List;
template<class T> class UList; template<class T> class UList;
// Forward declaration of friend functions and operators
template<class T, class Key, class Hash> class HashTable; template<class T, class Key, class Hash> class HashTable;
template<class T, class Key, class Hash> class HashPtrTable; template<class T, class Key, class Hash> class HashPtrTable;

View file

@ -53,9 +53,10 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
template<class T> class List; template<class T> class List;
// Forward declaration of friend functions and operators
template<class T, class Key, class Hash> class StaticHashTable; template<class T, class Key, class Hash> class StaticHashTable;
template<class T, class Key, class Hash> Istream& operator>> template<class T, class Key, class Hash> Istream& operator>>

View file

@ -43,6 +43,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Istream; class Istream;
class Ostream; class Ostream;

View file

@ -44,6 +44,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Istream; class Istream;
class Ostream; class Ostream;

View file

@ -44,6 +44,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Ostream; class Ostream;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators

View file

@ -49,8 +49,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
template<class T> class UList;
template<class T> class SLList;
// Forward declaration of friend functions and operators
template<class T, unsigned Size> class FixedList; template<class T, unsigned Size> class FixedList;
template<class T, unsigned Size> template<class T, unsigned Size>
@ -59,9 +63,6 @@ Istream& operator>>(Istream&, FixedList<T, Size>&);
template<class T, unsigned Size> template<class T, unsigned Size>
Ostream& operator<<(Ostream&, const FixedList<T, Size>&); Ostream& operator<<(Ostream&, const FixedList<T, Size>&);
template<class T> class UList;
template<class T> class SLList;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class FixedList Declaration Class FixedList Declaration

View file

@ -143,9 +143,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
class boundBox; class boundBox;
// Forward declaration of friend functions and operators
class coordinateSystem;
bool operator!=(const coordinateSystem&, const coordinateSystem&);
Ostream& operator<<(Ostream&, const coordinateSystem&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class coordinateSystem Declaration Class coordinateSystem Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -47,6 +47,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Istream; class Istream;
class Ostream; class Ostream;
@ -64,6 +65,7 @@ template<class T, class BaseType> Ostream& operator<<
const CompactIOList<T, BaseType>& const CompactIOList<T, BaseType>&
); );
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class CompactIOList Declaration Class CompactIOList Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -65,14 +65,17 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
class regExp; class regExp;
class dictionary;
class SHA1Digest; class SHA1Digest;
// Forward declaration of friend functions and operators
class dictionary;
Istream& operator>>(Istream&, dictionary&); Istream& operator>>(Istream&, dictionary&);
Ostream& operator<<(Ostream&, const dictionary&); Ostream& operator<<(Ostream&, const dictionary&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class dictionaryName Declaration Class dictionaryName Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -51,6 +51,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class dictionaryEntry;
Ostream& operator<<(Ostream&, const dictionaryEntry&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class dictionaryEntry Declaration Class dictionaryEntry Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -45,8 +45,10 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
class dictionary;
// Forward declaration of friend functions and operators
template<class Type> class dimensioned; template<class Type> class dimensioned;
template<class Type> template<class Type>
@ -55,7 +57,6 @@ Istream& operator>>(Istream&, dimensioned<Type>&);
template<class Type> template<class Type>
Ostream& operator<<(Ostream&, const dimensioned<Type>&); Ostream& operator<<(Ostream&, const dimensioned<Type>&);
class dictionary;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class dimensioned Declaration Class dimensioned Declaration

View file

@ -47,6 +47,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<diagTensor>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<diagTensor> >&);
/*---------------------------------------------------------------------------*\
Class symmTensor4thOrderCoeffField Declaration
\*---------------------------------------------------------------------------*/
template<> template<>
class CoeffField<diagTensor> class CoeffField<diagTensor>
: :

View file

@ -45,6 +45,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<scalar>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<scalar> >&);
/*---------------------------------------------------------------------------*\
Class scalarCoeffField Declaration
\*---------------------------------------------------------------------------*/
template<> template<>
class CoeffField<scalar> class CoeffField<scalar>
: :

View file

@ -47,6 +47,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<sphericalTensor>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<sphericalTensor> >&);
/*---------------------------------------------------------------------------*\
Class sphericalTensorCoeffField Declaration
\*---------------------------------------------------------------------------*/
template<> template<>
class CoeffField<sphericalTensor> class CoeffField<sphericalTensor>
: :

View file

@ -47,6 +47,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<symmTensor4thOrder>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<symmTensor4thOrder> >&);
/*---------------------------------------------------------------------------*\
Class symmTensor4thOrderCoeffField Declaration
\*---------------------------------------------------------------------------*/
template<> template<>
class CoeffField<symmTensor4thOrder> class CoeffField<symmTensor4thOrder>
: :

View file

@ -47,6 +47,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<symmTensor>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<symmTensor> >&);
/*---------------------------------------------------------------------------*\
Class symmTensorCoeffField Declaration
\*---------------------------------------------------------------------------*/
template<> template<>
class CoeffField<symmTensor> class CoeffField<symmTensor>
: :

View file

@ -47,6 +47,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<tensor>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<tensor> >&);
/*---------------------------------------------------------------------------*\
Class tensorCoeffField Declaration
\*---------------------------------------------------------------------------*/
template<> template<>
class CoeffField<tensor> class CoeffField<tensor>
: :

View file

@ -51,6 +51,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class dictionary; class dictionary;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators

View file

@ -43,8 +43,15 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class lduInterfaceField; class lduInterfaceField;
// Forward declaration of friend functions and operators
class procLduInterface;
Ostream& operator<<(Ostream&, const procLduInterface&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class procLduInterface Declaration Class procLduInterface Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -45,6 +45,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class procLduInterface; class procLduInterface;
class lduMatrix; class lduMatrix;

View file

@ -46,6 +46,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class crAddressing;
Ostream& operator<<(Ostream&, const crAddressing&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class crAddressing Declaration Class crAddressing Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -46,6 +46,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class crMatrix;
Ostream& operator<<(Ostream&, const crMatrix&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class crMatrix Declaration Class crMatrix Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -59,7 +59,7 @@ Foam::autoPtr<Foam::crMatrix> Foam::lduInterface::prolongationTransfer
); );
// Dummy return to make the compiler happy // Dummy return to make the compiler happy
return autoPtr<crMatrix>(NULL); return autoPtr<crMatrix>(nullptr);
} }

View file

@ -40,11 +40,11 @@ namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class boundBox; class boundBox;
template<class T> class tmp; template<class T> class tmp;
Ostream& operator<<(Ostream& os, const boundBox& b); Istream& operator>>(Istream& is, boundBox&);
Ostream& operator<<(Ostream& os, const boundBox&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\

View file

@ -57,18 +57,20 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
class face;
class triFace; class triFace;
template<class T, unsigned SizeInc, unsigned SizeMult, unsigned SizeDiv> template<class T, unsigned SizeInc, unsigned SizeMult, unsigned SizeDiv>
class DynamicList; class DynamicList;
// Forward declaration of friend functions and operators
class face;
inline bool operator==(const face& a, const face& b); inline bool operator==(const face& a, const face& b);
inline bool operator!=(const face& a, const face& b); inline bool operator!=(const face& a, const face& b);
inline Istream& operator>>(Istream&, face&); inline Istream& operator>>(Istream&, face&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class face Declaration Class face Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -53,11 +53,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class face; class face;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class triFace; class triFace;
inline bool operator==(const triFace&, const triFace&); inline bool operator==(const triFace&, const triFace&);
inline bool operator!=(const triFace&, const triFace&); inline bool operator!=(const triFace&, const triFace&);

View file

@ -43,11 +43,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class dictionary; class dictionary;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class patchIdentifier; class patchIdentifier;
Ostream& operator<<(Ostream&, const patchIdentifier&); Ostream& operator<<(Ostream&, const patchIdentifier&);

View file

@ -44,6 +44,7 @@ Description
namespace Foam namespace Foam
{ {
// Forward declaration of classes
template<class ZoneType, class MeshType> class ZoneMesh; template<class ZoneType, class MeshType> class ZoneMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators

View file

@ -53,11 +53,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class mapPolyMesh; class mapPolyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class faceZone; class faceZone;
Ostream& operator<<(Ostream&, const faceZone&); Ostream& operator<<(Ostream&, const faceZone&);

View file

@ -48,6 +48,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Istream; class Istream;
class Ostream; class Ostream;

View file

@ -45,6 +45,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Istream; class Istream;
class Ostream; class Ostream;

View file

@ -42,6 +42,11 @@ Author
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const BlockCoeff<scalar>&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class BlockCoeff Declaration Class BlockCoeff Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -44,9 +44,9 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class hashedWordList; class hashedWordList;
// Forward declaration of friend functions and operators
Istream& operator>>(Istream&, hashedWordList&); Istream& operator>>(Istream&, hashedWordList&);
Ostream& operator<<(Ostream&, const hashedWordList&); Ostream& operator<<(Ostream&, const hashedWordList&);

View file

@ -45,11 +45,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
class Switch;
class dictionary; class dictionary;
// Forward declaration of friend functions and operators
class Switch;
Istream& operator>>(Istream&, Switch&); Istream& operator>>(Istream&, Switch&);
Ostream& operator<<(Ostream&, const Switch&); Ostream& operator<<(Ostream&, const Switch&);

View file

@ -53,6 +53,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
template<class T> class List; template<class T> class List;
typedef List<word> wordList; typedef List<word> wordList;

View file

@ -49,6 +49,12 @@ namespace Foam
class Istream; class Istream;
class Ostream; class Ostream;
// Forward declaration of friend functions and operators
class keyType;
Istream& operator>>(Istream&, keyType&);
Ostream& operator<<(Ostream&, const keyType&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class keyType Declaration Class keyType Declaration

View file

@ -59,11 +59,13 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of classes
class wordRe;
class Istream; class Istream;
class Ostream; class Ostream;
// Forward declaration of friend functions and operators
class wordRe;
Istream& operator>>(Istream&, wordRe&); Istream& operator>>(Istream&, wordRe&);
Ostream& operator<<(Ostream&, const wordRe&); Ostream& operator<<(Ostream&, const wordRe&);

View file

@ -44,6 +44,7 @@ Description
namespace Foam namespace Foam
{ {
// Forward declaration of classes
template<class Particle> template<class Particle>
class Cloud; class Cloud;

View file

@ -40,8 +40,15 @@ Description
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class spray; class spray;
// Forward declaration of friend functions and operators
class parcel;
Ostream& operator<<(Ostream&, const parcel&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class parcel Declaration Class parcel Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -46,6 +46,13 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class phaseProperties;
Istream& operator>>(Istream&, phaseProperties&);
Ostream& operator<<(Ostream&, const phaseProperties&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class phaseProperties Declaration Class phaseProperties Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -43,6 +43,13 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class receivingReferralList;
Istream& operator>>(Istream&, receivingReferralList&);
Ostream& operator<<(Ostream&, const receivingReferralList&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class receivingReferralList Declaration Class receivingReferralList Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -43,6 +43,13 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class sendingReferralList;
Istream& operator>>(Istream&, sendingReferralList&);
Ostream& operator<<(Ostream&, const sendingReferralList&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class sendingReferralList Declaration Class sendingReferralList Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -43,6 +43,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class referredMolecule;
inline bool operator==(const referredMolecule& a, const referredMolecule& b);
inline bool operator!=(const referredMolecule& a, const referredMolecule& b);
Istream& operator>>(Istream&, referredMolecule&);
Ostream& operator<<(Ostream&, const referredMolecule&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class referredMolecule Declaration Class referredMolecule Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -47,8 +47,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Class forward declarations // Forward declaration of friend functions and operators
class moleculeCloud; class moleculeCloud;
class molecule;
Ostream& operator<<(Ostream&, const molecule&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class molecule Declaration Class molecule Declaration

View file

@ -44,6 +44,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class reducedUnits;
Ostream& operator<<(Ostream&, const reducedUnits&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class reducedUnits Declaration Class reducedUnits Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -49,7 +49,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class solidParticleCloud; class solidParticleCloud;
class solidParticle;
Ostream& operator<<(Ostream&, const solidParticle&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class solidParticle Declaration Class solidParticle Declaration

View file

@ -49,10 +49,17 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Class forward declarations // Forward declaration of classes
class polyPatch; class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators
class pointData;
Ostream& operator<<(Ostream&, const pointData&);
Istream& operator>>(Istream&, pointData&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class pointData Declaration Class pointData Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -40,6 +40,7 @@ Description
namespace Foam namespace Foam
{ {
// Forward declaration of classes
template<class ExactParticle> template<class ExactParticle>
class Cloud; class Cloud;

View file

@ -45,8 +45,15 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class trackedParticleCloud; class trackedParticleCloud;
// Forward declaration of friend functions and operators
class trackedParticle;
Ostream& operator<<(Ostream&, const trackedParticle&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class trackedParticle Declaration Class trackedParticle Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -50,13 +50,16 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of class
class Istream; class Istream;
class Ostream; class Ostream;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class block; class block;
Ostream& operator<<(Ostream&, const block&); Ostream& operator<<(Ostream&, const block&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class block Declaration Class block Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -47,14 +47,17 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Istream; class Istream;
class Ostream; class Ostream;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class blockMesh; class blockMesh;
class blockDescriptor; class blockDescriptor;
Ostream& operator<<(Ostream&, const blockDescriptor&); Ostream& operator<<(Ostream&, const blockDescriptor&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class blockDescriptor Declaration Class blockDescriptor Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -47,6 +47,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class curvedEdge;
Ostream& operator<<(Ostream&, const curvedEdge&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class curvedEdge Declaration Class curvedEdge Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -150,6 +150,25 @@ inline Foam::DynList<T, staticSize>::DynList(const label s)
# endif # endif
} }
#if WM_LABEL_SIZE == 64
template<class T, Foam::label staticSize>
inline Foam::DynList<T, staticSize>::DynList(const int s)
:
dataPtr_(nullptr),
nAllocated_(0),
staticData_(),
nextFree_(0)
{
setSize(s);
# ifdef DEBUG
checkAllocation();
# endif
}
#endif
template<class T, Foam::label staticSize> template<class T, Foam::label staticSize>
inline Foam::DynList<T, staticSize>::DynList(const label s, const T& val) inline Foam::DynList<T, staticSize>::DynList(const label s, const T& val)
: :

View file

@ -58,8 +58,10 @@ void decomposeCells::findAddressingForCell
const faceListPMG& faces = mesh_.faces(); const faceListPMG& faces = mesh_.faces();
forAll(faceEdges, feI) forAll(faceEdges, feI)
{ {
faceEdges[feI].setSize(faces[c[feI]].size()); DynList<label, 8>& fEdges = faceEdges[feI];
faceEdges[feI] = -1;
fEdges.setSize(faces[c[feI]].size());
fEdges = label(-1);
} }
forAll(c, fI) forAll(c, fI)

View file

@ -1221,7 +1221,7 @@ inline bool doTrianglesOverlap
x /= (mag(x) + VSMALL); x /= (mag(x) + VSMALL);
vector y = vec ^ x; vector y = vec ^ x;
DynList<point2D, 6> poly2D(3); DynList<point2D, 6> poly2D(label(3));
poly2D[0] = point2D((tri0.a() - origin) & x, (tri0.a() - origin) & y); poly2D[0] = point2D((tri0.a() - origin) & x, (tri0.a() - origin) & y);
poly2D[1] = point2D((tri0.b() - origin) & x, (tri0.b() - origin) & y); poly2D[1] = point2D((tri0.b() - origin) & x, (tri0.b() - origin) & y);
poly2D[2] = point2D((tri0.c() - origin) & x, (tri0.c() - origin) & y); poly2D[2] = point2D((tri0.c() - origin) & x, (tri0.c() - origin) & y);

View file

@ -354,7 +354,7 @@ void partTriMesh::createBufferLayers()
{ {
const parTriFace& tri = receivedTrias[i]; const parTriFace& tri = receivedTrias[i];
DynList<label, 3> triPointLabels(3); DynList<label, 3> triPointLabels(label(3));
for(label j=0;j<3;++j) for(label j=0;j<3;++j)
{ {
const label gpI = tri.globalLabelOfPoint(j); const label gpI = tri.globalLabelOfPoint(j);

View file

@ -136,7 +136,7 @@ void meshOctree::setOctantVectorsAndPositions()
//- set vrtLeavesPos_ //- set vrtLeavesPos_
for(label vrtI=0;vrtI<8;++vrtI) for(label vrtI=0;vrtI<8;++vrtI)
{ {
FixedList<label, 3> vc(0); FixedList<label, 3> vc(label(0));
if( vrtI & 1 ) if( vrtI & 1 )
vc[0] += 1; vc[0] += 1;

View file

@ -138,7 +138,7 @@ void meshOctreeAutomaticRefinement::setMaxRefLevel()
{ {
finished = false; finished = false;
const scalar lSize = size / pow(2, label(maxRefLevel_)); const scalar lSize = size / pow(2.0, label(maxRefLevel_));
if( lSize < cs ) if( lSize < cs )
{ {

View file

@ -87,12 +87,12 @@ void meshOctreeCreator::setRootCubeSizeAndRefParameters()
{ {
finished = false; finished = false;
const scalar lSize = size / Foam::pow(2, label(globalRefLevel_)); const scalar lSize = size / pow(label(2), label(globalRefLevel_));
if( lSize < (maxSize * (1.0-SMALL)) ) if( lSize < (maxSize * (1.0-SMALL)) )
{ {
const scalar bbSize = const scalar bbSize =
0.5 * maxSize * Foam::pow(2, label(globalRefLevel_)); 0.5 * maxSize * pow(label(2), label(globalRefLevel_));
rootBox.max() = c + point(bbSize, bbSize, bbSize); rootBox.max() = c + point(bbSize, bbSize, bbSize);
rootBox.min() = c - point(bbSize, bbSize, bbSize); rootBox.min() = c - point(bbSize, bbSize, bbSize);
finished = true; finished = true;
@ -136,7 +136,7 @@ void meshOctreeCreator::setRootCubeSizeAndRefParameters()
{ {
finished = false; finished = false;
const scalar lSize = maxSize / Foam::pow(2, addLevel); const scalar lSize = maxSize / Foam::pow(label(2), addLevel);
if( lSize <= cs ) if( lSize <= cs )
{ {
@ -233,7 +233,7 @@ void meshOctreeCreator::setRootCubeSizeAndRefParameters()
{ {
finished = false; finished = false;
const scalar lSize = maxSize / Foam::pow(2, addLevel); const scalar lSize = maxSize / Foam::pow(label(2), addLevel);
if( lSize <= cs ) if( lSize <= cs )
{ {
@ -311,7 +311,7 @@ void meshOctreeCreator::setRootCubeSizeAndRefParameters()
{ {
finished = false; finished = false;
const scalar lSize = maxSize / Foam::pow(2, addLevel); const scalar lSize = maxSize / Foam::pow(label(2), addLevel);
if( lSize <= cs ) if( lSize <= cs )
{ {
@ -383,7 +383,7 @@ void meshOctreeCreator::setRootCubeSizeAndRefParameters()
{ {
finished = false; finished = false;
const scalar lSize = maxSize / Foam::pow(2, nLevel); const scalar lSize = maxSize / Foam::pow(label(2), nLevel);
if( lSize <= cs ) if( lSize <= cs )
{ {

View file

@ -75,7 +75,7 @@ void meshUntangler::cutRegion::findNewFaces()
<< " consisting of edges " << f << endl; << " consisting of edges " << f << endl;
# endif # endif
pointUsage = 0; pointUsage = label(0);
DynList<label, 8> newFace; DynList<label, 8> newFace;
@ -147,7 +147,7 @@ void meshUntangler::cutRegion::findNewFaces()
//- find edges which form the faceInPlane //- find edges which form the faceInPlane
DynList<label, 128> edgeUsage; DynList<label, 128> edgeUsage;
edgeUsage.setSize(cEdges.size()); edgeUsage.setSize(cEdges.size());
edgeUsage = 0; edgeUsage = label(0);
forAll(cFaces, fI) forAll(cFaces, fI)
{ {
const DynList<label, 8>& f = cFaces[fI]; const DynList<label, 8>& f = cFaces[fI];

View file

@ -29,8 +29,6 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "error.H" #include "error.H"
#include "objectRegistry.H"
#include "foamTime.H"
#include "polyMeshGenModifier.H" #include "polyMeshGenModifier.H"
#include "edgeExtractor.H" #include "edgeExtractor.H"
#include "meshSurfaceEngine.H" #include "meshSurfaceEngine.H"
@ -1529,7 +1527,7 @@ bool edgeExtractor::checkConcaveEdgeCells()
DynList<label, 2> nFacesInPatch; DynList<label, 2> nFacesInPatch;
nFacesInPatch.setSize(2); nFacesInPatch.setSize(2);
nFacesInPatch = 0; nFacesInPatch = label(0);
DynList<bool, 2> hasPatchPoints; DynList<bool, 2> hasPatchPoints;
hasPatchPoints.setSize(2); hasPatchPoints.setSize(2);

View file

@ -54,6 +54,13 @@ namespace Foam
class polyPatch; class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators
class pointEdgePoint;
Ostream& operator<<(Ostream&, const pointEdgePoint&);
Istream& operator>>(Istream&, pointEdgePoint&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class pointEdgePoint Declaration Class pointEdgePoint Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -45,9 +45,18 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class polyPatch; class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators
class cellInfo;
Ostream& operator<<(Ostream&, const cellInfo&);
Istream& operator>>(Istream&, cellInfo&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class cellInfo Declaration Class cellInfo Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -50,9 +50,10 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class polyPatch; class polyPatch;
class polyMesh; class polyMesh;
class wallPoint;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class wallPoint;
Ostream& operator<<(Ostream&, const wallPoint&); Ostream& operator<<(Ostream&, const wallPoint&);
Istream& operator>>(Istream&, wallPoint&); Istream& operator>>(Istream&, wallPoint&);

View file

@ -46,6 +46,7 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
template<class Type> class wallPointData; template<class Type> class wallPointData;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators

View file

@ -55,6 +55,14 @@ namespace Foam
// Forward declaration of classes // Forward declaration of classes
class triSurface; class triSurface;
// Forward declaration of friend functions and operators
class surfaceLocation;
Istream& operator>>(Istream& is, surfaceLocation& sl);
Ostream& operator<<(Ostream& os, const surfaceLocation& sl);
Ostream& operator<<(Ostream&, const InfoProxy<surfaceLocation>&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class surfaceLocation Declaration Class surfaceLocation Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -42,6 +42,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class STLtriangle;
inline Ostream& operator<<(Ostream&, const STLtriangle&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class STLtriangle Declaration Class STLtriangle Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -45,6 +45,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class surfacePatch;
Ostream& operator<<(Ostream&, const surfacePatch&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class surfacePatch Declaration Class surfacePatch Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -46,6 +46,10 @@ namespace Foam
{ {
// Forward declaration of classes // Forward declaration of classes
// Forward declaration of friend functions and operators
class surfacePatchIOList;
Ostream& operator<<(Ostream&, const surfacePatchIOList&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class surfacePatchIOList Declaration Class surfacePatchIOList Declaration

View file

@ -48,9 +48,17 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class Time; class Time;
class IFstream; class IFstream;
// Forward declaration of friend functions and operators
class triSurface;
Ostream& operator<<(Ostream&, const triSurface&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class triSurface Declaration Class triSurface Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View file

@ -68,6 +68,12 @@ SourceFiles
namespace Foam namespace Foam
{ {
// Forward declaration of friend functions and operators
class sampledSurface;
Ostream& operator<<(Ostream&, const sampledSurface&);
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class sampledSurface Declaration Class sampledSurface Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

Some files were not shown because too many files have changed in this diff Show more