|
cgv
|
#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 | |
if you derive your class from this class, a ref_ptr will do reference counting in the inhereted ref_count member.