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

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

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

Public Types

typedef T::elementType elementType
 
- Public Types inherited from artec::sdk::base::TRef< T >
typedef T base
 

Public Member Functions

 TArrayRef ()
 
 TArrayRef (T *p)
 
 TArrayRef (const TRef< T > &p)
 
 TArrayRef (const TArrayRef &p)
 
 ~TArrayRef ()
 
int size () const
 
elementTypeoperator[] (int i) const
 
elementTypegetPointer () const
 
TArrayRefoperator= (T *p)
 
TArrayRefoperator= (const TRef< T > &p)
 
TArrayRefoperator= (const TArrayRef &p)
 
- Public Member Functions inherited from artec::sdk::base::TRef< T >
 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 Member Functions

void keep ()
 

Protected Attributes

int dataSize_
 
elementTypedataPointer_
 
- Protected Attributes inherited from artec::sdk::base::TRef< T >
T * tObject_
 

Friends

template<class T2 >
ErrorCode createArray (TArrayRef< T2 > &src, int elementsCount, bool zeroFill)
 
template<class T2 >
ErrorCode resizeArray (TArrayRef< T2 > &src, int elementsCount)
 
template<class T2 >
ErrorCode resizeArray (TArrayRef< T2 > &src, int elementsCount, bool zeroFill)
 

Detailed Description

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

Examples:
parallel-capture-sample.cpp.

Definition at line 24 of file TArrayRef.h.

Member Typedef Documentation

template<class T>
typedef T::elementType artec::sdk::base::TArrayRef< T >::elementType

Definition at line 27 of file TArrayRef.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file TArrayRef.h.

template<class T>
artec::sdk::base::TArrayRef< T >::TArrayRef ( T *  p)
inline

Definition at line 34 of file TArrayRef.h.

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

Definition at line 39 of file TArrayRef.h.

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

Definition at line 44 of file TArrayRef.h.

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

Definition at line 49 of file TArrayRef.h.

Member Function Documentation

template<class T>
elementType* artec::sdk::base::TArrayRef< T >::getPointer ( ) const
inline

Definition at line 55 of file TArrayRef.h.

template<class T>
void artec::sdk::base::TArrayRef< T >::keep ( )
inlineprotected

Definition at line 79 of file TArrayRef.h.

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

Definition at line 57 of file TArrayRef.h.

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

Definition at line 64 of file TArrayRef.h.

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

Definition at line 71 of file TArrayRef.h.

template<class T>
elementType& artec::sdk::base::TArrayRef< T >::operator[] ( int  i) const
inline

Definition at line 53 of file TArrayRef.h.

template<class T>
int artec::sdk::base::TArrayRef< T >::size ( ) const
inline

Definition at line 51 of file TArrayRef.h.

Friends And Related Function Documentation

template<class T>
template<class T2 >
ErrorCode createArray ( TArrayRef< T2 > &  src,
int  elementsCount,
bool  zeroFill 
)
friend
template<class T>
template<class T2 >
ErrorCode resizeArray ( TArrayRef< T2 > &  src,
int  elementsCount 
)
friend
template<class T>
template<class T2 >
ErrorCode resizeArray ( TArrayRef< T2 > &  src,
int  elementsCount,
bool  zeroFill 
)
friend

Member Data Documentation

template<class T>
elementType* artec::sdk::base::TArrayRef< T >::dataPointer_
protected

Definition at line 94 of file TArrayRef.h.

template<class T>
int artec::sdk::base::TArrayRef< T >::dataSize_
protected

Definition at line 93 of file TArrayRef.h.


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