ETL
0.04.19
|
Loose Object Smart Pointer. More...
#include <ETL/smart_ptr>
Public Types | |
typedef T | value_type |
typedef T & | reference |
typedef const T & | const_reference |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef int | count_type |
typedef int | size_type |
Public Member Functions | |
loose_smart_ptr () | |
Default constructor - empty smart_ptr. | |
loose_smart_ptr (const loose_smart_ptr< value_type > &x) | |
Default copy constructor. | |
loose_smart_ptr (const smart_ptr< value_type > &x) | |
void | reset () |
operator smart_ptr< value_type > () | |
operator smart_ptr< const value_type > () | |
const count_type & | count () const |
Returns number of instances. | |
bool | unique () const |
reference | operator* () const |
pointer | operator-> () const |
pointer | get () const |
bool | operator! () const |
Private Attributes | |
value_type * | obj |
weak_reference_counter | refcount |
Loose Object Smart Pointer.
Definition at line 230 of file _smart_ptr.h.
typedef T loose_smart_ptr< T >::value_type |
Definition at line 234 of file _smart_ptr.h.
typedef T& loose_smart_ptr< T >::reference |
Definition at line 235 of file _smart_ptr.h.
typedef const T& loose_smart_ptr< T >::const_reference |
Definition at line 236 of file _smart_ptr.h.
typedef T* loose_smart_ptr< T >::pointer |
Definition at line 237 of file _smart_ptr.h.
typedef const T* loose_smart_ptr< T >::const_pointer |
Definition at line 238 of file _smart_ptr.h.
typedef int loose_smart_ptr< T >::count_type |
Definition at line 239 of file _smart_ptr.h.
typedef int loose_smart_ptr< T >::size_type |
Definition at line 240 of file _smart_ptr.h.
|
inline |
Default constructor - empty smart_ptr.
Definition at line 249 of file _smart_ptr.h.
|
inline |
Default copy constructor.
Definition at line 252 of file _smart_ptr.h.
|
inline |
Definition at line 254 of file _smart_ptr.h.
|
inline |
Definition at line 256 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj, and loose_smart_ptr< T >::refcount.
|
inline |
Definition at line 258 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj, and loose_smart_ptr< T >::refcount.
|
inline |
Definition at line 263 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj, and loose_smart_ptr< T >::refcount.
|
inline |
Returns number of instances.
Definition at line 269 of file _smart_ptr.h.
References loose_smart_ptr< T >::refcount.
|
inline |
Definition at line 271 of file _smart_ptr.h.
References loose_smart_ptr< T >::refcount, and weak_reference_counter::unique().
|
inline |
Definition at line 273 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj.
|
inline |
Definition at line 275 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj.
|
inline |
Definition at line 277 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj.
Referenced by operator!=(), and operator==().
|
inline |
Definition at line 279 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj.
|
private |
Definition at line 243 of file _smart_ptr.h.
Referenced by loose_smart_ptr< T >::get(), loose_smart_ptr< T >::operator smart_ptr< const value_type >(), loose_smart_ptr< T >::operator smart_ptr< value_type >(), loose_smart_ptr< T >::operator!(), loose_smart_ptr< T >::operator*(), loose_smart_ptr< T >::operator->(), and loose_smart_ptr< T >::reset().
|
private |
Definition at line 244 of file _smart_ptr.h.
Referenced by loose_smart_ptr< T >::count(), loose_smart_ptr< T >::operator smart_ptr< const value_type >(), loose_smart_ptr< T >::operator smart_ptr< value_type >(), loose_smart_ptr< T >::reset(), and loose_smart_ptr< T >::unique().