The ToolList class represents a list of Tool objects.
More...
Inherits Interface.
The ToolList class represents a list of Tool objects.
- Deprecated:
- 3.0
The C++ iterator set to the beginning of this ToolList.
std::cout << *tl << std::endl;
- Deprecated:
- 3.0
Returns the number of tools in this list.
- Returns
- The number of tools in this list.
- Deprecated:
- 3.0
The C++ iterator set to the end of this ToolList.
std::cout << *tl << std::endl;
- Deprecated:
- 3.0
The member of the list that is farthest to the front within the standard Leap Motion frame of reference (i.e has the smallest Z coordinate).
- Returns
- The frontmost tool, or invalid if list is empty.
- Deprecated:
- 3.0
Reports whether the list is empty.
- Returns
- True, if the list has no members.
- Deprecated:
- 3.0
The member of the list that is farthest to the left within the standard Leap Motion frame of reference (i.e has the smallest X coordinate).
- Returns
- The leftmost tool, or invalid if list is empty.
- Deprecated:
- 3.0
Tool operator[] |
( |
int |
index | ) |
const |
Access a list member by its position in the list.
for (
int index = 0; index < allTools.
count(); index++) {
std::cout << allTools[index] << std::endl;
}
- Parameters
-
index | The zero-based list position index. |
- Returns
- The Tool object at the specified index.
- Deprecated:
- 3.0
The member of the list that is farthest to the right within the standard Leap Motion frame of reference (i.e has the largest X coordinate).
- Returns
- The rightmost tool, or invalid if list is empty.
- Deprecated:
- 3.0