#include <RefCounted.h>
Public Member Functions | |
| CAutoRefCountedPtr () | |
| Default c'tor for an empty pointer. | |
| CAutoRefCountedPtr (T *pObj, bool fAddRef=true) | |
| C'tor taking ownership of an existing object. | |
| CAutoRefCountedPtr (const CAutoRefCountedPtr &other) | |
| C'tor coping one pointer to another. | |
| ~CAutoRefCountedPtr () | |
| D'tor which releases the encapsulated object, if any. | |
| CAutoRefCountedPtr & | operator= (const CAutoRefCountedPtr &other) |
| Assignment operator for copying the object from another pointer. | |
| T * | release () |
| Function to detach the encapsulated object without changing its reference count. | |
| void | reset (T *pObj, bool fAddRef=true) |
| Reset the encapsulated object to the given pointer. | |
| T * | get () const |
| Return the encapsulated object. | |
| T * | operator-> () const |
| Extractor for the encapsulated pointer. | |
| T & | operator * () const |
| Extractor for the encapsulated pointer. | |
| operator T * () const | |
| Extractor for the encapsulated pointer. | |
| bool | operator! () const |
| Test for encapsulated object == 0. | |
| bool | operator< (const CAutoRefCountedPtr< T > &rhs) const |
| bool | operator> (const CAutoRefCountedPtr< T > &rhs) const |
|
||||||||||||||||
|
C'tor taking ownership of an existing object.
|
|
||||||||||
|
C'tor coping one pointer to another.
|
|
|||||||||
|
Return the encapsulated object.
|
|
||||||||||
|
Assignment operator for copying the object from another pointer.
|
|
|||||||||
|
Function to detach the encapsulated object without changing its reference count.
|
|
||||||||||||||||
|
Reset the encapsulated object to the given pointer.
|
1.3.9.1