|
PLaSK library
|
Template to create iterators which using functor having size argument. More...
#include <plask/utils/iterators.hpp>
Public Member Functions | |
| FunctorIndexedIterator (FunctorType functor, std::size_t index) | |
| Construct iterator which point to given in index in given container. | |
| std::size_t | getIndex () const |
| Get current iterator position (index). | |
Public Attributes | |
| FunctorType | functor |
| Functor. | |
| std::size_t | index |
| Current iterator position (index). | |
Friends | |
| class | boost::iterator_core_access |
| template<class , class , class > | |
| struct | FunctorIndexedIterator |
Template to create iterators which using functor having size argument.
| ContainerType | type of container (can be const or non-const) |
| Reference | iterator reference type, should be the same type which return functor operator() |
| Value | iterator value type, should be the same type which return container operator[] but without reference |
Definition at line 326 of file iterators.hpp.
|
inline |
Construct iterator which point to given in index in given container.
| functor | functor |
| index | index for which this iterator should refer, argument for functor |
Definition at line 339 of file iterators.hpp.
|
inline |
Get current iterator position (index).
Definition at line 345 of file iterators.hpp.
|
friend |
Definition at line 348 of file iterators.hpp.
|
friend |
Definition at line 349 of file iterators.hpp.
| FunctorType plask::FunctorIndexedIterator< FunctorType, Reference, Value >::functor |
Functor.
Definition at line 329 of file iterators.hpp.
| std::size_t plask::FunctorIndexedIterator< FunctorType, Reference, Value >::index |
Current iterator position (index).
Definition at line 332 of file iterators.hpp.