15 #ifndef PAAL_CYCLE_START_FROM_LAST_CHANGE_HPP
16 #define PAAL_CYCLE_START_FROM_LAST_CHANGE_HPP
21 namespace data_structures {
30 typedef typename cycle_traits<Cycle>::CycleElem CycleElem;
39 : m_cycle(c), m_element(*c.
vbegin()) {}
47 void flip(
const CycleElem &begin,
const CycleElem &end) {
49 m_cycle.flip(begin, end);
57 vertex_iterator
vbegin()
const {
return m_cycle.vbegin(m_element); }
66 vertex_iterator
vbegin(
const CycleElem &ce)
const {
67 return m_cycle.vbegin(ce);
75 vertex_iterator
vend()
const {
return m_cycle.vend(); }
98 #endif // PAAL_CYCLE_START_FROM_LAST_CHANGE_HPP
vertex_iterator vbegin() const
vbegin starts from last flip
vertex_iterator vend() const
vertices end
void flip(const CycleElem &begin, const CycleElem &end)
flip stores place of this flip
const Cycle & get_cycle() const
cycle getter const version
vertex_iterator vbegin(const CycleElem &ce) const
vbegin starts from ce
adopts any cycle to start (vbegin) i place of the last change(flip)
Cycle & get_cycle()
cycle getter
cycle_start_from_last_change(Cycle &c)
constructor