Go to the documentation of this file.
29 class DeviceListEnumerator :
public Device::Enumerator
36 Device::Enumerator*
clone()
override
48 return (
size_t(index) < list.
count()) ? &list[index] :
nullptr;
53 return (
size_t(index) < list.
count()) ? &list[index++] :
nullptr;
void reset() override
Reset enumerator to start of list.
Definition: DeviceList.h:58
unsigned int count() const override
Definition: WVector.h:148
Device * current() override
Get the current item.
Definition: DeviceList.h:63
Vector< Device > DeviceList
Definition: DeviceList.h:44
Device * next() override
Get next item.
Definition: DeviceList.h:68
Device::Enumerator * clone() override
Make a copy of this enumerator.
Definition: DeviceList.h:53
DeviceListEnumerator(DeviceList &list)
Definition: DeviceList.h:49
Definition: Libraries/HueEmulator/src/include/Hue/Device.h:92
Vector class template.
Definition: WVector.h:31