All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | Friends | List of all members
paal::data_structures::cycle_iterator< Iter > Class Template Reference

For given collection (begin -> end) and start iterator pointing to an element inside collection (begin -> ... -> start -> ... ->end), returns new collection created by shifting the old collection to start. More...

#include <cycle_iterator.hpp>

Inheritance diagram for paal::data_structures::cycle_iterator< Iter >:

Public Member Functions

 cycle_iterator (Iter start, Iter begin, Iter end)
 constructing of cycle_iterator More...
 
 cycle_iterator ()
 Points to end of the collection.
 

Friends

class boost::iterator_core_access
 

Detailed Description

template<typename Iter>
class paal::data_structures::cycle_iterator< Iter >

For given collection (begin -> end) and start iterator pointing to an element inside collection (begin -> ... -> start -> ... ->end), returns new collection created by shifting the old collection to start.

   example:
   WE are given collection of 5 elemeents and start points to the third

one: 1 -> 2 -> 3 (start) -> 4 -> 5 -> end

The collection ( cycle_iterator(start, begin, end), cycle_iterator() ) describes collection 3 -> 4 -> 5 -> 1 -> 2 -> end

Template Parameters
Itertype of iterator

Definition at line 48 of file cycle_iterator.hpp.

Constructor & Destructor Documentation

template<typename Iter >
paal::data_structures::cycle_iterator< Iter >::cycle_iterator ( Iter  start,
Iter  begin,
Iter  end 
)
inline

constructing of cycle_iterator

Parameters
startnew start
beginold start
endold end

Definition at line 66 of file cycle_iterator.hpp.


The documentation for this class was generated from the following file: