6 #ifndef REFCOUNTOBJECT_H_
7 #define REFCOUNTOBJECT_H_
61 int postDecCount = --_referenceCount;
62 if (postDecCount <= 0)
64 delete static_cast<T *
>(
this);
70 #endif // REFCOUNTOBJECT_H_
RefCountObject()
Constructor, setting a zero reference count.
Definition: refcountobject.h:34
int decReference()
Decrement the reference count.
Definition: refcountobject.h:59
int referenceCount() const
Access the current reference count.
Definition: refcountobject.h:42
A base class for adding reference counting to a class.
Definition: refcountobject.h:30
RefCountObject(int initialCount)
Constructor, setting the given initial reference count.
Definition: refcountobject.h:38
int addReference()
Increment and return the reference count.
Definition: refcountobject.h:46
Utility functions for sampling and filtering plots and expression evaluation.
Definition: plotutil.h:13