![]() |
Leap Motion C++ API Reference
0.8.0
|
The DeviceList class represents a list of Device objects. More...
Inherits Leap::Interface.
Public Types | |
typedef ConstListIterator < DeviceList, Device > | const_iterator |
A C++ iterator type for this DeviceList objects. | |
Public Member Functions | |
DeviceList & | append (const DeviceList &other) |
Appends the members of the specifed DeviceList to this DeviceList. | |
const_iterator | begin () const |
The C++ iterator set to the beginning of this DeviceList. | |
int | count () const |
Returns the number of devices in this list. | |
DeviceList () | |
Constructs an empty list of devices. | |
const_iterator | end () const |
The C++ iterator set to the end of this DeviceList. | |
bool | isEmpty () const |
Reports whether the list is empty. | |
Device | operator[] (int index) const |
Access a list member by its position in the list. | |
The DeviceList class represents a list of Device objects.
Get a DeviceList object by calling Controller::devices().
typedef ConstListIterator<DeviceList, Device> Leap::DeviceList::const_iterator |
A C++ iterator type for this DeviceList objects.
Leap::DeviceList::DeviceList | ( | ) |
Constructs an empty list of devices.
DeviceList& Leap::DeviceList::append | ( | const DeviceList & | other | ) |
Appends the members of the specifed DeviceList to this DeviceList.
other | A DeviceList object containing Device objects to append to the end of this DeviceList. |
const_iterator Leap::DeviceList::begin | ( | ) | const |
The C++ iterator set to the beginning of this DeviceList.
int Leap::DeviceList::count | ( | ) | const |
Returns the number of devices in this list.
const_iterator Leap::DeviceList::end | ( | ) | const |
The C++ iterator set to the end of this DeviceList.
bool Leap::DeviceList::isEmpty | ( | ) | const |
Reports whether the list is empty.