Shared pointer. More...
#include <Pointer.h>
Classes | |
class | Impl |
Pointer implementation. More... | |
class | ImplA |
Pointer implementation (abstract base) More... | |
Public Member Functions | |
T * | get () const |
Retrieve the stored pointer. More... | |
operator void * () const | |
Void pointer conversion. More... | |
bool | operator!= (const Pointer< T > &pointer) const |
Inequality comparison operator. More... | |
T & | operator* () const |
Reference operator. More... | |
T * | operator-> () const |
Pointer operator. More... | |
bool | operator== (const Pointer< T > &pointer) const |
Equality comparison operator. More... | |
Pointer (T *pointer=0) | |
Default constructor. More... | |
Pointer (const Pointer< T > &src) | |
Copy constructor. More... | |
void | reset () |
Reset this pointer. More... | |
~Pointer () | |
Destructor. More... | |
Protected Types | |
typedef boost::shared_ptr< ImplA > | ImplPtr |
Declaration of the pointer implementation pointer type. More... | |
typedef boost::weak_ptr< ImplA > | ImplWPtr |
Declaration of the pointer implementation weak pointer type. More... | |
Protected Attributes | |
ImplPtr | impl |
The pointer's implementation. More... | |
Shared pointer.
|
protected |
|
protected |
variant_topic_tools::Pointer< T >::Pointer | ( | T * | pointer = 0 | ) |
Default constructor.
variant_topic_tools::Pointer< T >::Pointer | ( | const Pointer< T > & | src | ) |
Copy constructor.
variant_topic_tools::Pointer< T >::~Pointer | ( | ) |
Destructor.
T* variant_topic_tools::Pointer< T >::get | ( | ) | const |
Retrieve the stored pointer.
variant_topic_tools::Pointer< T >::operator void * | ( | ) | const |
Void pointer conversion.
bool variant_topic_tools::Pointer< T >::operator!= | ( | const Pointer< T > & | pointer | ) | const |
Inequality comparison operator.
T& variant_topic_tools::Pointer< T >::operator* | ( | ) | const |
Reference operator.
T* variant_topic_tools::Pointer< T >::operator-> | ( | ) | const |
Pointer operator.
bool variant_topic_tools::Pointer< T >::operator== | ( | const Pointer< T > & | pointer | ) | const |
Equality comparison operator.
void variant_topic_tools::Pointer< T >::reset | ( | ) |
Reset this pointer.
|
protected |