Template Class AttributeMapHandleIterator

Inheritance Relationships

Derived Types

Class Documentation

template<typename HandleT>
class AttributeMapHandleIterator

Iterator over keys of an attribute map.

This is an interface that has to be implemented by the concrete iterators for the implementors of AttributeMap.

Subclassed by lvr2::HashMapIterator< HandleT, ValueT >, lvr2::ListMapIterator< HandleT, ValueT >, lvr2::VectorMapIterator< HandleT, ValueT >

Public Functions

virtual AttributeMapHandleIterator &operator++() = 0

Advances the iterator once. Using the dereference operator afterwards will yield the next handle.

virtual bool operator==(const AttributeMapHandleIterator &other) const = 0
virtual bool operator!=(const AttributeMapHandleIterator &other) const = 0
virtual HandleT operator*() const = 0

Returns the current handle.

virtual std::unique_ptr<AttributeMapHandleIterator> clone() const = 0
virtual ~AttributeMapHandleIterator() = default