rodbus (C++ API) 1.3.1
|
Iterator over RegisterValue instances. More...
#include <rodbus.hpp>
Public Member Functions | |
RegisterValueIterator (RegisterValueIterator &&)=default | |
move constructor for the iterator More... | |
bool | next () |
move the iterator to the next value More... | |
RegisterValue | get () |
retrieve the current value More... | |
Friends | |
class | CppRegisterValueIteratorFriend |
Iterator over RegisterValue instances.
Always use this pattern to extract values from the iterator:
while(iter.next()) { RegisterValue value = iter.get(); }
Calling get() when no value is available will throw std::logic_error
|
default |
move constructor for the iterator
RegisterValue rodbus::RegisterValueIterator::get | ( | ) |
bool rodbus::RegisterValueIterator::next | ( | ) |
move the iterator to the next value