WeakRefPtr
Engine/source/core/util/refBase.h
Weak reference pointer class.
Public Friends
class
Private Attributes
Public Functions
WeakRefPtr(const WeakRefPtr< T > & ref)
WeakRefPtr(T * ptr)
T *
Returns the pointer.
bool
isNull()
Returns true if the pointer is not set.
bool
isValid()
Returns true if the pointer is set.
T *
WeakRefPtr< T > &
operator=(const WeakRefPtr< T > & ref)
WeakRefPtr< T > &
Detailed Description
Weak reference pointer class.
Instances of this template class can be used as pointers to instances of WeakRefBase and its subclasses. When the object referenced by a WeakRefPtr instance is deleted, the pointer to the object is set to NULL in the WeakRefPtr instance.
Public Friends
Private Attributes
WeakRefBase::WeakReference * mReference
Public Functions
WeakRefPtr()
WeakRefPtr(const WeakRefPtr< T > & ref)
WeakRefPtr(T * ptr)
~WeakRefPtr()
getPointer()
Returns the pointer.
isNull()
Returns true if the pointer is not set.
isValid()
Returns true if the pointer is set.
operator T*()
operator*()
operator->()
operator=(const WeakRefPtr< T > & ref)
operator=(T * ptr)