Page Speed Optimization Libraries
1.13.35.1
|
#include "ref_counted_ptr.h"
Public Member Functions | |
RefCountedPtr (T *t) | |
RefCountedPtr (const RefCountedPtr< T > &src) | |
template<class U > | |
RefCountedPtr (const RefCountedPtr< U > &src) | |
RefCountedPtr< T > & | operator= (const RefCountedPtr< T > &other) |
template<class U > | |
RefCountedPtr< T > & | operator= (const RefCountedPtr< U > &other) |
T * | operator-> () const |
T * | get () const |
bool | unique () const |
template<typename U > | |
RefCountedPtr< U > | StaticCast () const |
void | clear () |
void | reset (T *ptr) |
void | reset (const RefCountedPtr &src) |
Friends | |
template<class U > | |
class | RefCountedPtr |
Template class to help make reference-counted pointers. You can use a typedef or subclass RefCountedPtr<YourClass>. YourClass has to inherit off RefCounted<T>.
|
inline |
ref before deref to deal with self-assignment.
|
inline |
Determines whether any other RefCountedPtr objects share the same storage. This can be used to create copy-on-write semantics if desired.