Encapsulates a GenApi pointer dealing with the dynamic_cast automatically. More...
#include <Pointer.h>
Public Member Functions | |
CPointer (void) throw () | |
Default constructor. | |
CPointer (B *pB) | |
Constructor from INode pointer type. | |
bool | IsValid () const throw () |
true if the pointer is valid | |
operator bool (void) const throw () | |
true if the pointer is valid | |
operator T * (void) const | |
Dereferencing. | |
T & | operator() (void) const |
Dereferencing. | |
T & | operator* (void) const |
Dereferencing. | |
T * | operator-> (void) const |
Dereferencing. | |
void | operator= (B *pB) |
Assign INode Pointer. | |
bool | operator== (T *pT) const |
pointer equal | |
bool | operator== (const CPointer< T, B > &rT) const |
pointer equal | |
bool | operator== (int nMustBeNull) const |
pointer equal | |
virtual | ~CPointer (void) |
Protected Attributes | |
T * | m_pT |
Underlying raw pointer. |
Encapsulates a GenApi pointer dealing with the dynamic_cast automatically.
GENAPI_NAMESPACE::CPointer< T, B >::CPointer | ( | void | ) | throw () [inline] |
GENAPI_NAMESPACE::CPointer< T, B >::CPointer | ( | B * | pB | ) | [inline] |
virtual GENAPI_NAMESPACE::CPointer< T, B >::~CPointer | ( | void | ) | [inline, virtual] |
bool GENAPI_NAMESPACE::CPointer< T, B >::IsValid | ( | void | ) | const throw () [inline] |
GENAPI_NAMESPACE::CPointer< T, B >::operator bool | ( | void | ) | const throw () [inline] |
GENAPI_NAMESPACE::CPointer< T, B >::operator T * | ( | void | ) | const [inline] |
T& GENAPI_NAMESPACE::CPointer< T, B >::operator() | ( | void | ) | const [inline] |
T& GENAPI_NAMESPACE::CPointer< T, B >::operator* | ( | void | ) | const [inline] |
T* GENAPI_NAMESPACE::CPointer< T, B >::operator-> | ( | void | ) | const [inline] |
void GENAPI_NAMESPACE::CPointer< T, B >::operator= | ( | B * | pB | ) | [inline] |
Assign INode Pointer.
Reimplemented in GENAPI_NAMESPACE::CFloatPtr.
bool GENAPI_NAMESPACE::CPointer< T, B >::operator== | ( | T * | pT | ) | const [inline] |
bool GENAPI_NAMESPACE::CPointer< T, B >::operator== | ( | const CPointer< T, B > & | rT | ) | const [inline] |
bool GENAPI_NAMESPACE::CPointer< T, B >::operator== | ( | int | nMustBeNull | ) | const [inline] |
T* GENAPI_NAMESPACE::CPointer< T, B >::m_pT [protected] |