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

Shared pointer. More...

#include <Pointer.h>

List of all members.

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

Protected Attributes

ImplPtr impl
 The pointer's implementation.

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 Tue Jul 9 2019 03:18:42