UQTk: Uncertainty Quantification Toolkit 3.1.5
|
#include <Object.h>
Public Member Functions | |
Object () | |
Construct a new reference counted object with a zero reference count. | |
virtual | ~Object () |
Destroy this object. | |
long int | reference_count () const |
Returns the number of references that are held to this object. | |
Protected Member Functions | |
long int | reference_grab () const |
long int | reference_release () const |
Private Attributes | |
long int | refs_ |
Friends | |
template<class T > | |
class | RefPtr |
template<class T > | |
class | ConstRefPtr |
Base class for reference counted objects.
Part of the Particle Simulation Toolkit (pst)
The "friend" classes "RefPtr" and "ConstRefPtr" take care of the reference counting and garbage collection. This means that it should be safe to create an array of reference counted objects, as long as you do not assign a reference counted pointer to any at the entries in the array at any time.
|
inline |
Construct a new reference counted object with a zero reference count.
|
inlinevirtual |
Destroy this object.
|
inline |
Returns the number of references that are held to this object.
|
inlineprotected |
Enables the friends of the class to increment and decrement the reference count.
|
inlineprotected |
|
friend |
|
friend |
|
mutableprivate |