ETL
0.04.19
|
Loose Object Handle. More...
#include <ETL/handle>
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_handle () | |
Default constructor - empty handle. | |
loose_handle (pointer x) | |
Constructor that constructs from a pointer to new object. | |
loose_handle (const loose_handle< value_type > &x) | |
Default copy constructor. | |
loose_handle (const handle< value_type > &x) | |
template<class U > | |
const loose_handle< value_type > & | operator= (const handle< U > &x) |
template<class U > | |
const loose_handle< value_type > & | operator= (const loose_handle< U > &x) |
const loose_handle< value_type > & | operator= (const loose_handle< value_type > &x) |
Assignment operator. | |
loose_handle< value_type > & | swap (loose_handle< value_type > &x) |
Swaps the values of two handles without reference counts. | |
void | detach () |
Handle release procedure. | |
void | reset () |
bool | empty () const |
loose_handle< const value_type > | constant () const |
Returns a constant handle to our object. | |
count_type | count () const |
Returns number of instances. | |
reference | operator* () const |
pointer | operator-> () const |
operator loose_handle< const value_type > () const | |
static_cast<> overload | |
operator handle< value_type > () const | |
operator rhandle< value_type > () const | |
pointer | get () const |
Returns pointer to the object that is being wrapped. | |
operator bool () const | |
More explicit bool cast. | |
bool | operator! () const |
void | ref () |
bool | unref () |
Protected Attributes | |
value_type * | obj |
Pointer to object. |
Loose Object Handle.
typedef T loose_handle< T >::value_type |
typedef T& loose_handle< T >::reference |
typedef const T& loose_handle< T >::const_reference |
typedef T* loose_handle< T >::pointer |
typedef const T* loose_handle< T >::const_pointer |
typedef int loose_handle< T >::count_type |
typedef int loose_handle< T >::size_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 693 of file _handle.h.
References handle< T >::get(), and loose_handle< T >::obj.
|
inline |
Definition at line 703 of file _handle.h.
References loose_handle< T >::get(), and loose_handle< T >::obj.
|
inline |
Assignment operator.
Definition at line 714 of file _handle.h.
References loose_handle< T >::get(), and loose_handle< T >::obj.
|
inline |
Swaps the values of two handles without reference counts.
Definition at line 725 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
Handle release procedure.
Definition at line 734 of file _handle.h.
References loose_handle< T >::obj.
Referenced by loose_handle< T >::reset().
|
inline |
Definition at line 739 of file _handle.h.
References loose_handle< T >::detach().
|
inline |
Definition at line 741 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
|
inline |
Returns number of instances.
Definition at line 748 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
Definition at line 752 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
Definition at line 756 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
static_cast<> overload
static_cast<> overload (for consts)
Definition at line 765 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
Definition at line 768 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
Definition at line 771 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
Returns pointer to the object that is being wrapped.
Definition at line 775 of file _handle.h.
References loose_handle< T >::obj.
Referenced by handle< T >::cast_const(), handle< T >::cast_dynamic(), handle< T >::cast_reinterpret(), handle< T >::cast_static(), operator!=(), loose_handle< T >::operator=(), and operator==().
|
inline |
More explicit bool cast.
Definition at line 778 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
Definition at line 782 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
Definition at line 785 of file _handle.h.
References loose_handle< T >::obj.
|
inline |
Definition at line 787 of file _handle.h.
References loose_handle< T >::obj.
|
protected |
Pointer to object.
Definition at line 677 of file _handle.h.
Referenced by loose_handle< T >::count(), loose_handle< T >::detach(), loose_handle< T >::empty(), loose_handle< T >::get(), loose_handle< T >::operator bool(), loose_handle< T >::operator handle< value_type >(), loose_handle< T >::operator loose_handle< const value_type >(), loose_handle< T >::operator rhandle< value_type >(), loose_handle< T >::operator!(), loose_handle< T >::operator*(), loose_handle< T >::operator->(), loose_handle< T >::operator=(), loose_handle< T >::ref(), loose_handle< T >::swap(), and loose_handle< T >::unref().