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 137 of file OpenNI.h.

Constructor & Destructor Documentation

◆ Array() [1/3]

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

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

Definition at line 143 of file OpenNI.h.

◆ Array() [2/3]

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 152 of file OpenNI.h.

◆ ~Array()

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

Destructor. Destroys the Array object.

Definition at line 157 of file OpenNI.h.

◆ Array() [3/3]

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

Member Function Documentation

◆ _setData()

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

Definition at line 183 of file OpenNI.h.

◆ clear()

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

Definition at line 203 of file OpenNI.h.

◆ getSize()

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 166 of file OpenNI.h.

◆ operator=()

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

◆ operator[]()

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 171 of file OpenNI.h.

Member Data Documentation

◆ m_count

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

Definition at line 213 of file OpenNI.h.

◆ m_data

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

Definition at line 212 of file OpenNI.h.

◆ m_owner

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

Definition at line 214 of file OpenNI.h.


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


ros_astra_camera
Author(s): Tim Liu
autogenerated on Wed Mar 2 2022 00:52:57