artec::sdk::base::TRef< T > Class Template Reference

#include <artec/sdk/base/TRef.h>

+ Inheritance diagram for artec::sdk::base::TRef< T >:

Public Types

typedef T base
 

Public Member Functions

 TRef (T *p=NULL)
 
 TRef (const TRef< T > &p)
 
 TRef (TRef< T > &&p)
 
 ~TRef ()
 
 operator bool () const
 
T * operator-> () const
 
 operator T * () const
 
const T & operator* () const
 
T & operator* ()
 
TRef< T > & operator= (T *p)
 
TRef< T > & operator= (const TRef< T > &p)
 
TRef< T > & operator= (TRef< T > &&p)
 move operator More...
 
T ** operator& ()
 
bool operator== (T *p) const
 
bool operator!= (T *p) const
 
void attach (T *p)
 attach to interface pointer without calling addref() for it More...
 
T * detach ()
 detach interface pointer without calling release() for it More...
 
void release ()
 

Protected Attributes

T * tObject_
 

Detailed Description

template<class T>
class artec::sdk::base::TRef< T >

Examples:
parallel-capture-sample.cpp, scanning-and-process-sample.cpp, and simple-capture-sample.cpp.

Definition at line 22 of file TRef.h.

Member Typedef Documentation

template<class T>
typedef T artec::sdk::base::TRef< T >::base

Definition at line 25 of file TRef.h.

Constructor & Destructor Documentation

template<class T>
artec::sdk::base::TRef< T >::TRef ( T *  p = NULL)
inline

Definition at line 27 of file TRef.h.

template<class T>
artec::sdk::base::TRef< T >::TRef ( const TRef< T > &  p)
inline

Definition at line 34 of file TRef.h.

template<class T>
artec::sdk::base::TRef< T >::TRef ( TRef< T > &&  p)
inline

Definition at line 42 of file TRef.h.

template<class T>
artec::sdk::base::TRef< T >::~TRef ( )
inline

Definition at line 48 of file TRef.h.

Member Function Documentation

template<class T>
void artec::sdk::base::TRef< T >::attach ( T *  p)
inline

attach to interface pointer without calling addref() for it

Definition at line 133 of file TRef.h.

template<class T>
T* artec::sdk::base::TRef< T >::detach ( )
inline

detach interface pointer without calling release() for it

Definition at line 142 of file TRef.h.

template<class T>
artec::sdk::base::TRef< T >::operator bool ( ) const
inline

Definition at line 54 of file TRef.h.

template<class T>
artec::sdk::base::TRef< T >::operator T * ( ) const
inline

Definition at line 58 of file TRef.h.

template<class T>
bool artec::sdk::base::TRef< T >::operator!= ( T *  p) const
inline

Definition at line 127 of file TRef.h.

template<class T>
T** artec::sdk::base::TRef< T >::operator& ( )
inline

Definition at line 111 of file TRef.h.

template<class T>
const T& artec::sdk::base::TRef< T >::operator* ( ) const
inline

Definition at line 60 of file TRef.h.

template<class T>
T& artec::sdk::base::TRef< T >::operator* ( )
inline

Definition at line 62 of file TRef.h.

template<class T>
T* artec::sdk::base::TRef< T >::operator-> ( ) const
inline

Definition at line 56 of file TRef.h.

template<class T>
TRef<T>& artec::sdk::base::TRef< T >::operator= ( T *  p)
inline

Definition at line 64 of file TRef.h.

template<class T>
TRef<T>& artec::sdk::base::TRef< T >::operator= ( const TRef< T > &  p)
inline

Definition at line 79 of file TRef.h.

template<class T>
TRef<T>& artec::sdk::base::TRef< T >::operator= ( TRef< T > &&  p)
inline

move operator

Definition at line 95 of file TRef.h.

template<class T>
bool artec::sdk::base::TRef< T >::operator== ( T *  p) const
inline

Definition at line 122 of file TRef.h.

template<class T>
void artec::sdk::base::TRef< T >::release ( )
inline

Definition at line 149 of file TRef.h.

Member Data Documentation

template<class T>
T* artec::sdk::base::TRef< T >::tObject_
protected

Definition at line 159 of file TRef.h.


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