ETL
0.04.19
|
Reference counter. More...
#include <ETL/ref_count>
Public Member Functions | |
reference_counter (const bool &x=true) | |
reference_counter (const reference_counter &x) | |
reference_counter (const weak_reference_counter &x) | |
~reference_counter () | |
reference_counter & | operator= (const reference_counter &rhs) |
void | detach () |
void | reset () |
int | count () const |
bool | unique () const |
operator int () const |
Private Attributes | |
int * | counter_ |
Friends | |
class | weak_reference_counter |
Reference counter.
Definition at line 51 of file _ref_count.h.
|
inline |
Definition at line 58 of file _ref_count.h.
|
inline |
Definition at line 60 of file _ref_count.h.
References counter_.
|
inline |
Definition at line 146 of file _ref_count.h.
References counter_.
|
inline |
Definition at line 65 of file _ref_count.h.
References detach().
|
inline |
Definition at line 67 of file _ref_count.h.
|
inline |
Definition at line 79 of file _ref_count.h.
References counter_.
Referenced by operator=(), reset(), smart_ptr< T, D >::reset(), and ~reference_counter().
|
inline |
Definition at line 90 of file _ref_count.h.
|
inline |
|
inline |
Definition at line 98 of file _ref_count.h.
References counter_.
Referenced by smart_ptr< T, D >::reset(), smart_ptr< T, D >::unique(), and smart_ptr< T, D >::~smart_ptr().
|
inline |
Definition at line 100 of file _ref_count.h.
References count().
|
friend |
Definition at line 53 of file _ref_count.h.
|
private |
Definition at line 55 of file _ref_count.h.
Referenced by count(), detach(), operator=(), weak_reference_counter::operator=(), reference_counter(), reset(), and unique().