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,8 +128,7 @@ public:
); );
// Destructor //- Destructor
virtual ~basicSubGrid(); virtual ~basicSubGrid();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -94,8 +94,7 @@ public:
); );
// Destructor //- Destructor
~threePhaseMixture() ~threePhaseMixture()
{} {}

View File

@ -96,8 +96,7 @@ public:
); );
// Destructor //- Destructor
virtual ~Kunz() virtual ~Kunz()
{} {}

View File

@ -90,8 +90,7 @@ public:
); );
// Destructor //- Destructor
virtual ~Merkle() virtual ~Merkle()
{} {}

View File

@ -103,8 +103,7 @@ public:
); );
// Destructor //- Destructor
virtual ~SchnerrSauer() virtual ~SchnerrSauer()
{} {}

View File

@ -121,8 +121,7 @@ public:
); );
// Destructor //- Destructor
virtual ~phaseChangeTwoPhaseMixture() virtual ~phaseChangeTwoPhaseMixture()
{} {}

View File

@ -209,8 +209,7 @@ public:
); );
// Destructor //- Destructor
~multiphaseMixture() ~multiphaseMixture()
{} {}

View File

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

View File

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

View File

@ -238,8 +238,7 @@ public:
); );
// Destructor //- Destructor
~sammMesh(); ~sammMesh();

View File

@ -299,8 +299,7 @@ public:
); );
// Destructor //- Destructor
~starMesh(); ~starMesh();

View File

@ -102,8 +102,7 @@ public:
mergePolyMesh(const IOobject& io); mergePolyMesh(const IOobject& io);
// Destructor //- Destructor
virtual ~mergePolyMesh() virtual ~mergePolyMesh()
{} {}

View File

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

View File

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

View File

@ -230,8 +230,7 @@ public:
); );
// Destructor //- Destructor
~fvFieldDecomposer(); ~fvFieldDecomposer();

View File

@ -138,8 +138,7 @@ public:
); );
// Destructor //- Destructor
~pointFieldDecomposer(); ~pointFieldDecomposer();

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,7 +693,6 @@ public:
//- Destructor //- Destructor
~vtkPV3Foam(); ~vtkPV3Foam();

View File

@ -312,7 +312,6 @@ public:
//- Destructor //- Destructor
~vtkPV3blockMesh(); ~vtkPV3blockMesh();

View File

@ -116,8 +116,7 @@ public:
readerDatabase(); readerDatabase();
// Destructor //- Destructor
~readerDatabase(); ~readerDatabase();

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,8 +56,7 @@ public:
{} {}
// Destructor //- Destructor
virtual ~ODE() virtual ~ODE()
{} {}

View File

@ -103,8 +103,7 @@ public:
); );
// Destructor //- Destructor
virtual ~ODESolver() virtual ~ODESolver()
{} {}

View File

@ -102,8 +102,7 @@ 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();

View File

@ -99,8 +99,7 @@ public:
sigFpe(); sigFpe();
// Destructor //- Destructor
~sigFpe(); ~sigFpe();

View File

@ -70,8 +70,7 @@ public:
sigInt(); sigInt();
// Destructor //- Destructor
~sigInt(); ~sigInt();

View File

@ -70,8 +70,7 @@ public:
sigQuit(); sigQuit();
// Destructor //- Destructor
~sigQuit(); ~sigQuit();

View File

@ -70,8 +70,7 @@ public:
sigSegv(); sigSegv();
// Destructor //- Destructor
~sigSegv(); ~sigSegv();

View File

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

View File

@ -79,15 +79,13 @@ public:
{} {}
// Destructor //- Destructor
~subCycle() ~subCycle()
{ {
// End the subCycleTime which restores the time state // End the subCycleTime, which restores the time state
endSubCycle(); endSubCycle();
// Correct the time index of the field to correspond to the global // Correct the time index of the field to correspond to the global time
// time
gf_.timeIndex() = gf_.time().timeIndex(); gf_.timeIndex() = gf_.time().timeIndex();
// Reset the old-time field value // Reset the old-time field value

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -288,8 +288,7 @@ public:
} }
// Destructor //- Destructor
virtual ~IOstream() virtual ~IOstream()
{} {}

View File

@ -85,8 +85,7 @@ public:
{} {}
// Destructor //- Destructor
virtual ~Istream() virtual ~Istream()
{} {}

View File

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

View File

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

View File

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

View File

@ -86,8 +86,7 @@ public:
); );
// Destructor //- Destructor
virtual ~ISstream() virtual ~ISstream()
{} {}

View File

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

View File

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

View File

@ -165,8 +165,7 @@ public:
{} {}
// Destructor //- Destructor
~OSHA1stream() ~OSHA1stream()
{ {
delete &dynamic_cast<osha1stream&>(stdStream()); delete &dynamic_cast<osha1stream&>(stdStream());

View File

@ -99,8 +99,7 @@ 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();

View File

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

View File

@ -209,9 +209,7 @@ public:
); );
// Destructor //- Destructor
//- Virtual destructor
virtual ~Time(); virtual ~Time();

View File

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

View File

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

View File

@ -88,8 +88,7 @@ public:
dlLibraryTable(); dlLibraryTable();
// Destructor //- Destructor
~dlLibraryTable(); ~dlLibraryTable();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -53,8 +53,7 @@ public:
{} {}
// Destructor //- Destructor
virtual ~FieldMapper() virtual ~FieldMapper()
{} {}

View File

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

View File

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

View File

@ -229,8 +229,7 @@ public:
); );
// Destructor //- Destructor
virtual ~pointPatchField<Type>() virtual ~pointPatchField<Type>()
{} {}

View File

@ -78,8 +78,7 @@ public:
JobInfo(); JobInfo();
// Destructor //- Destructor
~JobInfo(); ~JobInfo();

View File

@ -226,8 +226,7 @@ public:
{} {}
// Destructor //- Destructor
virtual ~writer() virtual ~writer()
{} {}

View File

@ -67,8 +67,7 @@ public:
{} {}
// Destructor //- Destructor
~gnuplotGraph() ~gnuplotGraph()
{} {}

View File

@ -67,8 +67,7 @@ public:
{} {}
// Destructor //- Destructor
~jplotGraph() ~jplotGraph()
{} {}

View File

@ -67,8 +67,7 @@ public:
{} {}
// Destructor //- Destructor
~rawGraph() ~rawGraph()
{} {}

View File

@ -68,8 +68,7 @@ public:
{} {}
// Destructor //- Destructor
~xmgrGraph() ~xmgrGraph()
{} {}

View File

@ -163,8 +163,7 @@ public:
); );
// Destructor //- Destructor
~PatchToPatchInterpolation(); ~PatchToPatchInterpolation();

View File

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

View File

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

View File

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

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