#include <RefCountedObject.h>
Public Member Functions | |
RefCountedPtr () | |
RefCountedPtr (T *obj) | |
RefCountedPtr (const RefCountedPtr< T > &other) | |
~RefCountedPtr () | |
void | operator= (const RefCountedPtr< T > &other) |
T & | operator* () |
const T & | operator* () const |
T * | operator-> () |
const T * | operator-> () const |
int | refcount () const |
operator bool () const | |
void | allocate () |
template<class P1 > | |
void | allocate (const P1 &p1) |
template<class P1 , class P2 > | |
void | allocate (const P1 &p1, const P2 &p2) |
template<class P1 , class P2 , class P3 > | |
void | allocate (const P1 &p1, const P2 &p2, const P3 &p3) |
void | clear () |
Static Public Member Functions | |
template<class U > | |
static RefCountedPtr< T > | downCast (RefCountedPtr< U > other) |
Template for a reference counted ptr. Template argument T should be a subclass of RefCountedObject, or provide a similar interface.
|
inline |
Create a NULL pointer.
|
inlineexplicit |
Create a new RefCountedPtr around an existing object, and increment its reference count.
|
inline |
Copy an existing RefCountedPtr and increment the reference
|
inline |
Destroy the RefCountedPtr and if needed delete the underlying object
|
inline |
Copy an existing RefCountedPtr, incrementing and decrementing references as appropriate.
|
inline |
Get the underlying object
|
inline |
Get the underlying object
|
inline |
Get the underlying object
|
inline |
Get the underlying object
|
inline |
Return the reference count of the underlying object
|
inlinestatic |
Use dynamic_cast to downcast to another, more specific, RefCountedPtr type
|
inline |
Test whether the pointer is pointing at an object right now. True if it is.
|
inline |
Allocate a new object and make this pointer be a reference to it.
Referenced by DD::Image::GeometryList::add_primitive().
|
inline |
Allocate a new object and make this pointer be a reference to it.
|
inline |
Allocate a new object and make this pointer be a reference to it.
|
inline |
Allocate a new object and make this pointer be a reference to it.
|
inline |
Unreference the existing object (possibly deleting it)
Referenced by DD::Image::GeoOp::delete_allocations(), and DD::Image::GeoOp::get_geometry().
©2024 The Foundry Visionmongers, Ltd. All Rights Reserved. |