lib/dbus/ReadIter: add API documentation
This commit is contained in:
parent
6c81fa1ec5
commit
d4141bf7f1
|
@ -74,10 +74,18 @@ public:
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new iterator which recurses into a container
|
||||||
|
* value.
|
||||||
|
*/
|
||||||
ReadMessageIter Recurse() noexcept {
|
ReadMessageIter Recurse() noexcept {
|
||||||
return {RecurseTag(), *this};
|
return {RecurseTag(), *this};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invoke a function for each element (including the current
|
||||||
|
* one), as long as the argument type is the specified one.
|
||||||
|
*/
|
||||||
template<typename F>
|
template<typename F>
|
||||||
void ForEach(int arg_type, F &&f) {
|
void ForEach(int arg_type, F &&f) {
|
||||||
for (; GetArgType() == arg_type; Next())
|
for (; GetArgType() == arg_type; Next())
|
||||||
|
|
Loading…
Reference in New Issue