VMware GemFire Native C++ Reference  9.1
apache::geode::client::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 apache::geode::client::SharedPtr< Target >

Defines a reference counted shared pointer.

Constructor & Destructor Documentation

template<class Target>
apache::geode::client::SharedPtr< Target >::SharedPtr ( )
inline

Constructor.

template<class Target>
apache::geode::client::SharedPtr< Target >::SharedPtr ( const NullSharedBase ptr)
inline

Constructor for the NULL pointer.

template<class Target>
apache::geode::client::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>
apache::geode::client::SharedPtr< Target >::SharedPtr ( const SharedPtr< Target > &  other)
inline

Constructor, given another SharedPtr.

template<class Target>
template<class Other >
apache::geode::client::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>
apache::geode::client::SharedPtr< Target >::~SharedPtr ( )
inline

Destructor.

Member Function Documentation

template<class Target>
SharedPtr& apache::geode::client::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& apache::geode::client::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& apache::geode::client::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).

Pivotal GemFire C++ Cache API Documentation