FastUIDraw
|
Base class to use for reference counted objects, for using reference_counted_ptr. See also reference_counted. Object deletion (when the reference count goes to zero) is performed via FASTUIDRAWdelete. As a consequence of using FASTUIDRAWdelete, objects must be created with FASTUIDRAWnew. More...
#include <reference_counted.hpp>
Public Member Functions | |
reference_counted_base (void) | |
Static Public Member Functions | |
static void | add_reference (const reference_counted_base< T, Counter > *p) |
static void | remove_reference (const reference_counted_base< T, Counter > *p) |
Base class to use for reference counted objects, for using reference_counted_ptr. See also reference_counted. Object deletion (when the reference count goes to zero) is performed via FASTUIDRAWdelete. As a consequence of using FASTUIDRAWdelete, objects must be created with FASTUIDRAWnew.
T | object type that is reference counted |
Counter | object type to perform reference counting. |
The type Counter must expose the methods:
Definition at line 433 of file reference_counted.hpp.
|
inline |
Empty ctor.
Definition at line 439 of file reference_counted.hpp.
|
inlinestatic |
Adds a reference count to an object.
p | pointer to object to which to add reference count. |
Definition at line 452 of file reference_counted.hpp.
|
inlinestatic |
Removes a reference count to an object, if the reference count is 0, then deletes the object with FASTUIDRAWdelete.
p | pointer to object from which to remove reference count. |
Definition at line 465 of file reference_counted.hpp.