#include <XnListT.h>
List of all members.
Detailed Description
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
class XnListT< T, TAlloc >
A linked list.
- Template Parameters:
-
T | The type of value in the list |
TAlloc | [Optional] A class for allocating and deallocating nodes in the list. The allocator must have two static methods: Allocate() and Deallocate(). |
Member Typedef Documentation
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Constructor & Destructor Documentation
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Member Function Documentation
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Add a new value after the object pointed to by the iterator
- Parameters:
-
where | [in] iterator to the position after which to add the new value |
value | [in] The value to add to the list |
- Returns:
- XN_STATUS_ALLOC_FAILED failed to allocate new node XN_STATUS_ILLEGAL_POSITION iterator is invalid
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Add a new value before the object pointed to by the iterator
- Parameters:
-
where | [in] iterator to the position before which to add the new value |
value | [in] The value to add to the list |
- Returns:
- XN_STATUS_ALLOC_FAILED failed to allocate new node XN_STATUS_ILLEGAL_POSITION iterator is invalid
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Add a new value at the beginning of list
- Parameters:
-
value | [in] The value to add to the head of the list |
- Returns:
- XN_STATUS_ALLOC_FAILED failed to allocate new node
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Add a new value at the end of the list
- Parameters:
-
value | [in] The value to add to the tail of the list |
- Returns:
- XN_STATUS_ALLOC_FAILED failed to allocate new node
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
An iterator to the first entry of the list (non-const version)
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Remove all entries from the list
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
void XnListT< T, TAlloc >::CopyTo |
( |
T * |
pArray | ) |
const [inline] |
Copies all values in the list to an array.
- Parameters:
-
pArray | A pre-allocated array that values should be copied to. The allocation size can be determined using Size(). |
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
An iterator 1to the end of the list (non-const version). This position is invalid.
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
An iterator to the end of the list (const version). This position is invalid.
Reimplemented in XnStackT< T, TAlloc >.
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Get an iterator pointing to a value in the list.
- Parameters:
-
value | [in] The searched value |
- Returns:
- End() if value doesn't exist
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Get an iterator pointing to a value in the list.
- Parameters:
-
value | [in] The searched value |
- Returns:
- End() if value doesn't exist
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Add a new value to the list
- Parameters:
-
pAfter | [in] The node after which to add the new value |
val | [in] The value to add to the list |
- Returns:
- XN_STATUS_ALLOC_FAILED Failed to add to the list because no nodes are available,
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
XnBool XnListT< T, TAlloc >::IsEmpty |
( |
| ) |
const [inline] |
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Remove a value from the list
- Parameters:
-
where | [in] Iterator pointing to an entry in the list |
- Returns:
- XN_STATUS_ILLEGAL_POSITION iterator was invalid
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
Removes the first occurrence of a value from the list
- Parameters:
-
value | [in] The value to be removed |
- Returns:
- XN_STATUS_NO_MATCH value wasn't found.
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
An iterator to the last entry of the list (non-const version)
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
An iterator to the last entry of the list (const version)
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
An iterator to the beginning of the list (non-const version). This position is invalid.
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
An iterator to the beginning of the list (const version). This position is invalid.
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
XnUInt32 XnListT< T, TAlloc >::Size |
( |
| ) |
const [inline] |
Gets the current size of the list
Member Data Documentation
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
template<class T, class TAlloc = XnLinkedNodeDefaultAllocatorT<T>>
The documentation for this class was generated from the following file: