#include <smartptr.h>
Inheritance diagram for gutz::Counted:
class CMyObject : public Counted { ... };
TODO: add stack-heap check using operator new and a a static pointer map.
Definition at line 33 of file smartptr.h.
Public Member Functions | |
virtual | ~Counted () |
Protected Member Functions | |
virtual void | _incCount () |
gutz::Counted interface, increment reference count by one. | |
virtual void | _decCount () |
gutz::Counted interface, decrement reference count by one. | |
virtual int | _getCount () const |
gutz::Counted interface, get the current reference count. | |
Counted (const Counted &c) | |
protected constructor since this class does nothing by itself | |
Counted & | operator= (const Counted &c) |
need to handle this correctly | |
Counted () | |
default constructor, protected! | |
Friends | |
class | SmartPtr |
class | SmartPtrRef |
|
Definition at line 36 of file smartptr.h. |
|
protected constructor since this class does nothing by itself
Definition at line 61 of file smartptr.h. Referenced by DataObjIF::DataObjIF(). |
|
default constructor, protected!
Definition at line 65 of file smartptr.h. |
|
gutz::Counted interface, decrement reference count by one. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr Definition at line 54 of file smartptr.h. Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax(). |
|
gutz::Counted interface, get the current reference count. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Definition at line 58 of file smartptr.h. |
|
gutz::Counted interface, increment reference count by one. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr Definition at line 48 of file smartptr.h. Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax(). |
|
need to handle this correctly
Definition at line 63 of file smartptr.h. |
|
Definition at line 40 of file smartptr.h. Referenced by Nrro::NrroIter< T >::NrroIter(). |
|
Definition at line 41 of file smartptr.h. |