STYLE: Minor coding style tweaks

This commit is contained in:
andy
2010-02-03 19:08:18 +00:00
parent 98dcedc39e
commit 76c0a7bfb9
3 changed files with 32 additions and 33 deletions

View File

@ -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<T>&);
//- Take over object pointer from parameter
inline void operator=(const autoPtr<T>&);
};

View File

@ -84,6 +84,7 @@ private:
//- Dimensions of source properties
dimensionSet dimensions_;
//- List of field names the source is working on
wordList fieldNames_;

View File

@ -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;
};