76 #ifndef ConstCirculator_H 77 #define ConstCirculator_H 91 template<
class ContainerType>
102 typename ContainerType::const_iterator
begin_;
105 typename ContainerType::const_iterator
end_;
108 typename ContainerType::const_iterator
iter_;
113 typename ContainerType::const_iterator
fulcrum_;
121 typedef typename ContainerType::value_type
value_type;
149 const const_iterator& begin,
150 const const_iterator& end
164 inline size_type
size()
const;
180 inline const_reference
next()
const;
183 inline const_reference
prev()
const;
221 inline const_reference
operator*()
const;
228 inline difference_type
operator-
ContainerType::const_iterator end_
Iterator pointing to the end of the container.
ContainerType::difference_type difference_type
The type that can represent the difference between any two.
bool operator!=(const ConstCirculator< ContainerType > &c) const
Check for inequality of this iterator with another iterator that.
bool circulate(const CirculatorBase::direction dir=NONE)
Circulate around the list in the given direction.
ContainerType::size_type size_type
The type that can represent the size of ContainerType.
difference_type nRotations() const
Return the distance between the iterator and the fulcrum. This is.
direction
Direction type enumeration.
const_reference prev() const
Dereference the previous iterator and return.
const_reference operator*() const
Dereference the iterator and return.
void setIteratorToFulcrum()
Set the iterator to the current position of the fulcrum.
~ConstCirculator()
Destructor.
ConstCirculator< ContainerType > & operator++()
Prefix increment. Increments the iterator.
void operator=(const ConstCirculator< ContainerType > &)
Assignment operator for circulators that operate on the same.
ContainerType::const_iterator iter_
Iterator.
size_type size() const
Return the range of the iterator.
ContainerType::value_type value_type
Type of values ContainerType contains.
const_reference next() const
Dereference the next iterator and return.
graph_traits< Graph >::vertices_size_type size_type
bool operator==(const ConstCirculator< ContainerType > &c) const
Check for equality of this iterator with another iterator that.
ConstCirculator()
Construct null.
ContainerType::const_iterator const_iterator
Random access iterator for traversing ContainerType.
ContainerType::const_iterator fulcrum_
Iterator holding the location of the fulcrum (start and end) of.
ContainerType::const_iterator begin_
Iterator pointing to the beginning of the container.
ConstCirculator< ContainerType > & operator--()
Prefix decrement. Decrements the iterator.
const_reference operator()() const
Dereference the iterator and return.
Base class for circulators.
const dimensionedScalar c
Speed of light in a vacuum.
ContainerType::const_reference const_reference
Type that can be used for storing into.
Walks over a container as if it were circular. The container must have the following members defined:...
void setFulcrumToIterator()
Set the fulcrum to the current position of the iterator.