#include <AutoArray.h>
Inheritance diagram for AutoArray:
Public Member Functions | |
AutoArray (T *t) | |
void | registerReferer (void *pR) |
int | hasReferer () const |
T * | origObject () |
Static Public Member Functions | |
static bool | destroy (AutoArray< T > *pA, void *pR) |
static bool | destroy (AutoPtr< T > *pA, void *pR) |
Protected Member Functions | |
~AutoArray () | |
void | _unregister (void *pR) |
Protected Attributes | |
T * | _pObject |
original object | |
std::set< void * > | _ref |
set of referencing objects | |
Static Protected Attributes | |
static std::set< AutoArray< T > * > | _repos |
global static set of AutoArray instances |
This class very similar to AutoPtr class but is designed for arrays instead of single objects.
Protocol: see AutoPtr
Definition at line 24 of file AutoArray.h.
|
|
|
|
|
Definition at line 49 of file AutoPtr.h. Referenced by AutoPtr< Mesh >::destroy(), and AutoArray< Vertex3 >::destroy(). |
|
Destructor of original object. The object is realy destroied only if it has no reference to it.
|
|
Destructor of original array. The array is realy destroied only if it has no reference to it.
Definition at line 57 of file AutoArray.h. |
|
Returns number of referers registered to this autopointer
Definition at line 100 of file AutoPtr.h. Referenced by AutoPtr< Mesh >::destroy(), and AutoArray< Vertex3 >::destroy(). |
|
Returns the original object stored in this autopointer
Definition at line 107 of file AutoPtr.h. Referenced by Surface::_duplicate_attributes(), LightSource::LightSource(), SceneGraphObject::setSharedDiffuseBRDF(), SceneGraphObject::setSharedEmittance(), SceneGraphObject::setSharedGeometry(), SceneGraphObject::setSharedSpecularBRDF(), SceneGraphObject::setSharedTexture(), SceneGraphObject::setSharedTransformation(), and Surface::Surface(). |
|
Registers new object that uses the object in this autopointer.
Definition at line 93 of file AutoPtr.h. Referenced by Surface::_duplicate_attributes(), SceneGraphObject::appendSharedAttribute(), SceneGraphObject::appendSharedMaterial(), RhinoParser::RhinoParser(), Shape::setEnergyState(), SceneGraphObject::setSharedDiffuseBRDF(), SceneGraphObject::setSharedEmittance(), SceneGraphObject::setSharedGeometry(), SceneGraphObject::setSharedSpecularBRDF(), SceneGraphObject::setSharedTexture(), SceneGraphObject::setSharedTransformation(), and Surface::Surface(). |
|
original object
|
|
set of referencing objects
|
|
global static set of AutoArray instances
Reimplemented from AutoPtr. Definition at line 26 of file AutoArray.h. |