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=
176 "Foam::Circulator<ContainerType>::operator=" 177 "(const Foam::Circulator<ContainerType>&)" 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::Circulator<ContainerType>::operator==
253 template<
class ContainerType>
254 bool Foam::Circulator<ContainerType>::operator!=
259 return !(*
this ==
c);
263 template<
class ContainerType>
271 template<
class ContainerType>
279 template<
class ContainerType>
281 Foam::Circulator<ContainerType>::operator-
difference_type nRotations() const
Return the distance between the iterator and the fulcrum. This is.
CirculatorBase()
Construct null.
size_type size() const
Return the range of the iterator.
void setFulcrumToIterator()
Set the fulcrum to the current position of the iterator.
ContainerType::iterator iter_
Random access iterator for traversing ContainerType.
ContainerType::iterator fulcrum_
Iterator holding the location of the fulcrum (start and end) of.
direction
Direction type enumeration.
reference prev() const
Dereference the previous iterator and return.
Circulator< ContainerType > & operator--()
Prefix decrement. Decrements the iterator.
errorManip< error > abort(error &err)
Circulator()
Construct null.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
Circulator< ContainerType > & operator++()
Prefix increment. Increments the iterator.
ContainerType::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.
void setIteratorToFulcrum()
Set the iterator to the current position of the fulcrum.
Base class for circulators.
const dimensionedScalar c
Speed of light in a vacuum.
reference operator()() const
Dereference the iterator and return.
ContainerType::iterator begin_
Iterator pointing to the beginning of the container.
ContainerType::size_type size_type
The type that can represent the size of ContainerType.
reference next() const
Dereference the next iterator and return.
ContainerType::reference reference
Type that can be used for storing into.
reference operator*() const
Dereference the iterator and return.
ContainerType::iterator iterator
Random access iterator for traversing ContainerType.
bool circulate(const CirculatorBase::direction dir=NONE)
Circulate around the list in the given direction.
A class for managing temporary objects.
Walks over a container as if it were circular. The container must have the following members defined:...