GClasses
|
A reference-counting smart-pointer. More...
#include <GHolders.h>
Public Member Functions | |
smart_ptr () | |
smart_ptr (const smart_ptr &other) | |
template<class S > | |
smart_ptr (const smart_ptr< S > &other, T *) | |
Make a smart pointer of a different type (T) that shares referent and ownership with other. More... | |
template<class S > | |
smart_ptr (S *pThat) | |
~smart_ptr () | |
T * | get () const |
T & | operator* () const |
T * | operator-> () const |
smart_ptr & | operator= (const smart_ptr &that) |
template<class S > | |
smart_ptr & | operator= (S *pThat) |
size_t | refCount () |
void | reset () |
Protected Attributes | |
smart_ptr_ref_counter< T > * | m_pRefCounter |
Friends | |
template<class S > | |
class | smart_ptr |
A reference-counting smart-pointer.
|
inline |
|
inline |
|
inline |
Make a smart pointer of a different type (T) that shares referent and ownership with other.
This is mainly for creating smart_pointer<const T> from smart_pointer<T>.
The basic use is:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |