From 76c0a7bfb9e08da170e665182eab26fe97113770 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 3 Feb 2010 19:08:18 +0000 Subject: [PATCH] STYLE: Minor coding style tweaks --- src/OpenFOAM/memory/autoPtr/autoPtr.H | 59 ++++++++++--------- .../TimeActivatedExplicitSourceList.H | 1 + src/meshTools/sets/topoSets/cellSet.H | 5 +- 3 files changed, 32 insertions(+), 33 deletions(-) diff --git a/src/OpenFOAM/memory/autoPtr/autoPtr.H b/src/OpenFOAM/memory/autoPtr/autoPtr.H index c90898d055..8d29cda660 100644 --- a/src/OpenFOAM/memory/autoPtr/autoPtr.H +++ b/src/OpenFOAM/memory/autoPtr/autoPtr.H @@ -77,52 +77,53 @@ public: // Member Functions - // Check + // Check - //- Return true if the autoPtr is empty (ie, no pointer set). - inline bool empty() const; + //- Return true if the autoPtr is empty (ie, no pointer set). + inline bool empty() const; - //- Return true if the autoPtr valid (ie, the pointer is set). - inline bool valid() const; + //- Return true if the autoPtr valid (ie, the pointer is set). + inline bool valid() const; - // Edit + // Edit - //- Return object pointer for reuse - inline T* ptr(); + //- Return object pointer for reuse + inline T* ptr(); - //- Set pointer to that given. - // If object pointer already set issue a FatalError. - inline void set(T*); + //- Set pointer to that given. + // If object pointer already set issue a FatalError. + inline void set(T*); - //- If object pointer already set, delete object and set to given pointer - inline void reset(T* = 0); + //- If object pointer already set, delete object and set to given + // pointer + inline void reset(T* = 0); - //- Delete object and set pointer to NULL, if the pointer is valid. - inline void clear(); + //- Delete object and set pointer to NULL, if the pointer is valid. + inline void clear(); - // Member operators + // Member operators - //- Return reference to the object data - inline T& operator()(); + //- Return reference to the object data + inline T& operator()(); - //- Return const reference to the object data - inline const T& operator()() const; + //- Return const reference to the object data + inline const T& operator()() const; - // inline T& operator*(); - // inline const T& operator*() const; + // inline T& operator*(); + // inline const T& operator*() const; - inline operator const T&() const; + inline operator const T&() const; - //- Return object pointer - inline T* operator->(); + //- Return object pointer + inline T* operator->(); - //- Return const object pointer - inline const T* operator->() const; + //- Return const object pointer + inline const T* operator->() const; - //- Take over object pointer from parameter - inline void operator=(const autoPtr&); + //- Take over object pointer from parameter + inline void operator=(const autoPtr&); }; diff --git a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.H b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.H index fd3c2fe8db..6309771b6a 100644 --- a/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.H +++ b/src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/TimeActivatedExplicitSourceList.H @@ -84,6 +84,7 @@ private: //- Dimensions of source properties dimensionSet dimensions_; + //- List of field names the source is working on wordList fieldNames_; diff --git a/src/meshTools/sets/topoSets/cellSet.H b/src/meshTools/sets/topoSets/cellSet.H index 607813ab9c..8d01947847 100644 --- a/src/meshTools/sets/topoSets/cellSet.H +++ b/src/meshTools/sets/topoSets/cellSet.H @@ -51,13 +51,12 @@ class cellSet : public topoSet { - - // Private Member Functions //- Disallow default bitwise copy construct cellSet(const cellSet&); + public: //- Runtime type information @@ -66,7 +65,6 @@ public: // Constructors - //- Construct from IOobject. No checking. cellSet(const IOobject& obj); @@ -161,7 +159,6 @@ public: const primitiveMesh&, const label maxLen ) const; - };