#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 |
handle< value_type > | clone () 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 | |
static_cast<> overload (for consts) | |
operator handle () const | |
operator rhandle () 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. |
Definition at line 638 of file _handle.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Default constructor - empty handle.
|
|
Constructor that constructs from a pointer to new object.
|
|
Default copy constructor.
|
|
|
|
Definition at line 667 of file _handle.h. References handle< T >::get(), and loose_handle< T >::obj. |
|
Definition at line 677 of file _handle.h. References loose_handle< T >::get(), and loose_handle< T >::obj. |
|
Assignment operator.
Definition at line 688 of file _handle.h. References loose_handle< T >::get(), and loose_handle< T >::obj. |
|
Swaps the values of two handles without reference counts.
Definition at line 699 of file _handle.h. References loose_handle< T >::get(), and loose_handle< T >::obj. |
|
Handle release procedure.
Definition at line 708 of file _handle.h. References loose_handle< T >::obj. Referenced by loose_handle< T >::reset(). |
|
Definition at line 713 of file _handle.h. References loose_handle< T >::detach(). |
|
Definition at line 715 of file _handle.h. References loose_handle< T >::obj. |
|
Definition at line 717 of file _handle.h. References loose_handle< T >::obj. |
|
Returns a constant handle to our object.
|
|
Returns number of instances.
Definition at line 724 of file _handle.h. References loose_handle< T >::obj. |
|
Definition at line 728 of file _handle.h. References loose_handle< T >::obj. |
|
Definition at line 732 of file _handle.h. References loose_handle< T >::obj. |
|
static_cast<> overload (for consts)
Definition at line 741 of file _handle.h. References loose_handle< T >::obj. |
|
Definition at line 744 of file _handle.h. References loose_handle< T >::obj. |
|
Definition at line 747 of file _handle.h. References loose_handle< T >::obj. |
|
Returns pointer to the object that is being wrapped.
Definition at line 751 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=(), operator==(), and loose_handle< T >::swap(). |
|
More explicit bool cast.
Definition at line 754 of file _handle.h. References loose_handle< T >::obj. |
|
Definition at line 758 of file _handle.h. References loose_handle< T >::obj. |
|
Definition at line 761 of file _handle.h. References loose_handle< T >::obj. |
|
Definition at line 763 of file _handle.h. References loose_handle< T >::obj. |
|