#include <sqratUtil.h>
Public Member Functions | |
| SharedPtr () | |
| SharedPtr (T *ptr) | |
| template<class U > | |
| SharedPtr (U *ptr) | |
| SharedPtr (const SharedPtr< T > ©) | |
| template<class U > | |
| SharedPtr (const SharedPtr< U > ©) | |
| ~SharedPtr () | |
| SharedPtr< T > & | operator= (const SharedPtr< T > ©) |
| template<class U > | |
| SharedPtr< T > & | operator= (const SharedPtr< U > ©) |
| void | Init (T *ptr) |
| template<class U > | |
| void | Init (U *ptr) |
| void | Reset () |
| operator bool () const | |
| bool | operator! () const |
| template<typename U > | |
| bool | operator== (const SharedPtr< U > &right) const |
| bool | operator== (const SharedPtr< T > &right) const |
| template<typename U > | |
| bool friend | operator== (const SharedPtr< T > &left, const U *right) |
| bool friend | operator== (const SharedPtr< T > &left, const T *right) |
| template<typename U > | |
| bool friend | operator== (const U *left, const SharedPtr< T > &right) |
| bool friend | operator== (const T *left, const SharedPtr< T > &right) |
| template<typename U > | |
| bool | operator!= (const SharedPtr< U > &right) const |
| bool | operator!= (const SharedPtr< T > &right) const |
| template<typename U > | |
| bool friend | operator!= (const SharedPtr< T > &left, const U *right) |
| bool friend | operator!= (const SharedPtr< T > &left, const T *right) |
| template<typename U > | |
| bool friend | operator!= (const U *left, const SharedPtr< T > &right) |
| bool friend | operator!= (const T *left, const SharedPtr< T > &right) |
| T & | operator* () const |
| T * | operator-> () const |
| T * | Get () const |
A smart pointer that retains shared ownership of an object through a pointer (see std::shared_ptr)
| T | Type of pointer |
|
inline |
Constructs a new SharedPtr
|
inline |
Constructs a new SharedPtr from an object allocated with the new operator
| ptr | Should be the return value from a call to the new operator |
Constructs a new SharedPtr from an object allocated with the new operator
| ptr | Should be the return value from a call to the new operator |
| U | Type of pointer (usually doesnt need to be defined explicitly) |
|
inline |
Copy constructor
| copy | SharedPtr to copy |
|
inline |
Copy constructor
| copy | SharedPtr to copy |
| U | Type of copy (usually doesnt need to be defined explicitly) |
|
inline |
Destructs the owned object if no more SharedPtr link to it
|
inline |
Gets the underlying pointer
|
inline |
Sets up a new object to be managed by the SharedPtr
| ptr | Should be the return value from a call to the new operator |
Sets up a new object to be managed by the SharedPtr
| ptr | Should be the return value from a call to the new operator |
| U | Type of copy (usually doesnt need to be defined explicitly) |
|
inline |
Checks if there is an associated managed object
|
inline |
Checks if there is NOT an associated managed object
|
inline |
Compares with another SharedPtr
|
inline |
Compares with another SharedPtr
|
inline |
Compares with another pointer
|
inline |
Compares with another pointer
|
inline |
Compares with another pointer
|
inline |
Compares with another pointer
|
inline |
Dereferences pointer to the managed object
|
inline |
Dereferences pointer to the managed object
|
inline |
|
inline |
|
inline |
Compares with another SharedPtr
|
inline |
Compares with another SharedPtr
|
inline |
Compares with another pointer
|
inline |
Compares with another pointer
|
inline |
Compares with another pointer
|
inline |
Compares with another pointer
|
inline |
1.8.6