#include <XnArray.h>
◆ ConstIterator
A constant iterator object that allows you to iterate over members in the array as read-only values.
◆ Iterator
An iterator object that allows you to iterate over members in the array.
◆ anonymous enum
◆ XnArray() [1/2]
Default constructor. Initializes the array to BASE_SIZE.
◆ XnArray() [2/2]
Copy constructor. Initializes this array from another array of the same type.
◆ ~XnArray()
Destructor. Deallocates data in this array.
◆ AddLast() [1/2]
Adds one element to the end of this array.
◆ AddLast() [2/2]
Adds a range of values to the end of this array.
◆ begin() [1/2]
- Returns
- a modifiable iterator pointing to the beginning of this array.
◆ begin() [2/2]
- Returns
- a const iterator pointing to the beginning of this array.
◆ Clear()
Resets the data of this array and sets its size to 0.
◆ CopyFrom()
Copies data from another array of the same type.
◆ end() [1/2]
- Returns
- a modifiable itertor pointing to the end of this array.
◆ end() [2/2]
- Returns
- a const itertor pointing to the end of this array.
◆ GetAllocatedSize()
template<typename T>
XnUInt32 XnArray< T >::GetAllocatedSize |
( |
| ) |
const |
|
inline |
- Returns
- The allocated size of this array. This is the maximum number of elements that the array can hold without re-allocating and copying data.
◆ GetData() [1/2]
template<typename T>
const T* XnArray< T >::GetData |
( |
| ) |
const |
|
inline |
- Returns
- the raw data of this array as a read-only buffer.
◆ GetData() [2/2]
- Returns
- the raw data of this array as a modifiable buffer.
◆ GetSize()
template<typename T>
XnUInt32 XnArray< T >::GetSize |
( |
| ) |
const |
|
inline |
- Returns
- The number of elements in this array.
◆ IsEmpty()
template<typename T>
XnBool XnArray< T >::IsEmpty |
( |
| ) |
const |
|
inline |
- Returns
- TRUE if this array is empty, FALSE otherwise.
◆ operator=()
Assignment operator. Copies data from another array of the same type.
◆ operator[]() [1/2]
template<typename T>
T& XnArray< T >::operator[] |
( |
XnUInt32 |
nIndex | ) |
|
|
inline |
Element access operator. Returns a modifiable reference to the element at specified index.
◆ operator[]() [2/2]
template<typename T>
const T& XnArray< T >::operator[] |
( |
XnUInt32 |
nIndex | ) |
const |
|
inline |
Element access operator. Returns a const reference to the element at specified index.
◆ Reserve()
Reserves space in this array for the specified number of elements. This saves you re-allocations and data copies if you know the size in advance.
◆ Set() [1/2]
Sets value at specified index, grows array if needed. Note that when dealing with primitive types and adding beyond the current size of the array, any added values that fill the gap are uninitialized
◆ Set() [2/2]
template<typename T>
XnStatus XnArray< T >::Set |
( |
XnUInt32 |
nIndex, |
|
|
const T & |
val, |
|
|
const T & |
fillVal |
|
) |
| |
|
inline |
Sets value at specified index and grows array if needed, filling any resulting blank elements with fillVal.
◆ SetData()
Copies data from a raw buffer of the same type pointed to by pData, and sets size to nSize.
◆ SetMinSize() [1/2]
Makes sure the array has at least nSize elements. If nSize is less than the current size, there is no effect. Note that for primitive types, any added elements are uninitialized.
◆ SetMinSize() [2/2]
Makes sure the array has at least nSize elements. If nSize is less than the current size, there is no effect. Any added elements are initialized by the value specified by fillVal.
◆ SetSize() [1/2]
Sets the size of this array to the specified number of elements. Note that for primitive types, the data is uninitialized.
◆ SetSize() [2/2]
Sets the size of this array to the specified number of elements, initializing all elements with the value specified by fillVal.
The documentation for this class was generated from the following file: