GenApi 3.5.1
Public Member Functions | Protected Attributes | List of all members
CPointer< T, B > Class Template Reference

Encapsulates a GenApi pointer dealing with the dynamic_cast automatically.

#include <Pointer.h>

Inheritance diagram for CPointer< T, B >:
CFloatPtr

Public Member Functions

 CPointer (void) throw ()
 Default constructor.
 
 CPointer (B *pB)
 Constructor from INode pointer type.
 
CPointeroperator= (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 throw ()
 true if the pointer is valid
 
 operator bool (void) const throw ()
 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

T * m_pT
 Underlying raw pointer.