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=
179 "Foam::ConstCirculator<ContainerType>::operator=" 180 "(const Foam::ConstCirculator<ContainerType>&)" 181 ) <<
"Attempted assignment to self" 192 template<
class ContainerType>
206 template<
class ContainerType>
216 template<
class ContainerType>
230 template<
class ContainerType>
240 template<
class ContainerType>
241 bool Foam::ConstCirculator<ContainerType>::operator==
256 template<
class ContainerType>
257 bool Foam::ConstCirculator<ContainerType>::operator!=
262 return !(*
this ==
c);
266 template<
class ContainerType>
274 template<
class ContainerType>
282 template<
class ContainerType>
284 Foam::ConstCirculator<ContainerType>::operator-
ContainerType::const_iterator end_
Iterator pointing to the end of the container.
ConstCirculator< ContainerType > & operator--()
Prefix decrement. Decrements the iterator.
CirculatorBase()
Construct null.
Walks over a container as if it were circular. The container must have the following members defined:...
ContainerType::const_iterator const_iterator
Random access iterator for traversing ContainerType.
direction
Direction type enumeration.
size_type size() const
Return the range of the iterator.
const_reference operator()() const
Dereference the iterator and return.
void setIteratorToFulcrum()
Set the iterator to the current position of the fulcrum.
const_reference operator*() const
Dereference the iterator and return.
~ConstCirculator()
Destructor.
ConstCirculator()
Construct null.
void setFulcrumToIterator()
Set the fulcrum to the current position of the iterator.
errorManip< error > abort(error &err)
ContainerType::const_iterator iter_
Iterator.
ContainerType::const_iterator fulcrum_
Iterator holding the location of the fulcrum (start and end) of.
#define FatalErrorIn(functionName)
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.
ConstCirculator< ContainerType > & operator++()
Prefix increment. Increments the iterator.
ContainerType::const_reference const_reference
Type that can be used for storing into.
Base class for circulators.
bool circulate(const CirculatorBase::direction dir=NONE)
Circulate around the list in the given direction.
const dimensionedScalar c
Speed of light in a vacuum.
ContainerType::const_iterator begin_
Iterator pointing to the beginning of the container.
difference_type nRotations() const
Return the distance between the iterator and the fulcrum. This is.
const_reference next() const
Dereference the next iterator and return.
A class for managing temporary objects.
const_reference prev() const
Dereference the previous iterator and return.