OpenNI 2.0: openni::Array< T > Class Template Reference

OpenNI 2.0

openni::Array< T > Class Template Reference

#include <OpenNI.h>

List of all members.

Public Member Functions

 Array ()
 Array (const T *data, int count)
 ~Array ()
int getSize () const
const T & operator[] (int index) const

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.

Constructor & Destructor Documentation

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

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

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.
[in]dataPointer to a primitive array of objects of type T.
[in]countNumber of elements in the primitive array pointed to by data.
template<class T>
openni::Array< T >::~Array ( ) [inline]

Destructor. Destroys the Array object.

Member Function Documentation

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

Getter function for the Array size.

Current number of elements in the Array.
template<class T>
const T& openni::Array< T >::operator[] ( int  index) const [inline]

Implements the array indexing operator for the Array class.

The documentation for this class was generated from the following file:
Generated on Tue Nov 12 2013 16:10:45 for OpenNI 2.0 by   doxygen