GenApi::CPointer#
Encapsulates a GenApi pointer dealing with the dynamic_cast automatically. More…
#include <GenApi/Pointer.h>
Public Functions#
Name | |
---|---|
CPointer(void ) Default constructor. | |
CPointer(B * pB) Constructor from INode pointer type. | |
virtual | ~CPointer(void ) |
void | operator=(B * pB) Assign INode Pointer. |
operator T *(void ) const Dereferencing. | |
T & | operator*(void ) const Dereferencing. |
T & | operator()(void ) const Dereferencing. |
T * | operator->(void ) const Dereferencing. |
bool | IsValid() const true if the pointer is valid |
operator bool(void ) const true if the pointer is valid | |
bool | operator==(T * pT) const pointer equal |
bool | operator==(const CPointer< T, B > & rT) const pointer equal |
bool | operator==(int nMustBeNull) const pointer equal |
Protected Attributes#
Name | |
---|---|
T * | m_pT Underlying raw pointer. |
Detailed Description#
template <class T,
class B =IBase>
class GenApi::CPointer;
Encapsulates a GenApi pointer dealing with the dynamic_cast automatically.
Public Functions Documentation#
CPointer#
inline CPointer(
void
)
Default constructor.
CPointer#
inline CPointer(
B * pB
)
Constructor from INode pointer type.
~CPointer#
inline virtual ~CPointer(
void
)
operator=#
inline void operator=(
B * pB
)
Assign INode Pointer.
operator T *#
inline operator T *(
void
) const
Dereferencing.
operator*#
inline T & operator*(
void
) const
Dereferencing.
operator()#
inline T & operator()(
void
) const
Dereferencing.
operator->#
inline T * operator->(
void
) const
Dereferencing.
IsValid#
inline bool IsValid() const
true if the pointer is valid
operator bool#
inline operator bool(
void
) const
true if the pointer is valid
operator==#
inline bool operator==(
T * pT
) const
pointer equal
operator==#
inline bool operator==(
const CPointer< T, B > & rT
) const
pointer equal
operator==#
inline bool operator==(
int nMustBeNull
) const
pointer equal
Protected Attributes Documentation#
m_pT#
T * m_pT;
Underlying raw pointer.
Updated on 5 July 2022 at 15:30:01