Public Member Functions | Private Member Functions | Private Attributes | List of all members
openni::Array< T > Class Template Reference

#include <OpenNI.h>

Public Member Functions

void _setData (const T *data, int count, bool isOwner=false)
 
 Array ()
 
 Array (const T *data, int count)
 
int getSize () const
 
const T & operator[] (int index) const
 
 ~Array ()
 

Private Member Functions

 Array (const Array< T > &)
 
void clear ()
 
Array< T > & operator= (const Array< T > &)
 

Private Attributes

int m_count
 
const T * m_data
 
bool m_owner
 

Detailed Description

template<class T>
class openni::Array< T >

Provides a simple array class used throughout the API. Wraps a primitive array of objects, holding the elements and their count.

Definition at line 100 of file OpenNI.h.

Constructor & Destructor Documentation

template<class T>
openni::Array< T >::Array ( )
inline

Default constructor. Creates an empty Array and sets the element count to zero.

Definition at line 106 of file OpenNI.h.

template<class T>
openni::Array< T >::Array ( const T *  data,
int  count 
)
inline

Constructor. Creates new Array from an existing primitive array of known size.

Template Parameters
[in]T Object type this Array will contain.
Parameters
[in]dataPointer to a primitive array of objects of type T.
[in]countNumber of elements in the primitive array pointed to by data.

Definition at line 115 of file OpenNI.h.

template<class T>
openni::Array< T >::~Array ( )
inline

Destructor. Destroys the Array object.

Definition at line 120 of file OpenNI.h.

template<class T>
openni::Array< T >::Array ( const Array< T > &  )
private

Member Function Documentation

template<class T>
void openni::Array< T >::_setData ( const T *  data,
int  count,
bool  isOwner = false 
)
inline

Definition at line 146 of file OpenNI.h.

template<class T>
void openni::Array< T >::clear ( )
inlineprivate

Definition at line 166 of file OpenNI.h.

template<class T>
int openni::Array< T >::getSize ( ) const
inline

Getter function for the Array size.

Returns
Current number of elements in the Array.

Definition at line 129 of file OpenNI.h.

template<class T>
Array<T>& openni::Array< T >::operator= ( const Array< T > &  )
private
template<class T>
const T& openni::Array< T >::operator[] ( int  index) const
inline

Implements the array indexing operator for the Array class.

Definition at line 134 of file OpenNI.h.

Member Data Documentation

template<class T>
int openni::Array< T >::m_count
private

Definition at line 176 of file OpenNI.h.

template<class T>
const T* openni::Array< T >::m_data
private

Definition at line 175 of file OpenNI.h.

template<class T>
bool openni::Array< T >::m_owner
private

Definition at line 177 of file OpenNI.h.


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


libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:39