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#

CPointer#

inline CPointer(
    void 
)

Default constructor.

CPointer#

inline CPointer(
    B * pB
)

Constructor from INode pointer type.

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 27 July 2022 at 19:03:47