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

STYLE: Minor coding style tweaks

parent 98dcedc3
......@@ -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>&);
};
......
......@@ -84,6 +84,7 @@ private:
//- Dimensions of source properties
dimensionSet dimensions_;
//- List of field names the source is working on
wordList fieldNames_;
......
......@@ -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;
};
......
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