|
AIToolbox
A library that offers tools for AI problem solving.
|
This class is a simple iterator to iterate over a container without the specified ids. More...
#include <AIToolbox/Utils/IndexMap.hpp>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = typename Container::value_type |
| using | size_type = typename Container::size_type |
| using | pointer = value_type * |
| using | reference = value_type & |
| using | difference_type = std::ptrdiff_t |
Public Member Functions | |
| IndexSkipMapIterator (size_type start, const IdsContainer &ids, Container &items) | |
| Basic constructor for begin iterators. More... | |
| auto & | operator* () |
| const auto & | operator* () const |
| auto | operator-> () |
| auto | operator-> () const |
| auto | toContainerId () const |
| This function returns the equivalent item id of this iterator in its container. More... | |
| auto & | operator++ () |
| bool | operator== (const IndexSkipMapIterator &other) const |
| bool | operator!= (const IndexSkipMapIterator &other) const |
This class is a simple iterator to iterate over a container without the specified ids.
| using AIToolbox::IndexSkipMapIterator< IdsContainer, Container >::difference_type = std::ptrdiff_t |
| using AIToolbox::IndexSkipMapIterator< IdsContainer, Container >::iterator_category = std::forward_iterator_tag |
| using AIToolbox::IndexSkipMapIterator< IdsContainer, Container >::pointer = value_type * |
| using AIToolbox::IndexSkipMapIterator< IdsContainer, Container >::reference = value_type & |
| using AIToolbox::IndexSkipMapIterator< IdsContainer, Container >::size_type = typename Container::size_type |
| using AIToolbox::IndexSkipMapIterator< IdsContainer, Container >::value_type = typename Container::value_type |
|
inline |
Basic constructor for begin iterators.
| start | The index to start iterating from. |
| ids | The container holding the indeces to not iterate. |
| items | The container holding the values to iterate. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
This function returns the equivalent item id of this iterator in its container.