28 template<
class ContainerType>
39 template<
class ContainerType>
42 const ContainerType& container
47 end_(container.end()),
53 template<
class ContainerType>
68 template<
class ContainerType>
84 template<
class ContainerType>
91 template<
class ContainerType>
99 template<
class ContainerType>
118 template<
class ContainerType>
125 template<
class ContainerType>
132 template<
class ContainerType>
140 template<
class ContainerType>
153 template<
class ContainerType>
168 template<
class ContainerType>
169 void Foam::ConstCirculator<ContainerType>::operator=
178 <<
"Attempted assignment to self" 189 template<
class ContainerType>
203 template<
class ContainerType>
213 template<
class ContainerType>
227 template<
class ContainerType>
237 template<
class ContainerType>
238 bool Foam::ConstCirculator<ContainerType>::operator==
253 template<
class ContainerType>
254 bool Foam::ConstCirculator<ContainerType>::operator!=
259 return !(*
this ==
c);
263 template<
class ContainerType>
271 template<
class ContainerType>
279 template<
class ContainerType>
281 Foam::ConstCirculator<ContainerType>::operator-
ContainerType::const_iterator end_
Iterator pointing to the end of the container.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
ContainerType::difference_type difference_type
The type that can represent the difference between any two.
ContainerType::size_type size_type
The type that can represent the size of ContainerType.
direction
Direction type enumeration.
void setIteratorToFulcrum()
Set the iterator to the current position of the fulcrum.
CirculatorBase()
Construct null.
const_reference prev() const
Dereference the previous iterator and return.
~ConstCirculator()
Destructor.
const dimensionedScalar c
Speed of light in a vacuum.
ConstCirculator< ContainerType > & operator++()
Prefix increment. Increments the iterator.
ContainerType::const_iterator iter_
Iterator.
size_type size() const
Return the range of the iterator.
errorManip< error > abort(error &err)
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.
difference_type nRotations() const
Return the distance between the iterator and the fulcrum. This is.
Base class for circulators.
bool circulate(const CirculatorBase::direction dir=CirculatorBase::direction::none)
Circulate around the list in the given direction.
const_reference operator*() const
Dereference the iterator and return.
const_reference operator()() const
Dereference the iterator and return.
const_reference next() const
Dereference the next iterator and return.
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:...
A class for managing temporary objects.
void setFulcrumToIterator()
Set the fulcrum to the current position of the iterator.