reference counting pointer definition traits More...
#include <count_pointer.hh>
Public Types | |
typedef pointer< manager_type > | type |
The smart pointer type. | |
Private Types | |
typedef ref_count::manager < mem_type > | manager_type |
typedef ref_count::simple_memory< Ty > | mem_type |
reference counting pointer definition traits
This structure is just an helper to have direct access for the basic smart pointer using a reference counting life time manager.
Ty | The type we want to point to |
To use a smart pointer with reference count managament user just need to declare the type like in following code.
#include "smart/count_pointer.hh" // [...] utilmm::smart::count_pointer<int>::type pi(new int(5)), pj; *pi = 6; pj = pi;
Definition at line 44 of file count_pointer.hh.
typedef ref_count::manager<mem_type> utilmm::smart::count_pointer< Ty >::manager_type [private] |
Definition at line 47 of file count_pointer.hh.
typedef ref_count::simple_memory<Ty> utilmm::smart::count_pointer< Ty >::mem_type [private] |
Definition at line 46 of file count_pointer.hh.
typedef pointer<manager_type> utilmm::smart::count_pointer< Ty >::type |
The smart pointer type.
This the type of the smart pointer with reference counting management.
Definition at line 55 of file count_pointer.hh.