cgv
|
if you derive your class from this class, a ref_ptr will do reference counting in the inhereted ref_count member. More...
#include <ref_counted.h>
Public Member Functions | |
int | get_ref_count () const |
read access to current count | |
Protected Member Functions | |
ref_counted () | |
constructor initializes the count to 0 | |
void | set_ref_count (int c) const |
write access is also const to allow ref counted pointers to const instances | |
Friends | |
class | ref_ptr_tag |
if you derive your class from this class, a ref_ptr will do reference counting in the inhereted ref_count member.
Definition at line 10 of file ref_counted.h.
|
inlineprotected |
constructor initializes the count to 0
Definition at line 18 of file ref_counted.h.
|
inline |
read access to current count
Definition at line 23 of file ref_counted.h.
Referenced by cgv::data::ref_ptr_tag::dec_ref_count(), and cgv::data::ref_ptr_tag::inc_ref_count().
|
inlineprotected |
write access is also const to allow ref counted pointers to const instances
Definition at line 20 of file ref_counted.h.
Referenced by cgv::data::ref_ptr_tag::dec_ref_count(), and cgv::data::ref_ptr_tag::inc_ref_count().
|
friend |
Definition at line 16 of file ref_counted.h.