#include <Leap.h>

Public Types | |
| typedef ConstListIterator < DeviceList, Device > | const_iterator |
Public Member Functions | |
| def | __getitem__ |
| def | __init__ |
| def | __iter__ |
| def | __len__ |
| def | append |
| LEAP_EXPORT DeviceList & | append (const DeviceList &other) |
| LEAP_EXPORT const_iterator | begin () const |
| LEAP_EXPORT int | count () const |
| DeviceList (const ListBaseImplementation< Device > &) | |
| LEAP_EXPORT | DeviceList () |
| LEAP_EXPORT const_iterator | end () const |
| LEAP_EXPORT bool | isEmpty () const |
| LEAP_EXPORT Device | operator[] (int index) const |
Public Attributes | |
| this | |
Static Public Attributes | |
| tuple | is_empty = _swig_property(LeapPython.DeviceList_is_empty_get) |
Static Private Attributes | |
| tuple | __getattr__ = lambdaself,name:_swig_getattr(self, DeviceList, name) |
| __repr__ = _swig_repr | |
| tuple | __setattr__ = lambdaself,name,value:_swig_setattr(self, DeviceList, name, value) |
| __swig_destroy__ = LeapPython.delete_DeviceList | |
| dictionary | __swig_getmethods__ = {} |
| dictionary | __swig_setmethods__ = {} |
The DeviceList class represents a list of Device objects.
Get a DeviceList object by calling Controller::devices().
| Leap::DeviceList::DeviceList | ( | const ListBaseImplementation< Device > & | ) |
Constructs an empty list of devices.
| def Leap::DeviceList::__init__ | ( | self | ) |
| def Leap::DeviceList::__getitem__ | ( | self, | |
| index | |||
| ) |
| def Leap::DeviceList::__iter__ | ( | self | ) |
| def Leap::DeviceList::__len__ | ( | self | ) |
| def Leap::DeviceList::append | ( | self, | |
| other | |||
| ) |
| LEAP_EXPORT DeviceList& Leap::DeviceList::append | ( | const DeviceList & | other | ) |
Appends the members of the specified DeviceList to this DeviceList.
| other | A DeviceList object containing Device objects to append to the end of this DeviceList. |
| LEAP_EXPORT const_iterator Leap::DeviceList::begin | ( | ) | const |
The C++ iterator set to the beginning of this DeviceList.
| LEAP_EXPORT int Leap::DeviceList::count | ( | ) | const |
Returns the number of devices in this list.
| LEAP_EXPORT const_iterator Leap::DeviceList::end | ( | ) | const |
The C++ iterator set to the end of this DeviceList.
| LEAP_EXPORT bool Leap::DeviceList::isEmpty | ( | ) | const |
Reports whether the list is empty.
| LEAP_EXPORT Device Leap::DeviceList::operator[] | ( | int | index | ) | const |
Access a list member by its position in the list.
| index | The zero-based list position index. |
tuple Leap::DeviceList::__getattr__ = lambdaself,name:_swig_getattr(self, DeviceList, name) [static, private] |
Reimplemented from Leap::Interface.
Leap::DeviceList::__repr__ = _swig_repr [static, private] |
tuple Leap::DeviceList::__setattr__ = lambdaself,name,value:_swig_setattr(self, DeviceList, name, value) [static, private] |
Reimplemented from Leap::Interface.
Leap::DeviceList::__swig_destroy__ = LeapPython.delete_DeviceList [static, private] |
dictionary Leap::DeviceList::__swig_getmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
dictionary Leap::DeviceList::__swig_setmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
tuple Leap::DeviceList::is_empty = _swig_property(LeapPython.DeviceList_is_empty_get) [static] |