Skip to content

GenApi::CPointer#

Module: GenICam / GenApi Node Ptr Classes

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.
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#

function CPointer#

inline CPointer(
    void
)

Default constructor.

function CPointer#

inline CPointer(
    B * pB
)

Constructor from INode pointer type.

function operator=#

inline void operator=(
    B * pB
)

Assign INode Pointer.

function operator T *#

inline operator T *(
    void
) const

Dereferencing.

function operator*#

inline T & operator*(
    void
) const

Dereferencing.

function operator()#

inline T & operator()(
    void
) const

Dereferencing.

function operator->#

inline T * operator->(
    void
) const

Dereferencing.

function IsValid#

inline bool IsValid() const

true if the pointer is valid

function operator bool#

inline operator bool(
    void
) const

true if the pointer is valid

function operator==#

inline bool operator==(
    T * pT
) const

pointer equal

function operator==#

inline bool operator==(
    const CPointer< T, B > & rT
) const

pointer equal

function operator==#

inline bool operator==(
    int nMustBeNull
) const

pointer equal

Protected Attributes Documentation#

variable m_pT#

T * m_pT;

Underlying raw pointer.