#include <ivfdef/IvfPointer.h>
Public Member Functions | |
| CIvfPointerRefBase (T *object=0) | |
| CIvfPointerRefBase (const CIvfPointerRefBase &ivfObject) | |
| virtual | ~CIvfPointerRefBase () |
| operator T * () const | |
| T & | operator * () const |
| T * | operator-> () const |
| CIvfPointerRefBase & | operator= (const CIvfPointerRefBase &IvfPointerRefBase) |
| CIvfPointerRefBase & | operator= (T *ivfObject) |
| bool | operator== (T *ivfObject) const |
| bool | operator!= (T *ivfObject) const |
| bool | operator== (const CIvfPointerRefBase &IvfPointerRefBase) const |
| bool | operator!= (const CIvfPointerRefBase &IvfPointerRefBase) const |
CIvfPointer handles the Ivf++ reference counting scheme of the CIvfBase class. To declare a Ivf++ smart pointer use the IvfSmartPointer() macro. See the following example:
int main() { CIvfPointer<CIvfMaterial> material = new CIvfMaterial(); // addReference() called. CIvfPointer<CIvfMaterial> material2; material2 = material; // addReference() called . . return 0; } // material calls deleteReference() // material2 calls deleteRefernce() and deletes CIvfMaterial object
Definition at line 53 of file IvfPointer.h.
1.4.6-NO