[format]: make forward declaration style consistent.

This commit is contained in:
Danial Khazaei 2019-02-15 23:12:44 +03:30
parent 0642eb7c4a
commit be47d0ece1
No known key found for this signature in database
GPG key ID: F4F9B78264E84372
55 changed files with 5 additions and 51 deletions

View file

@ -76,7 +76,6 @@ namespace Foam
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class rotationalConstraint; class rotationalConstraint;
Ostream& operator<<(Ostream&, const rotationalConstraint&); Ostream& operator<<(Ostream&, const rotationalConstraint&);

View file

@ -76,7 +76,6 @@ namespace Foam
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class translationalConstraint; class translationalConstraint;
Ostream& operator<<(Ostream&, const translationalConstraint&); Ostream& operator<<(Ostream&, const translationalConstraint&);

View file

@ -58,7 +58,6 @@ namespace Foam
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class combinedRestraint; class combinedRestraint;
Ostream& operator<<(Ostream&, const combinedRestraint&); Ostream& operator<<(Ostream&, const combinedRestraint&);

View file

@ -58,7 +58,6 @@ namespace Foam
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class rotationalRestraint; class rotationalRestraint;
Ostream& operator<<(Ostream&, const rotationalRestraint&); Ostream& operator<<(Ostream&, const rotationalRestraint&);

View file

@ -58,7 +58,6 @@ namespace Foam
class sixDOFODE; class sixDOFODE;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class translationalRestraint; class translationalRestraint;
Ostream& operator<<(Ostream&, const translationalRestraint&); Ostream& operator<<(Ostream&, const translationalRestraint&);

View file

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

View file

@ -72,7 +72,6 @@ class face;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class directionInfo; class directionInfo;
Ostream& operator<<(Ostream&, const directionInfo&); Ostream& operator<<(Ostream&, const directionInfo&);

View file

@ -48,7 +48,6 @@ class Istream;
class Ostream; class Ostream;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class refineCell; class refineCell;
Ostream& operator<<(Ostream&, const refineCell&); Ostream& operator<<(Ostream&, const refineCell&);

View file

@ -52,7 +52,6 @@ class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class wallNormalInfo; class wallNormalInfo;
Ostream& operator<<(Ostream&, const wallNormalInfo&); Ostream& operator<<(Ostream&, const wallNormalInfo&);

View file

@ -56,7 +56,6 @@ class polyTopoChange;
class mapPolyMesh; class mapPolyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class polyMeshModifier; class polyMeshModifier;
Ostream& operator<<(Ostream&, const polyMeshModifier&); Ostream& operator<<(Ostream&, const polyMeshModifier&);

View file

@ -50,7 +50,6 @@ class mapPolyMesh;
class polyBoundaryMesh; class polyBoundaryMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class polyTopoChanger; class polyTopoChanger;
Ostream& operator<<(Ostream&, const polyTopoChanger&); Ostream& operator<<(Ostream&, const polyTopoChanger&);

View file

@ -50,7 +50,6 @@ class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class refinementData; class refinementData;
Ostream& operator<<(Ostream&, const refinementData&); Ostream& operator<<(Ostream&, const refinementData&);

View file

@ -50,7 +50,6 @@ class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class refinementDistanceData; class refinementDistanceData;
Ostream& operator<<(Ostream&, const refinementDistanceData&); Ostream& operator<<(Ostream&, const refinementDistanceData&);

View file

@ -90,7 +90,6 @@ class mapDistributePolyMesh;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class refinementHistory; class refinementHistory;
Ostream& operator<<(Ostream&, const refinementHistory&); Ostream& operator<<(Ostream&, const refinementHistory&);

View file

@ -113,7 +113,6 @@ class equationOperation;
// Forward declaration of friend functions and operators // 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&);

View file

@ -84,7 +84,6 @@ namespace Foam
class fvMesh; class fvMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class porousZone; class porousZone;
Ostream& operator<<(Ostream&, const porousZone&); Ostream& operator<<(Ostream&, const porousZone&);

View file

@ -55,7 +55,6 @@ namespace Foam
template<class Type> class octree; template<class Type> class octree;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class octreeDataPoint; class octreeDataPoint;
Ostream& operator<<(Ostream&, const octreeDataPoint&); Ostream& operator<<(Ostream&, const octreeDataPoint&);

View file

@ -70,7 +70,6 @@ namespace Foam
class Random; class Random;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class treeBoundBox; class treeBoundBox;
bool operator==(const treeBoundBox&, const treeBoundBox&); bool operator==(const treeBoundBox&, const treeBoundBox&);

View file

@ -57,7 +57,6 @@ class Ostream;
template<class Type> class octree; template<class Type> class octree;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
template<class Type> class treeLeaf; template<class Type> class treeLeaf;
template<class Type> Istream& operator>>(Istream&, treeLeaf<Type>&); template<class Type> Istream& operator>>(Istream&, treeLeaf<Type>&);

View file

@ -63,7 +63,6 @@ template<class Type> class treeLeaf;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
template<class Type> class treeNode; template<class Type> class treeNode;
template<class Type> Istream& operator>>(Istream&, treeNode<Type>&); template<class Type> Istream& operator>>(Istream&, treeNode<Type>&);

View file

@ -60,7 +60,6 @@ template<class T> class List;
template<class T> class UList; template<class T> class UList;
// Forward declaration of friend functions and operators // 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

@ -57,7 +57,6 @@ namespace Foam
template<class T> class List; template<class T> class List;
// Forward declaration of friend functions and operators // 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

@ -55,7 +55,6 @@ template<class T> class SLList;
// Forward declaration of friend functions and operators // 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>

View file

@ -147,7 +147,6 @@ namespace Foam
class boundBox; class boundBox;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class coordinateSystem; class coordinateSystem;
bool operator!=(const coordinateSystem&, const coordinateSystem&); bool operator!=(const coordinateSystem&, const coordinateSystem&);

View file

@ -52,7 +52,6 @@ class Istream;
class Ostream; class Ostream;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
template<class T, class BaseType> class CompactIOList; template<class T, class BaseType> class CompactIOList;
template<class T, class BaseType> Istream& operator>> template<class T, class BaseType> Istream& operator>>

View file

@ -70,7 +70,6 @@ class regExp;
class SHA1Digest; class SHA1Digest;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class dictionary; class dictionary;
Istream& operator>>(Istream&, dictionary&); Istream& operator>>(Istream&, dictionary&);

View file

@ -53,6 +53,7 @@ namespace Foam
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class dictionaryEntry; class dictionaryEntry;
Ostream& operator<<(Ostream&, const dictionaryEntry&); Ostream& operator<<(Ostream&, const dictionaryEntry&);

View file

@ -49,7 +49,6 @@ namespace Foam
class dictionary; class dictionary;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
template<class Type> class dimensioned; template<class Type> class dimensioned;
template<class Type> template<class Type>

View file

@ -50,7 +50,6 @@ namespace Foam
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<diagTensor>&); Ostream& operator<<(Ostream&, const CoeffField<diagTensor>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<diagTensor> >&); Ostream& operator<<(Ostream&, const tmp<CoeffField<diagTensor> >&);

View file

@ -48,7 +48,6 @@ namespace Foam
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<scalar>&); Ostream& operator<<(Ostream&, const CoeffField<scalar>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<scalar> >&); Ostream& operator<<(Ostream&, const tmp<CoeffField<scalar> >&);

View file

@ -50,7 +50,6 @@ namespace Foam
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<sphericalTensor>&); Ostream& operator<<(Ostream&, const CoeffField<sphericalTensor>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<sphericalTensor> >&); Ostream& operator<<(Ostream&, const tmp<CoeffField<sphericalTensor> >&);

View file

@ -50,7 +50,6 @@ namespace Foam
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<symmTensor4thOrder>&); Ostream& operator<<(Ostream&, const CoeffField<symmTensor4thOrder>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<symmTensor4thOrder> >&); Ostream& operator<<(Ostream&, const tmp<CoeffField<symmTensor4thOrder> >&);

View file

@ -50,7 +50,6 @@ namespace Foam
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<symmTensor>&); Ostream& operator<<(Ostream&, const CoeffField<symmTensor>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<symmTensor> >&); Ostream& operator<<(Ostream&, const tmp<CoeffField<symmTensor> >&);

View file

@ -50,7 +50,6 @@ namespace Foam
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
Ostream& operator<<(Ostream&, const CoeffField<tensor>&); Ostream& operator<<(Ostream&, const CoeffField<tensor>&);
Ostream& operator<<(Ostream&, const tmp<CoeffField<tensor> >&); Ostream& operator<<(Ostream&, const tmp<CoeffField<tensor> >&);

View file

@ -47,7 +47,6 @@ namespace Foam
class lduInterfaceField; class lduInterfaceField;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class procLduInterface; class procLduInterface;
Ostream& operator<<(Ostream&, const procLduInterface&); Ostream& operator<<(Ostream&, const procLduInterface&);

View file

@ -48,6 +48,7 @@ namespace Foam
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class crAddressing; class crAddressing;
Ostream& operator<<(Ostream&, const crAddressing&); Ostream& operator<<(Ostream&, const crAddressing&);

View file

@ -48,6 +48,7 @@ namespace Foam
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class crMatrix; class crMatrix;
Ostream& operator<<(Ostream&, const crMatrix&); Ostream& operator<<(Ostream&, const crMatrix&);

View file

@ -40,7 +40,6 @@ 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;

View file

@ -64,7 +64,6 @@ template<class T, unsigned SizeInc, unsigned SizeMult, unsigned SizeDiv>
class DynamicList; class DynamicList;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class face; class face;
inline bool operator==(const face& a, const face& b); inline bool operator==(const face& a, const face& b);

View file

@ -57,7 +57,6 @@ namespace Foam
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&);

View file

@ -47,7 +47,6 @@ namespace Foam
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

@ -57,7 +57,6 @@ namespace Foam
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

@ -45,7 +45,6 @@ namespace Foam
{ {
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class hashedWordList; class hashedWordList;
Istream& operator>>(Istream&, hashedWordList&); Istream& operator>>(Istream&, hashedWordList&);

View file

@ -49,7 +49,6 @@ namespace Foam
class dictionary; class dictionary;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class Switch; class Switch;
Istream& operator>>(Istream&, Switch&); Istream& operator>>(Istream&, Switch&);

View file

@ -51,6 +51,7 @@ class Ostream;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class keyType; class keyType;
Istream& operator>>(Istream&, keyType&); Istream& operator>>(Istream&, keyType&);
Ostream& operator<<(Ostream&, const keyType&); Ostream& operator<<(Ostream&, const keyType&);

View file

@ -64,7 +64,6 @@ class Istream;
class Ostream; class Ostream;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class wordRe; class wordRe;
Istream& operator>>(Istream&, wordRe&); Istream& operator>>(Istream&, wordRe&);

View file

@ -44,7 +44,6 @@ namespace Foam
class spray; class spray;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class parcel; class parcel;
Ostream& operator<<(Ostream&, const parcel&); Ostream& operator<<(Ostream&, const parcel&);

View file

@ -54,7 +54,6 @@ class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class pointData; class pointData;
Ostream& operator<<(Ostream&, const pointData&); Ostream& operator<<(Ostream&, const pointData&);

View file

@ -49,7 +49,6 @@ namespace Foam
class trackedParticleCloud; class trackedParticleCloud;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class trackedParticle; class trackedParticle;
Ostream& operator<<(Ostream&, const trackedParticle&); Ostream& operator<<(Ostream&, const trackedParticle&);

View file

@ -55,7 +55,6 @@ 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&);

View file

@ -55,7 +55,6 @@ class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class pointEdgePoint; class pointEdgePoint;
Ostream& operator<<(Ostream&, const pointEdgePoint&); Ostream& operator<<(Ostream&, const pointEdgePoint&);

View file

@ -51,7 +51,6 @@ class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class cellInfo; class cellInfo;
Ostream& operator<<(Ostream&, const cellInfo&); Ostream& operator<<(Ostream&, const cellInfo&);

View file

@ -52,7 +52,6 @@ class polyPatch;
class polyMesh; class polyMesh;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class wallPoint; class wallPoint;
Ostream& operator<<(Ostream&, const wallPoint&); Ostream& operator<<(Ostream&, const wallPoint&);

View file

@ -51,7 +51,6 @@ namespace Foam
class dictionary; class dictionary;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class surfZoneIdentifier; class surfZoneIdentifier;
Ostream& operator<<(Ostream&, const surfZoneIdentifier&); Ostream& operator<<(Ostream&, const surfZoneIdentifier&);

View file

@ -51,7 +51,6 @@ class Istream;
class Ostream; class Ostream;
// Forward declaration of friend functions and operators // Forward declaration of friend functions and operators
class specie; class specie;
Ostream& operator<<(Ostream&, const specie&); Ostream& operator<<(Ostream&, const specie&);