OpenNI 2.0
Public 成员函数 | 所有成员列表
openni::Array< T > 模板类 参考

#include <OpenNI.h>

Public 成员函数

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

详细描述

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.

构造及析构函数说明

◆ Array() [1/2]

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

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

◆ Array() [2/2]

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.

模板参数
[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.

◆ ~Array()

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

Destructor. Destroys the Array object.

成员函数说明

◆ getSize()

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

Getter function for the Array size.

返回
Current number of elements in the Array.

◆ operator[]()

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

Implements the array indexing operator for the Array class.


该类的文档由以下文件生成: