gemfire::SharedPtr< Target > Class Template Reference

Inherited by gemfire::SharedArrayPtr< TObj, TYPEID >.


Detailed Description

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

Defines a reference counted shared pointer.

Public Member Functions

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

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  )  [inline, explicit]

Explicit copy constructor, given a pointer.

Exceptions:
ClassCastException if 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:
ClassCastException if 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>
template<class Other>
SharedPtr& gemfire::SharedPtr< Target >::operator= ( Other *  other  )  [inline]

Assigns a pointer of type Other.

Exceptions:
ClassCastException if 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).

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:
ClassCastException if Other pointer cannot be converted to Target pointer (dynamic_cast to Target* fails).

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

Assigns a pointer.

Exceptions:
ClassCastException if Target pointer cannot be converted to SharedBase pointer (dynamic_cast to SharedBase* fails).


GemFire C++ Cache API Documentation