Classes | Public Member Functions | Protected Types | Protected Attributes | List of all members
variant_topic_tools::Pointer< T > Class Template Reference

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< ImplAImplPtr
 Declaration of the pointer implementation pointer type. More...
 
typedef boost::weak_ptr< ImplAImplWPtr
 Declaration of the pointer implementation weak pointer type. More...
 

Protected Attributes

ImplPtr impl
 The pointer's implementation. More...
 

Detailed Description

template<typename T>
class variant_topic_tools::Pointer< T >

Shared pointer.

Definition at line 33 of file Pointer.h.

Member Typedef Documentation

template<typename T>
typedef boost::shared_ptr<ImplA> variant_topic_tools::Pointer< T >::ImplPtr
protected

Declaration of the pointer implementation pointer type.

Definition at line 117 of file Pointer.h.

template<typename T>
typedef boost::weak_ptr<ImplA> variant_topic_tools::Pointer< T >::ImplWPtr
protected

Declaration of the pointer implementation weak pointer type.

Definition at line 122 of file Pointer.h.

Constructor & Destructor Documentation

template<typename T>
variant_topic_tools::Pointer< T >::Pointer ( T *  pointer = 0)

Default constructor.

template<typename T>
variant_topic_tools::Pointer< T >::Pointer ( const Pointer< T > &  src)

Copy constructor.

template<typename T>
variant_topic_tools::Pointer< T >::~Pointer ( )

Destructor.

Member Function Documentation

template<typename T>
T* variant_topic_tools::Pointer< T >::get ( ) const

Retrieve the stored pointer.

template<typename T>
variant_topic_tools::Pointer< T >::operator void * ( ) const

Void pointer conversion.

template<typename T>
bool variant_topic_tools::Pointer< T >::operator!= ( const Pointer< T > &  pointer) const

Inequality comparison operator.

template<typename T>
T& variant_topic_tools::Pointer< T >::operator* ( ) const

Reference operator.

template<typename T>
T* variant_topic_tools::Pointer< T >::operator-> ( ) const

Pointer operator.

template<typename T>
bool variant_topic_tools::Pointer< T >::operator== ( const Pointer< T > &  pointer) const

Equality comparison operator.

template<typename T>
void variant_topic_tools::Pointer< T >::reset ( )

Reset this pointer.

Member Data Documentation

template<typename T>
ImplPtr variant_topic_tools::Pointer< T >::impl
protected

The pointer's implementation.

Definition at line 126 of file Pointer.h.


The documentation for this class was generated from the following file:


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Sat Jan 9 2021 03:56:50