#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 () | |
| operator smart_ptr () | |
| 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 |
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.
| loose_smart_ptr< T >::loose_smart_ptr | ( | ) | [inline] |
| loose_smart_ptr< T >::loose_smart_ptr | ( | const loose_smart_ptr< value_type > & | x | ) | [inline] |
| loose_smart_ptr< T >::loose_smart_ptr | ( | const smart_ptr< value_type > & | x | ) | [inline] |
Definition at line 254 of file _smart_ptr.h.
| void loose_smart_ptr< T >::reset | ( | ) | [inline] |
Definition at line 256 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj, and loose_smart_ptr< T >::refcount.
| loose_smart_ptr< T >::operator smart_ptr | ( | ) | [inline] |
Definition at line 258 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj, and loose_smart_ptr< T >::refcount.
| loose_smart_ptr< T >::operator smart_ptr | ( | ) | [inline] |
Definition at line 263 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj, and loose_smart_ptr< T >::refcount.
| const count_type& loose_smart_ptr< T >::count | ( | ) | const [inline] |
Returns number of instances.
Definition at line 269 of file _smart_ptr.h.
References loose_smart_ptr< T >::refcount.
| bool loose_smart_ptr< T >::unique | ( | ) | const [inline] |
Definition at line 271 of file _smart_ptr.h.
References loose_smart_ptr< T >::refcount, and weak_reference_counter::unique().
| reference loose_smart_ptr< T >::operator * | ( | ) | const [inline] |
| pointer loose_smart_ptr< T >::operator-> | ( | ) | const [inline] |
| pointer loose_smart_ptr< T >::get | ( | ) | const [inline] |
Definition at line 277 of file _smart_ptr.h.
References loose_smart_ptr< T >::obj.
Referenced by operator!=(), and operator==().
| bool loose_smart_ptr< T >::operator! | ( | ) | const [inline] |
value_type* 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 *(), loose_smart_ptr< T >::operator smart_ptr(), loose_smart_ptr< T >::operator!(), loose_smart_ptr< T >::operator->(), and loose_smart_ptr< T >::reset().
weak_reference_counter loose_smart_ptr< T >::refcount [private] |
Definition at line 244 of file _smart_ptr.h.
Referenced by loose_smart_ptr< T >::count(), loose_smart_ptr< T >::operator smart_ptr(), loose_smart_ptr< T >::reset(), and loose_smart_ptr< T >::unique().
1.5.2