step_iterator_adaptor< DERIVED, IT, S_FN > Class Template Reference |
Public Types | |
typedef std::iterator_traits < IT >::difference_type | base_difference_type |
typedef S_FN::difference_type | difference_type |
typedef boost::iterator_adaptor < DERIVED, IT, boost::use_default, boost::use_default, boost::use_default, typename S_FN::difference_type > | parent_type |
typedef std::iterator_traits < IT >::reference | reference |
Public Member Functions | |
difference_type | step () const |
step_iterator_adaptor () | |
step_iterator_adaptor (const IT &it, S_FN step_fn=S_FN()) | |
Protected Attributes | |
S_FN | _step_fn |
Friends | |
class | boost::iterator_core_access |
Detailed Description
template<typename DERIVED, typename IT, typename S_FN>
class adobe::step_iterator_adaptor< DERIVED, IT, S_FN >
An adaptor over an existing iterator that changes the step unit (i.e. distance(it,it+1)) by a given predicate. Instead of calling base's operators ++, --, +=, -=, etc. the adaptor is using the passed policy object S_FN for advancing and for computing the distance between iterators.
Definition at line 336 of file iterator.hpp.
Member Typedef Documentation
typedef std::iterator_traits<IT>::difference_type base_difference_type |
Definition at line 339 of file iterator.hpp.
typedef S_FN::difference_type difference_type |
Definition at line 340 of file iterator.hpp.
typedef boost::iterator_adaptor<DERIVED, IT, boost::use_default, boost::use_default, boost::use_default, typename S_FN::difference_type> parent_type |
Definition at line 338 of file iterator.hpp.
Definition at line 341 of file iterator.hpp.
Constructor & Destructor Documentation
Definition at line 343 of file iterator.hpp.
step_iterator_adaptor | ( | const IT & | it, |
S_FN | step_fn = S_FN() |
||
) |
Definition at line 344 of file iterator.hpp.
Member Function Documentation
difference_type step | ( | ) | const |
Definition at line 346 of file iterator.hpp.
Friends And Related Function Documentation
friend class boost::iterator_core_access [friend] |
Definition at line 351 of file iterator.hpp.
Member Data Documentation
S_FN _step_fn [protected] |
Definition at line 349 of file iterator.hpp.