Public Member Functions | Private Member Functions | Private Attributes
openni::Array< T > Class Template Reference

#include <OpenNI.h>

List of all members.

Public Member Functions

void _setData (const T *data, int count, bool isOwner=false)
 Array ()
 Array (const T *data, int count)
int getSize () const
const Toperator[] (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 Tm_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 118 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 124 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 133 of file OpenNI.h.

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

Destructor. Destroys the Array object.

Definition at line 138 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 164 of file OpenNI.h.

template<class T>
void openni::Array< T >::clear ( ) [inline, private]

Definition at line 184 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 147 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 152 of file OpenNI.h.


Member Data Documentation

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

Definition at line 194 of file OpenNI.h.

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

Definition at line 193 of file OpenNI.h.

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

Definition at line 195 of file OpenNI.h.


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


astra_camera
Author(s): Tim Liu
autogenerated on Wed Jul 10 2019 03:18:55