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. | |
operator void * () const | |
Void pointer conversion. | |
bool | operator!= (const Pointer< T > &pointer) const |
Inequality comparison operator. | |
T & | operator* () const |
Reference operator. | |
T * | operator-> () const |
Pointer operator. | |
bool | operator== (const Pointer< T > &pointer) const |
Equality comparison operator. | |
Pointer (T *pointer=0) | |
Default constructor. | |
Pointer (const Pointer< T > &src) | |
Copy constructor. | |
void | reset () |
Reset this pointer. | |
~Pointer () | |
Destructor. | |
Protected Types | |
typedef boost::shared_ptr< ImplA > | ImplPtr |
Declaration of the pointer implementation pointer type. | |
typedef boost::weak_ptr< ImplA > | ImplWPtr |
Declaration of the pointer implementation weak pointer type. | |
Protected Attributes | |
ImplPtr | impl |
The pointer's implementation. |
Shared pointer.
typedef boost::shared_ptr<ImplA> variant_topic_tools::Pointer< T >::ImplPtr [protected] |
typedef boost::weak_ptr<ImplA> variant_topic_tools::Pointer< T >::ImplWPtr [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.
ImplPtr variant_topic_tools::Pointer< T >::impl [protected] |