Spinnaker SDK C++
4.1.0.172
 
 

 
Loading...
Searching...
No Matches
CPointer< T, B > Class Template Reference

Encapsulates a GenApi pointer dealing with the dynamic_cast automatically. More...

#include <Pointer.h>

Public Member Functions

 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 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
 
bool operator!= (const CPointer< T, B > &rT) const
 pointer inequal
 
bool operator!= (T *pT) const
 pointer inequal
 
bool operator!= (const long int nMustBeNull) const
 pointer inequal
 
bool operator!= (const int nMustBeNull) const
 pointer inequal
 
bool operator!= (const std::nullptr_t nullPtr) const
 pointer inequal
 

Protected Attributes

T * m_pT
 Underlying raw pointer.
 

Detailed Description

Constructor & Destructor Documentation

◆ CPointer() [1/2]

template<class T , class B = IBase>
CPointer ( void  )
inline

Default constructor.

◆ CPointer() [2/2]

template<class T , class B = IBase>
CPointer ( B *  pB)
inline

Constructor from INode pointer type.

◆ ~CPointer()

template<class T , class B = IBase>
virtual ~CPointer ( void  )
inlinevirtual

Member Function Documentation

◆ IsValid()

template<class T , class B = IBase>
bool IsValid ( ) const
throw (
)
inline

true if the pointer is valid

Examples
AcquisitionMultipleCameraRecovery.cpp.

◆ operator bool()

template<class T , class B = IBase>
operator bool ( void  ) const
throw (
)
inline

true if the pointer is valid

◆ operator T*()

template<class T , class B = IBase>
operator T* ( void  ) const
inline

Dereferencing.

◆ operator!=() [1/5]

template<class T , class B = IBase>
bool operator!= ( const CPointer< T, B > &  rT) const
inline

pointer inequal

◆ operator!=() [2/5]

template<class T , class B = IBase>
bool operator!= ( const int  nMustBeNull) const
inline

pointer inequal

◆ operator!=() [3/5]

template<class T , class B = IBase>
bool operator!= ( const long int  nMustBeNull) const
inline

pointer inequal

◆ operator!=() [4/5]

template<class T , class B = IBase>
bool operator!= ( const std::nullptr_t  nullPtr) const
inline

pointer inequal

◆ operator!=() [5/5]

template<class T , class B = IBase>
bool operator!= ( T *  pT) const
inline

pointer inequal

◆ operator()()

template<class T , class B = IBase>
T & operator() ( void  ) const
inline

Dereferencing.

◆ operator*()

template<class T , class B = IBase>
T & operator* ( void  ) const
inline

Dereferencing.

◆ operator->()

template<class T , class B = IBase>
T * operator-> ( void  ) const
inline

Dereferencing.

◆ operator=()

template<class T , class B = IBase>
void operator= ( B *  pB)
inline

Assign INode Pointer.

◆ operator==() [1/3]

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

pointer equal

◆ operator==() [2/3]

template<class T , class B = IBase>
bool operator== ( int  nMustBeNull) const
inline

pointer equal

◆ operator==() [3/3]

template<class T , class B = IBase>
bool operator== ( T *  pT) const
inline

pointer equal

Member Data Documentation

◆ m_pT

template<class T , class B = IBase>
T* m_pT
protected

Underlying raw pointer.


The documentation for this class was generated from the following file: