Detailed Description
This page details functions for handling production nodes lists. The lists are implemented as doubly-linked lists, but it's not recommended to access the list members directly. instead, use the provided functions for handling the list.
Adding and Removing Node Info Objects
Nodes can be added to the list using xnNodeInfoListAdd(). Note that once an info object is part of the list, it will be freed if that list is freed. A node can be removed by calling xnNodeInfoListRemove(), which also frees that element.
A short example:
Enumeration
Forward Iteration:
Backwards Iteration:
Function Documentation
Creates and adds a single XnNodeInfo object to the list.
- Parameters:
-
pList | [in] The list. |
pDescription | [in] The description of this production node. |
strCreationInfo | [in] Optional. Additional needed information for instantiation. |
pNeededNodes | [in] Optional. A list of needed nodes. |
Adds a single XnNodeInfo object to the list.
- Parameters:
-
pList | [in] The list. |
pNode | [in] The node to add. |
Adds a node from another list to this list (the node is not removed from the other list).
- Parameters:
-
pList | [in] The list. |
otherListIt | [in] An iterator obtained from another list. |
Appends another list at the end of this list. Note that the other list becomes empty, but still needs to be freed.
- Parameters:
-
pList | [in] A list. |
pOther | [in] The list to be appended. |
Clears a node info list, freeing all the elements in it.
- Parameters:
-
pList | [in] The list to be freed. |
Gets current element from an iterator.
- Parameters:
-
- Returns:
- an XnNodeInfo pointer.
Gets the first element of the list.
- Parameters:
-
pList | [in] [Optional] A list. |
- Returns:
- an iterator to the first element of the list, or NULL if the list is empty.
Gets the last element of the list.
- Parameters:
-
pList | [in] [Optional] A list. |
- Returns:
- an iterator to the last element of the list, or NULL if the list is empty.
Gets an iterator to the next element from a current iterator.
- Parameters:
-
- Returns:
- an iterator to the next element.
Gets an iterator to the previous element from a current iterator.
- Parameters:
-
- Returns:
- an iterator to the previous element.
Checks if the given list is empty
- Parameters:
-
Checks if the current iterator points to a valid location.
- Parameters:
-
Removes an element from the list, and frees it.
- Parameters:
-
pList | [in] The list. |
it | [in] Iterator to the element that should be removed. |