|
cgv
|
Public Member Functions | |
| int | get_count () const |
| return the reference count | |
Protected Member Functions | |
| void | release () |
| if the pointer had been initialized before, decrement reference count and release pointer, if necessary delete instance | |
| T * | ref () const |
| return the pointer itself | |
| ref_ptr_impl (T *p) | |
| construct from pointer and increment reference count | |
| ref_ptr_impl (const ref_ptr_impl< T, true > &r) | |
| copy construct from same pointer type and increment count | |
| template<typename S> | |
| ref_ptr_impl (const ref_ptr_impl< S, true > &s) | |
| copy construct from pointer of derived type with virtual destructor | |
| Protected Member Functions inherited from cgv::data::ref_ptr_tag | |
| void | inc_ref_count (const ref_counted *ptr) const |
| increment the count of a ref counted object | |
| bool | dec_ref_count (const ref_counted *ptr) const |
| decrement the count of a ref counted object and return whether to delete the object | |
Protected Attributes | |
| counter_type * | counter |
| store pointer to counter struct | |
Friends | |
| class | ref_ptr_impl< const T, is_ref_counted > |
|
inlineexplicitprotected |
construct from pointer and increment reference count
Definition at line 122 of file ref_ptr.h.
References cgv::data::ref_ptr_tag::inc_ref_count().
Referenced by ref_ptr_impl(), and ref_ptr_impl().
|
inlineprotected |
copy construct from same pointer type and increment count
Definition at line 127 of file ref_ptr.h.
References cgv::data::ref_ptr_tag::inc_ref_count(), ref(), and ref_ptr_impl().
|
inlineprotected |
copy construct from pointer of derived type with virtual destructor
Definition at line 134 of file ref_ptr.h.
References cgv::data::ref_ptr_tag::inc_ref_count(), and ref_ptr_impl().
|
inline |
|
inlineprotected |
|
inlineprotected |
if the pointer had been initialized before, decrement reference count and release pointer, if necessary delete instance
Definition at line 108 of file ref_ptr.h.
References cgv::data::ref_ptr_tag::dec_ref_count().
|
friend |
|
mutableprotected |