#include <shared.hpp>


Definition at line 46 of file shared.hpp.
Public Member Functions | |
| void | attach () |
| bool | detach () |
| Returns true if the object deleted itself. | |
| const int & | get_ref_count () const |
| shared_object () | |
| virtual | ~shared_object () |
Private Attributes | |
| int | ref_count |
| shared_object | ( | ) |
Definition at line 42 of file shared.cpp.
| ~shared_object | ( | ) | [virtual] |
Definition at line 48 of file shared.cpp.
| void attach | ( | ) |
Definition at line 53 of file shared.cpp.
References shared_object::ref_count.
Referenced by font::font(), material::material(), model_part::model_part(), string::operator=(), string::string(), texture::texture(), and string::unshare().
| bool detach | ( | ) |
Returns true if the object deleted itself.
Definition at line 59 of file shared.cpp.
References shared_object::ref_count.
Referenced by string::make_null(), string::unshare(), font::~font(), and texture::~texture().
| const int& get_ref_count | ( | ) | const [inline] |
int ref_count [private] |
Definition at line 49 of file shared.hpp.
Referenced by shared_object::attach(), and shared_object::detach().
1.5.5