API Guides > ConceptRT 3.x
BaseOwningPointer< T > Class Template Reference

Base owning pointer. Base class used by OwningPointer. More...

Detailed Description

template<typename T>
class ConceptRT::BaseOwningPointer< T >

Base owning pointer. Base class used by OwningPointer.

Template Parameters
TType of the pointer.
+ Inheritance diagram for BaseOwningPointer< T >:

Public Member Methods

T * GetPointer () const
 Gets the owned object pointer. More...
 
T * DetachPointer ()
 Gets the owned object pointer and detach it from this owner. More...
 
T & operator* () const
 Indirection operator. More...
 
T * operator-> () const
 Gets the owned object pointer. More...
 
bool operator== (T *right) const
 Equality operator. More...
 
bool operator!= (T *right) const
 Not Equality operator. More...
 

Public Attributes

T * __internalTarget
 The internal target More...
 

Methods Documentation

T * DetachPointer ( )

Gets the owned object pointer and detach it from this owner.

Returns
The object pointer that was owned.
T * GetPointer ( ) const

Gets the owned object pointer.

Returns
The owned object pointer.
bool operator!= ( T *  right) const

Not Equality operator.

Parameters
right[in,out] Object pointer
Returns
true if it's the owned object isn't the same object than 'right'.
T & operator* ( ) const

Indirection operator.

Returns
The owned object reference
RT Exceptions:
RT_ERROR_OWNING_POINTER_NOT_SET
T * operator-> ( ) const

Gets the owned object pointer.

Returns
he owned object pointer.
RT Exceptions:
RT_ERROR_OWNING_POINTER_NOT_SET
bool operator== ( T *  right) const

Equality operator.

Parameters
right[in,out] Object pointer.
Returns
true if it's the owned object is the same object than 'right'.

Fields Documentation

T* __internalTarget

The internal target

Do not use directly, but only through macro OWNING_POINTER_FAST_ACCESS