WeakRefUnion
Engine/source/core/util/refBase.h
Union of an arbitrary type with a WeakRefBase.
Private Types
WeakRefUnion< ExposedType >
Union
Private Attributes
ExposedType *
Public Functions
WeakRefUnion(const Union & lock)
WeakRefUnion(const WeakRefPtr< WeakRefBase > & ref, ExposedType * ptr)
WeakRefUnion(WeakRefBase * ref)
ExposedType *
getRef()
bool
isNull()
bool
operator!=(const ExposedType * t)
bool
operator!=(const Union & t)
ExposedType &
ExposedType *
bool
operator==(const ExposedType * t)
bool
operator==(const Union & t)
set(const WeakRefPtr< WeakRefBase > & ref, ExposedType * ptr)
Detailed Description
Union of an arbitrary type with a WeakRefBase.
The exposed type will remain accessible so long as the WeakRefBase is not cleared. Once it is cleared, accessing the exposed type will result in a NULL pointer.
Private Types
typedef WeakRefUnion< ExposedType > Union
Private Attributes
ExposedType * mPtr
WeakRefPtr< WeakRefBase > mWeakReference
Public Functions
WeakRefUnion()
WeakRefUnion(const Union & lock)
WeakRefUnion(const WeakRefPtr< WeakRefBase > & ref, ExposedType * ptr)
WeakRefUnion(WeakRefBase * ref)
~WeakRefUnion()
getPointer()
getRef()
isNull()
operator ExposedType*()
operator!=(const ExposedType * t)
operator!=(const Union & t)
operator*()
operator->()
operator=(const Union & ptr)
operator==(const ExposedType * t)
operator==(const Union & t)
set(const WeakRefPtr< WeakRefBase > & ref, ExposedType * ptr)