STYLE: follow coding guide recommendation for '//- Destructor'

This commit is contained in:
Mark Olesen
2010-04-12 11:55:52 +02:00
parent a50f01b079
commit b6f3bd4c23
522 changed files with 1157 additions and 1653 deletions

View File

@ -128,9 +128,8 @@ public:
); );
// Destructor //- Destructor
virtual ~basicSubGrid();
virtual ~basicSubGrid();
// Member Functions // Member Functions

View File

@ -107,9 +107,8 @@ public:
); );
// Destructor //- Destructor
virtual ~basicSubGrid();
virtual ~basicSubGrid();
// Member Functions // Member Functions

View File

@ -137,9 +137,8 @@ public:
); );
// Destructor //- Destructor
virtual ~PDRDragModel();
virtual ~PDRDragModel();
// Member Functions // Member Functions

View File

@ -135,9 +135,8 @@ public:
); );
// Destructor //- Destructor
virtual ~basic();
virtual ~basic();
// Member Functions // Member Functions

View File

@ -86,9 +86,8 @@ public:
); );
// Destructor //- Destructor
virtual ~Gulder();
virtual ~Gulder();
// Member Functions // Member Functions

View File

@ -91,9 +91,8 @@ public:
); );
// Destructor //- Destructor
virtual ~SCOPEBlend();
virtual ~SCOPEBlend();
// Member Functions // Member Functions

View File

@ -96,9 +96,8 @@ public:
); );
// Destructor //- Destructor
virtual ~SCOPEXiEq();
virtual ~SCOPEXiEq();
// Member Functions // Member Functions

View File

@ -132,9 +132,8 @@ public:
); );
// Destructor //- Destructor
virtual ~XiEqModel();
virtual ~XiEqModel();
// Member Functions // Member Functions

View File

@ -90,9 +90,8 @@ public:
); );
// Destructor //- Destructor
virtual ~instability();
virtual ~instability();
// Member Functions // Member Functions

View File

@ -85,9 +85,8 @@ public:
); );
// Destructor //- Destructor
virtual ~KTS();
virtual ~KTS();
// Member Functions // Member Functions

View File

@ -129,9 +129,8 @@ public:
); );
// Destructor //- Destructor
virtual ~XiGModel();
virtual ~XiGModel();
// Member Functions // Member Functions

View File

@ -94,9 +94,8 @@ public:
); );
// Destructor //- Destructor
virtual ~instabilityG();
virtual ~instabilityG();
// Member Functions // Member Functions

View File

@ -200,9 +200,8 @@ public:
); );
// Destructor //- Destructor
virtual ~XiModel();
virtual ~XiModel();
// Member Functions // Member Functions

View File

@ -95,9 +95,8 @@ public:
); );
// Destructor //- Destructor
virtual ~algebraic();
virtual ~algebraic();
// Member Functions // Member Functions

View File

@ -83,9 +83,8 @@ public:
); );
// Destructor //- Destructor
virtual ~fixed();
virtual ~fixed();
// Member Functions // Member Functions

View File

@ -95,9 +95,8 @@ public:
); );
// Destructor //- Destructor
virtual ~transport();
virtual ~transport();
// Member Functions // Member Functions

View File

@ -194,7 +194,7 @@ public:
); );
// Destructor //- Destructor
~SCOPE(); ~SCOPE();

View File

@ -88,9 +88,8 @@ public:
); );
// Destructor //- Destructor
virtual ~infinitelyFastChemistry();
virtual ~infinitelyFastChemistry();
// Member Functions // Member Functions

View File

@ -83,9 +83,8 @@ public:
); );
// Destructor //- Destructor
virtual ~noCombustion();
virtual ~noCombustion();
// Member Functions // Member Functions

View File

@ -77,9 +77,8 @@ public:
regionProperties(const Time& runTime); regionProperties(const Time& runTime);
// Destructor //- Destructor
~regionProperties();
~regionProperties();
// Member Functions // Member Functions

View File

@ -94,10 +94,9 @@ public:
); );
// Destructor //- Destructor
~threePhaseMixture()
~threePhaseMixture() {}
{}
// Member Functions // Member Functions

View File

@ -96,10 +96,9 @@ public:
); );
// Destructor //- Destructor
virtual ~Kunz()
virtual ~Kunz() {}
{}
// Member Functions // Member Functions

View File

@ -90,10 +90,9 @@ public:
); );
// Destructor //- Destructor
virtual ~Merkle()
virtual ~Merkle() {}
{}
// Member Functions // Member Functions

View File

@ -103,10 +103,9 @@ public:
); );
// Destructor //- Destructor
virtual ~SchnerrSauer()
virtual ~SchnerrSauer() {}
{}
// Member Functions // Member Functions

View File

@ -121,10 +121,9 @@ public:
); );
// Destructor //- Destructor
virtual ~phaseChangeTwoPhaseMixture()
virtual ~phaseChangeTwoPhaseMixture() {}
{}
// Member Functions // Member Functions

View File

@ -209,10 +209,9 @@ public:
); );
// Destructor //- Destructor
~multiphaseMixture()
~multiphaseMixture() {}
{}
// Member Functions // Member Functions

View File

@ -108,9 +108,8 @@ public:
cellSplitter(const polyMesh& mesh); cellSplitter(const polyMesh& mesh);
// Destructor //- Destructor
~cellSplitter();
~cellSplitter();
// Member Functions // Member Functions

View File

@ -100,9 +100,8 @@ public:
return autoPtr<block>(NULL); return autoPtr<block>(NULL);
} }
// Destructor //- Destructor
~block();
~block();
// Member Functions // Member Functions

View File

@ -238,9 +238,8 @@ public:
); );
// Destructor //- Destructor
~sammMesh();
~sammMesh();
// Member Functions // Member Functions

View File

@ -299,9 +299,8 @@ public:
); );
// Destructor //- Destructor
~starMesh();
~starMesh();
// Member Functions // Member Functions

View File

@ -102,10 +102,9 @@ public:
mergePolyMesh(const IOobject& io); mergePolyMesh(const IOobject& io);
// Destructor //- Destructor
virtual ~mergePolyMesh()
virtual ~mergePolyMesh() {}
{}
// Member Functions // Member Functions

View File

@ -76,9 +76,8 @@ public:
mirrorFvMesh(const IOobject& io); mirrorFvMesh(const IOobject& io);
// Destructor //- Destructor
~mirrorFvMesh();
~mirrorFvMesh();
// Member Functions // Member Functions

View File

@ -126,9 +126,8 @@ public:
domainDecomposition(const IOobject& io); domainDecomposition(const IOobject& io);
// Destructor //- Destructor
~domainDecomposition();
~domainDecomposition();
// Member Functions // Member Functions

View File

@ -230,9 +230,8 @@ public:
); );
// Destructor //- Destructor
~fvFieldDecomposer();
~fvFieldDecomposer();
// Member Functions // Member Functions

View File

@ -138,9 +138,8 @@ public:
); );
// Destructor //- Destructor
~pointFieldDecomposer();
~pointFieldDecomposer();
// Member Functions // Member Functions

View File

@ -187,7 +187,6 @@ protected:
); );
//- Get the mesh/fields for a particular time //- Get the mesh/fields for a particular time
//- Destructor
virtual int RequestData virtual int RequestData
( (
vtkInformation*, vtkInformation*,

View File

@ -693,8 +693,7 @@ public:
//- Destructor //- Destructor
~vtkPV3Foam();
~vtkPV3Foam();
// Member Functions // Member Functions

View File

@ -312,8 +312,7 @@ public:
//- Destructor //- Destructor
~vtkPV3blockMesh();
~vtkPV3blockMesh();
// Member Functions // Member Functions

View File

@ -116,9 +116,8 @@ public:
readerDatabase(); readerDatabase();
// Destructor //- Destructor
~readerDatabase();
~readerDatabase();
// Member Functions // Member Functions

View File

@ -2,7 +2,7 @@
# #
#+TITLE: OpenFOAM C++ style guide #+TITLE: OpenFOAM C++ style guide
#+AUTHOR: OpenCFD Ltd. #+AUTHOR: OpenCFD Ltd.
#+DATE: November 2009 #+DATE: April 2010
#+LINK: http://www.opencfd.co.uk #+LINK: http://www.opencfd.co.uk
#+OPTIONS: author:nil ^:{} #+OPTIONS: author:nil ^:{}

View File

@ -56,10 +56,9 @@ public:
{} {}
// Destructor //- Destructor
virtual ~ODE()
virtual ~ODE() {}
{}
// Member Functions // Member Functions

View File

@ -103,10 +103,9 @@ public:
); );
// Destructor //- Destructor
virtual ~ODESolver()
virtual ~ODESolver() {}
{}
// Member Functions // Member Functions

View File

@ -102,9 +102,8 @@ public:
//- Construct from std::string (or string), optionally ignoring case //- Construct from std::string (or string), optionally ignoring case
regExp(const std::string&, const bool ignoreCase=false); regExp(const std::string&, const bool ignoreCase=false);
// Destructor //- Destructor
~regExp();
~regExp();
// Member functions // Member functions

View File

@ -99,9 +99,8 @@ public:
sigFpe(); sigFpe();
// Destructor //- Destructor
~sigFpe();
~sigFpe();
// Member functions // Member functions

View File

@ -70,9 +70,8 @@ public:
sigInt(); sigInt();
// Destructor //- Destructor
~sigInt();
~sigInt();
// Member functions // Member functions

View File

@ -70,9 +70,8 @@ public:
sigQuit(); sigQuit();
// Destructor //- Destructor
~sigQuit();
~sigQuit();
// Member functions // Member functions

View File

@ -70,9 +70,8 @@ public:
sigSegv(); sigSegv();
// Destructor //- Destructor
~sigSegv();
~sigSegv();
// Member functions // Member functions

View File

@ -117,9 +117,8 @@ public:
timer(const unsigned int newTimeOut); timer(const unsigned int newTimeOut);
// Destructor //- Destructor
~timer();
~timer();
}; };

View File

@ -40,7 +40,7 @@ namespace Foam
{ {
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class subCycle Declaration Class subCycle Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
template<class GeometricField> template<class GeometricField>
@ -79,21 +79,19 @@ public:
{} {}
// Destructor //- Destructor
~subCycle()
{
// End the subCycleTime, which restores the time state
endSubCycle();
~subCycle() // Correct the time index of the field to correspond to the global time
{ gf_.timeIndex() = gf_.time().timeIndex();
// End the subCycleTime which restores the time state
endSubCycle();
// Correct the time index of the field to correspond to the global // Reset the old-time field value
// time gf_.oldTime() = gf0_;
gf_.timeIndex() = gf_.time().timeIndex(); gf_.oldTime().timeIndex() = gf_.time().timeIndex();
}
// Reset the old-time field value
gf_.oldTime() = gf0_;
gf_.oldTime().timeIndex() = gf_.time().timeIndex();
}
}; };

View File

@ -95,9 +95,8 @@ public:
HashPtrTable(const HashPtrTable<T, Key, Hash>&); HashPtrTable(const HashPtrTable<T, Key, Hash>&);
// Destructor //- Destructor
~HashPtrTable();
~HashPtrTable();
// Member Functions // Member Functions

View File

@ -120,9 +120,8 @@ public:
ILList(Istream&, const INew&); ILList(Istream&, const INew&);
// Destructor //- Destructor
~ILList();
~ILList();
// Member Functions // Member Functions

View File

@ -122,9 +122,8 @@ public:
LList(const LList<LListBase, T>&); LList(const LList<LListBase, T>&);
// Destructor //- Destructor
~LList();
~LList();
// Member Functions // Member Functions

View File

@ -112,9 +112,8 @@ public:
LPtrList(const LPtrList&); LPtrList(const LPtrList&);
// Destructor //- Destructor
~LPtrList();
~LPtrList();
// Member Functions // Member Functions

View File

@ -110,9 +110,8 @@ public:
inline DLListBase(link*); inline DLListBase(link*);
// Destructor //- Destructor
~DLListBase();
~DLListBase();
// Member Functions // Member Functions

View File

@ -107,9 +107,8 @@ public:
inline SLListBase(link*); inline SLListBase(link*);
// Destructor //- Destructor
~SLListBase();
~SLListBase();
// Member Functions // Member Functions

View File

@ -76,9 +76,8 @@ public:
Callback(const Callback<CallbackType>&); Callback(const Callback<CallbackType>&);
// Destructor //- Destructor
virtual ~Callback();
virtual ~Callback();
// Member functions // Member functions

View File

@ -86,9 +86,8 @@ public:
CallbackRegistry(); CallbackRegistry();
// Destructor //- Destructor
virtual ~CallbackRegistry();
virtual ~CallbackRegistry();
}; };

View File

@ -219,9 +219,8 @@ public:
} }
// Destructor //- Destructor
virtual ~IOobject();
virtual ~IOobject();
// Member Functions // Member Functions

View File

@ -76,9 +76,8 @@ public:
IOobjectList(const IOobjectList&); IOobjectList(const IOobjectList&);
// Destructor //- Destructor
~IOobjectList();
~IOobjectList();
// Member functions // Member functions

View File

@ -74,9 +74,8 @@ public:
IOField(const IOobject&, const Xfer<Field<Type> >&); IOField(const IOobject&, const Xfer<Field<Type> >&);
// Destructor //- Destructor
virtual ~IOField();
virtual ~IOField();
// Member functions // Member functions

View File

@ -75,9 +75,8 @@ public:
IOList(const IOobject&, const Xfer<List<T> >&); IOList(const IOobject&, const Xfer<List<T> >&);
// Destructor //- Destructor
virtual ~IOList();
virtual ~IOList();
// Member functions // Member functions

View File

@ -75,9 +75,8 @@ public:
IOMap(const IOobject&, const Xfer<Map<T> >&); IOMap(const IOobject&, const Xfer<Map<T> >&);
// Destructor //- Destructor
virtual ~IOMap();
virtual ~IOMap();
// Member functions // Member functions

View File

@ -79,9 +79,8 @@ public:
IOPtrList(const IOobject&, const Xfer<PtrList<T> >&); IOPtrList(const IOobject&, const Xfer<PtrList<T> >&);
// Destructor //- Destructor
virtual ~IOPtrList();
virtual ~IOPtrList();
// Member functions // Member functions

View File

@ -71,9 +71,8 @@ public:
IOdictionary(const IOobject&, const dictionary&); IOdictionary(const IOobject&, const dictionary&);
// Destructor //- Destructor
virtual ~IOdictionary();
virtual ~IOdictionary();
// Member functions // Member functions

View File

@ -70,9 +70,8 @@ class IFstreamAllocator
IFstreamAllocator(const fileName& pathname); IFstreamAllocator(const fileName& pathname);
// Destructor //- Destructor
~IFstreamAllocator();
~IFstreamAllocator();
}; };
@ -106,9 +105,8 @@ public:
); );
// Destructor //- Destructor
~IFstream();
~IFstream();
// Member functions // Member functions

View File

@ -69,9 +69,8 @@ class OFstreamAllocator
IOstream::compressionType compression=IOstream::UNCOMPRESSED IOstream::compressionType compression=IOstream::UNCOMPRESSED
); );
// Destructor //- Destructor
~OFstreamAllocator();
~OFstreamAllocator();
}; };
@ -108,9 +107,8 @@ public:
); );
// Destructor //- Destructor
~OFstream();
~OFstream();
// Member functions // Member functions

View File

@ -288,10 +288,9 @@ public:
} }
// Destructor //- Destructor
virtual ~IOstream()
virtual ~IOstream() {}
{}
// Member functions // Member functions

View File

@ -85,10 +85,9 @@ public:
{} {}
// Destructor //- Destructor
virtual ~Istream()
virtual ~Istream() {}
{}
// Member functions // Member functions

View File

@ -131,9 +131,8 @@ public:
IOstream::versionNumber version=IOstream::currentVersion IOstream::versionNumber version=IOstream::currentVersion
); );
// Destructor //- Destructor
~PstreamBuffers();
~PstreamBuffers();
// Member functions // Member functions

View File

@ -106,9 +106,8 @@ public:
UIPstream(const int fromProcNo, PstreamBuffers&); UIPstream(const int fromProcNo, PstreamBuffers&);
// Destructor //- Destructor
~UIPstream();
~UIPstream();
// Member functions // Member functions

View File

@ -102,9 +102,8 @@ public:
UOPstream(const int toProcNo, PstreamBuffers&); UOPstream(const int toProcNo, PstreamBuffers&);
// Destructor //- Destructor
~UOPstream();
~UOPstream();
// Member functions // Member functions

View File

@ -86,10 +86,9 @@ public:
); );
// Destructor //- Destructor
virtual ~ISstream()
virtual ~ISstream() {}
{}
// Member functions // Member functions

View File

@ -92,12 +92,11 @@ public:
{} {}
// Destructor //- Destructor
~IStringStream()
~IStringStream() {
{ delete &dynamic_cast<std::istringstream&>(stdStream());
delete &dynamic_cast<std::istringstream&>(stdStream()); }
}
// Member functions // Member functions

View File

@ -93,12 +93,11 @@ public:
{} {}
// Destructor //- Destructor
~OStringStream()
~OStringStream() {
{ delete &dynamic_cast<std::ostringstream&>(stdStream());
delete &dynamic_cast<std::ostringstream&>(stdStream()); }
}
// Member functions // Member functions

View File

@ -165,12 +165,11 @@ public:
{} {}
// Destructor //- Destructor
~OSHA1stream()
~OSHA1stream() {
{ delete &dynamic_cast<osha1stream&>(stdStream());
delete &dynamic_cast<osha1stream&>(stdStream()); }
}
// Member functions // Member functions

View File

@ -99,9 +99,8 @@ public:
static autoPtr<CompoundToken> New(const word& type, Istream& is); static autoPtr<CompoundToken> New(const word& type, Istream& is);
// Destructor //- Destructor
virtual ~CompoundToken();
virtual ~CompoundToken();
// Member Functions // Member Functions

View File

@ -167,9 +167,8 @@ public:
static autoPtr<compound> New(const word& type, Istream&); static autoPtr<compound> New(const word& type, Istream&);
// Destructor //- Destructor
virtual ~compound();
virtual ~compound();
// Member Functions // Member Functions
@ -309,9 +308,8 @@ public:
token(Istream&); token(Istream&);
// Destructor //- Destructor
inline ~token();
inline ~token();
// Member functions // Member functions

View File

@ -209,10 +209,8 @@ public:
); );
// Destructor //- Destructor
virtual ~Time();
//- Virtual destructor
virtual ~Time();
// Member functions // Member functions

View File

@ -63,9 +63,8 @@ public:
subCycleTime(Time&, const label nSubCycles); subCycleTime(Time&, const label nSubCycles);
// Destructor //- Destructor
~subCycleTime();
~subCycleTime();
// Member functions // Member functions

View File

@ -218,9 +218,8 @@ public:
static autoPtr<dictionary> New(Istream&); static autoPtr<dictionary> New(Istream&);
// Destructor //- Destructor
~dictionary();
~dictionary();
// Member functions // Member functions

View File

@ -88,9 +88,8 @@ public:
dlLibraryTable(); dlLibraryTable();
// Destructor //- Destructor
~dlLibraryTable();
~dlLibraryTable();
// Member Functions // Member Functions

View File

@ -97,9 +97,8 @@ public:
error(const error&); error(const error&);
// Destructor //- Destructor
virtual ~error() throw();
virtual ~error() throw();
// Member functions // Member functions
@ -213,9 +212,8 @@ public:
IOerror(const dictionary&); IOerror(const dictionary&);
// Destructor //- Destructor
virtual ~IOerror() throw();
virtual ~IOerror() throw();
// Member functions // Member functions

View File

@ -135,9 +135,8 @@ public:
); );
// Destructor //- Destructor
virtual ~functionObject();
virtual ~functionObject();
// Member Functions // Member Functions

View File

@ -91,8 +91,8 @@ public:
outputFilterOutputControl(const Time&, const dictionary&); outputFilterOutputControl(const Time&, const dictionary&);
// Destructor //- Destructor
~outputFilterOutputControl(); ~outputFilterOutputControl();
// Member Functions // Member Functions

View File

@ -101,9 +101,8 @@ public:
); );
// Destructor //- Destructor
virtual ~objectRegistry();
virtual ~objectRegistry();
// Member functions // Member functions

View File

@ -110,9 +110,8 @@ public:
regIOobject(const regIOobject&, bool registerCopy); regIOobject(const regIOobject&, bool registerCopy);
// Destructor //- Destructor
virtual ~regIOobject();
virtual ~regIOobject();
// Member functions // Member functions

View File

@ -53,10 +53,9 @@ public:
{} {}
// Destructor //- Destructor
virtual ~FieldMapper()
virtual ~FieldMapper() {}
{}
// Member Functions // Member Functions

View File

@ -158,9 +158,8 @@ public:
); );
// Destructor //- Destructor
~SlicedGeometricField();
~SlicedGeometricField();
// Member functions // Member functions
@ -202,9 +201,8 @@ public:
); );
// Destructor //- Destructor
~DimensionedInternalField();
~DimensionedInternalField();
}; };

View File

@ -126,9 +126,8 @@ public:
} }
// Destructor //- Destructor
~processorPointPatchField();
~processorPointPatchField();
// Member functions // Member functions

View File

@ -229,10 +229,9 @@ public:
); );
// Destructor //- Destructor
virtual ~pointPatchField<Type>()
virtual ~pointPatchField<Type>() {}
{}
// Member functions // Member functions

View File

@ -78,9 +78,8 @@ public:
JobInfo(); JobInfo();
// Destructor //- Destructor
~JobInfo();
~JobInfo();
// Member Functions // Member Functions

View File

@ -226,10 +226,9 @@ public:
{} {}
// Destructor //- Destructor
virtual ~writer()
virtual ~writer() {}
{}
// Member Functions // Member Functions

View File

@ -67,10 +67,9 @@ public:
{} {}
// Destructor //- Destructor
~gnuplotGraph()
~gnuplotGraph() {}
{}
// Member Functions // Member Functions

View File

@ -67,10 +67,9 @@ public:
{} {}
// Destructor //- Destructor
~jplotGraph()
~jplotGraph() {}
{}
// Member Functions // Member Functions

View File

@ -67,10 +67,9 @@ public:
{} {}
// Destructor //- Destructor
~rawGraph()
~rawGraph() {}
{}
// Member Functions // Member Functions

View File

@ -68,10 +68,9 @@ public:
{} {}
// Destructor //- Destructor
~xmgrGraph()
~xmgrGraph() {}
{}
// Member Functions // Member Functions

View File

@ -163,9 +163,8 @@ public:
); );
// Destructor //- Destructor
~PatchToPatchInterpolation();
~PatchToPatchInterpolation();
// Member Functions // Member Functions

View File

@ -99,9 +99,8 @@ public:
PrimitivePatchInterpolation(const Patch& p); PrimitivePatchInterpolation(const Patch& p);
// Destructor //- Destructor
~PrimitivePatchInterpolation();
~PrimitivePatchInterpolation();
// Member Functions // Member Functions

View File

@ -116,9 +116,8 @@ public:
inline autoPtr<Matrix<Form, Type> > clone() const; inline autoPtr<Matrix<Form, Type> > clone() const;
// Destructor //- Destructor
~Matrix();
~Matrix();
// Member Functions // Member Functions

View File

@ -158,9 +158,8 @@ public:
{} {}
// Destructor //- Destructor
virtual ~lduAddressing();
virtual ~lduAddressing();
// Member Functions // Member Functions

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