42    operator TYPE*() 
const;
 
 
  140    n_assert2(this->
ptr, 
"NULL pointer access in WeakPtr::operator->()!");
 
 
  151    n_assert2(this->
ptr, 
"NULL pointer access in WeakPtr::operator*()!");
 
 
  161    n_assert2(this->
ptr, 
"NULL pointer access in WeakPtr::operator TYPE*()!");
 
 
  172    return (0 != this->
ptr);
 
 
  182    n_assert2(this->
ptr, 
"NULL pointer access in WeakPtr::get()!");
 
 
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
TYPE * get_unsafe() const
return direct pointer (returns null pointer)
Definition ptr.h:456
void operator=(const Ptr< TYPE > &rhs)
assignment operator from Ptr<>
Definition weakptr.h:108
bool isvalid() const
check if pointer is valid
Definition weakptr.h:170
TYPE * operator->() const
safe -> operator
Definition weakptr.h:138
TYPE * get() const
return direct pointer (asserts if null pointer)
Definition weakptr.h:180
~WeakPtr()
destructor
Definition weakptr.h:98
TYPE & operator*() const
safe dereference operator
Definition weakptr.h:149
TYPE * get_unsafe() const
return direct pointer (returns null pointer)
Definition weakptr.h:191
WeakPtr()
constructor
Definition weakptr.h:58
TYPE * ptr
Definition weakptr.h:51
#define n_assert2(exp, msg)
Definition debug.h:51