WeakRefUnion

Engine/source/core/util/refBase.h

Union of an arbitrary type with a WeakRefBase.

More...

Private Types

WeakRefUnion< ExposedType >
Union 

Private Attributes

Public Functions

WeakRefUnion(const WeakRefPtr< WeakRefBase > & ref, ExposedType * ptr)
ExposedType *
bool
bool
operator!=(const ExposedType * t)
ExposedType &
ExposedType *
bool
operator==(const ExposedType * 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