Pivotal GemFire Native Client Cache Reference  9.0.6
gemfire::SharedPtr< Target > Class Template Reference

Defines a reference counted shared pointer. More...

Public Member Functions

SharedPtroperator= (Target *other)
 Assigns a pointer. More...
 
template<class Other >
SharedPtroperator= (const SharedPtr< Other > &other)
 Assigns a pointer of type Other from a SharedPtr object. More...
 
template<class Other >
SharedPtroperator= (Other *other)
 Assigns a pointer of type Other. More...
 
 SharedPtr ()
 Constructor. More...
 
 SharedPtr (const NullSharedBase *ptr)
 Constructor for the NULL pointer. More...
 
 SharedPtr (const Target *ptr)
 Explicit copy constructor, given a pointer. More...
 
 SharedPtr (const SharedPtr &other)
 Constructor, given another SharedPtr. More...
 
template<class Other >
 SharedPtr (const SharedPtr< Other > &other)
 Constructor, given another SharedPtr. More...
 
 ~SharedPtr ()
 Destructor. More...
 

Detailed Description

template<class Target>
class gemfire::SharedPtr< Target >

Defines a reference counted shared pointer.

Constructor & Destructor Documentation

template<class Target>
gemfire::SharedPtr< Target >::SharedPtr ( )
inline

Constructor.

template<class Target>
gemfire::SharedPtr< Target >::SharedPtr ( const NullSharedBase ptr)
inline

Constructor for the NULL pointer.

template<class Target>
gemfire::SharedPtr< Target >::SharedPtr ( const Target *  ptr)
inlineexplicit

Explicit copy constructor, given a pointer.

Exceptions
ClassCastExceptionif Target pointer cannot be converted to SharedBase pointer (dynamic_cast to SharedBase* fails).
template<class Target>
gemfire::SharedPtr< Target >::SharedPtr ( const SharedPtr< Target > &  other)
inline

Constructor, given another SharedPtr.

template<class Target>
template<class Other >
gemfire::SharedPtr< Target >::SharedPtr ( const SharedPtr< Other > &  other)
inline

Constructor, given another SharedPtr.

Exceptions
ClassCastExceptionif Other pointer cannot be converted to Target pointer (dynamic_cast to Target* fails).
template<class Target>
gemfire::SharedPtr< Target >::~SharedPtr ( )
inline

Destructor.

Member Function Documentation

template<class Target>
SharedPtr& gemfire::SharedPtr< Target >::operator= ( Target *  other)
inline

Assigns a pointer.

Exceptions
ClassCastExceptionif Target pointer cannot be converted to SharedBase pointer (dynamic_cast to SharedBase* fails).
template<class Target>
template<class Other >
SharedPtr& gemfire::SharedPtr< Target >::operator= ( const SharedPtr< Other > &  other)
inline

Assigns a pointer of type Other from a SharedPtr object.

Exceptions
ClassCastExceptionif Other pointer cannot be converted to Target pointer (dynamic_cast to Target* fails).
template<class Target>
template<class Other >
SharedPtr& gemfire::SharedPtr< Target >::operator= ( Other *  other)
inline

Assigns a pointer of type Other.

Exceptions
ClassCastExceptionif Other pointer cannot be converted to Target pointer (dynamic_cast to Target* fails), or if Other pointer cannot be converted to SharedBase pointer (dynamic_cast to SharedBase* fails).

GemFire C++ Cache API Documentation