RHuiOwnedPointer Class Reference

class RHuiOwnedPointer

Pointer that optionally has ownership.

Constructor & Destructor Documentation

RHuiOwnedPointer()

RHuiOwnedPointer ( ) [inline]

Default constructor.

RHuiOwnedPointer(T *, THuiOwnership)

RHuiOwnedPointer ( T * aPointer,
THuiOwnership aOwnership
) [inline]

Parameters

T * aPointer
THuiOwnership aOwnership

~RHuiOwnedPointer()

~RHuiOwnedPointer ( ) [inline, virtual]

Destructor. The object is deleted if the pointer has ownership.

Member Functions Documentation

Close()

void Close ( ) [inline]

Reset the pointer.

NonConstRef()

T & NonConstRef ( ) const [inline]

Ownership()

THuiOwnership Ownership ( ) const [inline]

Ptr()

T * Ptr ( ) [inline]

Ptr()

const T * Ptr ( ) const [inline]

Ref()

T & Ref ( ) [inline]

Ref()

const T & Ref ( ) const [inline]

Set(T *, THuiOwnership)

void Set ( T * aPointer,
THuiOwnership aOwnership
) [inline]

Parameters

T * aPointer
THuiOwnership aOwnership

operator T *()

operator T * ( ) [inline]

operator const T *()

operator const T * ( ) const [inline]

operator->()

T * operator-> ( ) [inline]

operator->()

const T * operator-> ( ) const [inline]

operator=(const RHuiOwnedPointer &)

RHuiOwnedPointer & operator= ( const RHuiOwnedPointer & aOwnedPointer ) [private]

Assignment prohibited. This isn't defined anywhere.

Parameters

const RHuiOwnedPointer & aOwnedPointer

Member Data Documentation

THuiOwnership iOwnership

THuiOwnership iOwnership [private]

Have ownership of the object being pointed to. If the owned pointer is deleted, the object will be deleted as well.

T * iPointer

T * iPointer [private]