Commit 76c0a7bf authored by Andrew Heather's avatar Andrew Heather
Browse files

STYLE: Minor coding style tweaks

parent 98dcedc3
...@@ -77,52 +77,53 @@ public: ...@@ -77,52 +77,53 @@ public:
// Member Functions // Member Functions
// Check // Check
//- Return true if the autoPtr is empty (ie, no pointer set). //- Return true if the autoPtr is empty (ie, no pointer set).
inline bool empty() const; inline bool empty() const;
//- Return true if the autoPtr valid (ie, the pointer is set). //- Return true if the autoPtr valid (ie, the pointer is set).
inline bool valid() const; inline bool valid() const;
// Edit // Edit
//- Return object pointer for reuse //- Return object pointer for reuse
inline T* ptr(); inline T* ptr();
//- Set pointer to that given. //- Set pointer to that given.
// If object pointer already set issue a FatalError. // If object pointer already set issue a FatalError.
inline void set(T*); inline void set(T*);
//- If object pointer already set, delete object and set to given pointer //- If object pointer already set, delete object and set to given
inline void reset(T* = 0); // pointer
inline void reset(T* = 0);
//- Delete object and set pointer to NULL, if the pointer is valid. //- Delete object and set pointer to NULL, if the pointer is valid.
inline void clear(); inline void clear();
// Member operators // Member operators
//- Return reference to the object data //- Return reference to the object data
inline T& operator()(); inline T& operator()();
//- Return const reference to the object data //- Return const reference to the object data
inline const T& operator()() const; inline const T& operator()() const;
// inline T& operator*(); // inline T& operator*();
// inline const T& operator*() const; // inline const T& operator*() const;
inline operator const T&() const; inline operator const T&() const;
//- Return object pointer //- Return object pointer
inline T* operator->(); inline T* operator->();
//- Return const object pointer //- Return const object pointer
inline const T* operator->() const; inline const T* operator->() const;
//- Take over object pointer from parameter //- Take over object pointer from parameter
inline void operator=(const autoPtr<T>&); inline void operator=(const autoPtr<T>&);
}; };
......
...@@ -84,6 +84,7 @@ private: ...@@ -84,6 +84,7 @@ private:
//- Dimensions of source properties //- Dimensions of source properties
dimensionSet dimensions_; dimensionSet dimensions_;
//- List of field names the source is working on
wordList fieldNames_; wordList fieldNames_;
......
...@@ -51,13 +51,12 @@ class cellSet ...@@ -51,13 +51,12 @@ class cellSet
: :
public topoSet public topoSet
{ {
// Private Member Functions // Private Member Functions
//- Disallow default bitwise copy construct //- Disallow default bitwise copy construct
cellSet(const cellSet&); cellSet(const cellSet&);
public: public:
//- Runtime type information //- Runtime type information
...@@ -66,7 +65,6 @@ public: ...@@ -66,7 +65,6 @@ public:
// Constructors // Constructors
//- Construct from IOobject. No checking. //- Construct from IOobject. No checking.
cellSet(const IOobject& obj); cellSet(const IOobject& obj);
...@@ -161,7 +159,6 @@ public: ...@@ -161,7 +159,6 @@ public:
const primitiveMesh&, const primitiveMesh&,
const label maxLen const label maxLen
) const; ) const;
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment