28 template<
class ContainerType>
39 template<
class ContainerType>
44 end_(container.end()),
50 template<
class ContainerType>
65 template<
class ContainerType>
81 template<
class ContainerType>
88 template<
class ContainerType>
96 template<
class ContainerType>
115 template<
class ContainerType>
122 template<
class ContainerType>
129 template<
class ContainerType>
137 template<
class ContainerType>
150 template<
class ContainerType>
165 template<
class ContainerType>
166 void Foam::Circulator<ContainerType>::operator=
175 <<
"Attempted assignment to self" 186 template<
class ContainerType>
200 template<
class ContainerType>
210 template<
class ContainerType>
224 template<
class ContainerType>
234 template<
class ContainerType>
235 bool Foam::Circulator<ContainerType>::operator==
250 template<
class ContainerType>
251 bool Foam::Circulator<ContainerType>::operator!=
256 return !(*
this ==
c);
260 template<
class ContainerType>
268 template<
class ContainerType>
276 template<
class ContainerType>
278 Foam::Circulator<ContainerType>::operator-
Circulator()
Construct null.
ContainerType::difference_type difference_type
The type that can represent the difference between any two.
void setIteratorToFulcrum()
Set the iterator to the current position of the fulcrum.
Circulator< ContainerType > & operator--()
Prefix decrement. Decrements the iterator.
ContainerType::iterator end_
Iterator pointing to the end of the container.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
ContainerType::iterator iterator
Random access iterator for traversing ContainerType.
difference_type nRotations() const
Return the distance between the iterator and the fulcrum. This is.
direction
Direction type enumeration.
void setFulcrumToIterator()
Set the fulcrum to the current position of the iterator.
CirculatorBase()
Construct null.
size_type size() const
Return the range of the iterator.
const dimensionedScalar c
Speed of light in a vacuum.
ContainerType::iterator fulcrum_
Iterator holding the location of the fulcrum (start and end) of.
reference next() const
Dereference the next iterator and return.
reference operator*() const
Dereference the iterator and return.
ContainerType::size_type size_type
The type that can represent the size of ContainerType.
errorManip< error > abort(error &err)
Circulator< ContainerType > & operator++()
Prefix increment. Increments the iterator.
bool circulate(const CirculatorBase::direction dir=CirculatorBase::direction::none)
Circulate around the list in the given direction.
Walks over a container as if it were circular. The container must have the following members defined:...
reference operator()() const
Dereference the iterator and return.
ContainerType::iterator iter_
Random access iterator for traversing ContainerType.
reference prev() const
Dereference the previous iterator and return.
Base class for circulators.
ContainerType::reference reference
Type that can be used for storing into.
A class for managing temporary objects.
ContainerType::iterator begin_
Iterator pointing to the beginning of the container.