VMware GemFire Native C++ Reference
9.1
|
Defines a reference counted shared pointer. More...
Public Member Functions | |
SharedPtr & | operator= (Target *other) |
Assigns a pointer. More... | |
template<class Other > | |
SharedPtr & | operator= (const SharedPtr< Other > &other) |
Assigns a pointer of type Other from a SharedPtr object. More... | |
template<class Other > | |
SharedPtr & | operator= (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... | |
Defines a reference counted shared pointer.
|
inline |
Constructor.
|
inline |
Constructor for the NULL pointer.
|
inlineexplicit |
Explicit copy constructor, given a pointer.
ClassCastException | if Target pointer cannot be converted to SharedBase pointer (dynamic_cast to SharedBase* fails). |
|
inline |
Constructor, given another SharedPtr.
|
inline |
Constructor, given another SharedPtr.
ClassCastException | if Other pointer cannot be converted to Target pointer (dynamic_cast to Target* fails). |
|
inline |
Destructor.
|
inline |
Assigns a pointer.
ClassCastException | if Target pointer cannot be converted to SharedBase pointer (dynamic_cast to SharedBase* fails). |
|
inline |
Assigns a pointer of type Other
from a SharedPtr
object.
ClassCastException | if Other pointer cannot be converted to Target pointer (dynamic_cast to Target* fails). |
|
inline |
Assigns a pointer of type Other
.
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). |