StrongRefUnion

Engine/source/core/util/refBase.h

Union of an arbitrary type with a StrongRefBase.

More...

Private Types

StrongRefUnion< ExposedType >
Union 

Private Attributes

Public Functions

StrongRefUnion(const StrongRefPtr< StrongRefBase > & ref, ExposedType * ptr)
ExposedType *
bool
bool
bool
operator!=(const ExposedType * t)
ExposedType &
ExposedType *
bool
operator==(const ExposedType * t)
set(const StrongRefPtr< StrongRefBase > & ref, ExposedType * ptr)

Detailed Description

Union of an arbitrary type with a StrongRefBase.

StrongRefBase will remain locked until the union is destructed. Handy for when the exposed class will become invalid whenever the reference becomes invalid and you want to make sure that doesn't happen.

Private Types

typedef StrongRefUnion< ExposedType > Union 

Private Attributes

ExposedType * mPtr 
StrongRefPtr< StrongRefBase > mReference