My Project
|
weak reference ptr use in a class like this: weak_ptr<CRefCounted> p; e.g. More...
#include <PERef.h>
Public Types | |
typedef weak_ref_object< RealT > | WeakRefObject_type |
Public Member Functions | |
weak_ptr (WeakRefObject_type *p) | |
template<class Y > | |
weak_ptr (Y *p) | |
Y must be derived class of RealT. More... | |
weak_ptr (const weak_ptr &r) | |
weak_ptr & | operator= (const weak_ptr &r) |
weak_ptr & | operator= (WeakRefObject_type *r) |
template<class Y > | |
weak_ptr & | operator= (Y *r) |
Y must be derived class of RealT. More... | |
template<class Y > | |
operator Y* () const | |
Y must be derived class of RealT. More... | |
DefaultPointerClass & | operator* () const |
DefaultPointerClass * | operator-> () const |
DefaultPointerClass * | get () const |
WeakRefObject_type * | get_weak_ref_object () const |
operator bool () const | |
bool | operator! () const |
int | use_count () const |
bool | unique () const |
void | reset () |
bool | operator== (weak_ptr const &b) const |
bool | operator!= (weak_ptr const &b) const |
void | UnWatch () |
weak reference ptr use in a class like this: weak_ptr<CRefCounted> p; e.g.
IObject* pObj = NULL; WeakPtr a; WeakPtr b(pObj); PE_ASSERT(a == pObj && pObj == a && a == b);
|
inlineexplicit |
Y must be derived class of RealT.
|
inline |
Y must be derived class of RealT.
support casting to any derived class of RealT, such as CBaseObject, IAttributeObject, IGameObject, etc.
|
inline |
Y must be derived class of RealT.