#include <smart_ptr.h>
Public Types | |
typedef T | element_type |
Public Methods | |
shared_ptr (T *p=0) | |
shared_ptr (const shared_ptr &r) | |
~shared_ptr () | |
shared_ptr & | operator= (const shared_ptr &r) |
template<typename Y> | shared_ptr (const shared_ptr< Y > &r) |
template<typename Y> | shared_ptr (std::auto_ptr< Y > &r) |
template<typename Y> shared_ptr & | operator= (const shared_ptr< Y > &r) |
template<typename Y> shared_ptr & | operator= (std::auto_ptr< Y > &r) |
void | reset (T *p=0) |
T & | operator * () const |
T * | operator-> () const |
T * | get () const |
long | use_count () const |
bool | unique () const |
void | swap (shared_ptr< T > &other) |
Friends | |
class | shared_ptr |
An enhanced relative of scoped_ptr with reference counted copy semantics. The object pointed to is deleted when the last shared_ptr pointing to it is destroyed or reset.
Definition at line 75 of file smart_ptr.h.
|
Definition at line 77 of file smart_ptr.h. |
|
Definition at line 79 of file smart_ptr.h. |
|
Definition at line 84 of file smart_ptr.h. |
|
Definition at line 86 of file smart_ptr.h. |
|
Definition at line 95 of file smart_ptr.h. |
|
Definition at line 100 of file smart_ptr.h. |
|
Definition at line 88 of file smart_ptr.h. References syn::shared_ptr< T >::pn, and syn::shared_ptr< T >::px. |
|
Definition at line 106 of file smart_ptr.h. References syn::shared_ptr< T >::pn, and syn::shared_ptr< T >::px. |
|
Definition at line 112 of file smart_ptr.h. |
|
Definition at line 142 of file smart_ptr.h. |
|
Definition at line 157 of file smart_ptr.h. |
|
Definition at line 158 of file smart_ptr.h. |
|
Definition at line 159 of file smart_ptr.h. Referenced by syn::operator!=(), and syn::operator==(). |
|
Definition at line 165 of file smart_ptr.h. |
|
Definition at line 166 of file smart_ptr.h. |
|
Definition at line 168 of file smart_ptr.h. |
|
Definition at line 183 of file smart_ptr.h. |