Child iterator for ArchiveElement children, uses instance of ArchiveIteratorImpl to provide implementation for different element types. More...
#include <Valuable/Archive.hpp>
Public Member Functions | |
| ArchiveIterator (std::shared_ptr< ArchiveIteratorImpl > impl) | |
| Construct a new ArchiveIterator. More... | |
| operator bool () const | |
| Returns NULL if the iterator is not valid anymore. More... | |
| bool | operator!= (const ArchiveIterator &other) const |
| Compares if the iterators point to different elements. | |
| ArchiveElement | operator* () const |
| Returns the current child, or null element in case of an invalid iterator. | |
| ArchiveIterator & | operator++ () |
| Prefix increment operator, changes the iterator to point to the next element. More... | |
| bool | operator== (const ArchiveIterator &other) const |
| Compares if the iterators point to the same element. | |
Child iterator for ArchiveElement children, uses instance of ArchiveIteratorImpl to provide implementation for different element types.
| Valuable::ArchiveIterator::ArchiveIterator | ( | std::shared_ptr< ArchiveIteratorImpl > | impl | ) |
Construct a new ArchiveIterator.
| impl | The ArchiveIterator implementation to use, has to be valid pointer. |
| Valuable::ArchiveIterator::operator bool | ( | ) | const |
Returns NULL if the iterator is not valid anymore.
Can be used like for(it = foo.children(); it; ++it) {}
| ArchiveIterator& Valuable::ArchiveIterator::operator++ | ( | ) |
Prefix increment operator, changes the iterator to point to the next element.