RHuiOwnedPointer Class Reference

class RHuiOwnedPointer

Pointer that optionally has ownership.

Public Member Functions
RHuiOwnedPointer()
RHuiOwnedPointer(T *, THuiOwnership)
~RHuiOwnedPointer()
voidClose()
T &NonConstRef()
THuiOwnership Ownership()
T *Ptr()
const T *Ptr()
T &Ref()
const T &Ref()
voidSet(T *, THuiOwnership)
operator T *()
operator const T *()
T *operator->()
const T *operator->()
Private Member Functions
RHuiOwnedPointer &operator=(const RHuiOwnedPointer &)
Private Attributes
THuiOwnership iOwnership
T *iPointer

Constructor & Destructor Documentation

RHuiOwnedPointer()

RHuiOwnedPointer()[inline]

Default constructor.

RHuiOwnedPointer(T *, THuiOwnership)

RHuiOwnedPointer(T *aPointer,
THuiOwnershipaOwnership
)[inline]

Parameters

T * aPointer
THuiOwnership aOwnership

~RHuiOwnedPointer()

~RHuiOwnedPointer()[inline, virtual]

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

Member Functions Documentation

Close()

voidClose()[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)

voidSet(T *aPointer,
THuiOwnershipaOwnership
)[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]