28 template<
class ContainerType>
39 template<
class ContainerType>
43 begin_(container.begin()),
44 end_(container.end()),
50 template<
class ContainerType>
65 template<
class ContainerType>
75 fulcrum_(rhs.fulcrum_)
81 template<
class ContainerType>
88 template<
class ContainerType>
96 template<
class ContainerType>
111 return !(iter_ == fulcrum_);
115 template<
class ContainerType>
122 template<
class ContainerType>
129 template<
class ContainerType>
133 return (iter_ - fulcrum_);
137 template<
class ContainerType>
141 if (iter_ == end_ - 1)
150 template<
class ContainerType>
165 template<
class ContainerType>
175 <<
"Attempted assignment to self"
182 fulcrum_ = rhs.fulcrum_;
186 template<
class ContainerType>
200 template<
class ContainerType>
210 template<
class ContainerType>
224 template<
class ContainerType>
234 template<
class ContainerType>
245 && fulcrum_ ==
c.fulcrum_
250 template<
class ContainerType>
256 return !(*
this ==
c);
260 template<
class ContainerType>
268 template<
class ContainerType>
276 template<
class ContainerType>
283 return iter_ -
c.iter_;
Base class for circulators.
direction
Direction type enumeration.
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.
Circulator< ContainerType > & operator--()
Prefix decrement. Decrements the iterator.
ContainerType::reference reference
Type that can be used for storing into.
Circulator()
Construct null.
void setIteratorToFulcrum()
Set the iterator to the current position of the fulcrum.
difference_type nRotations() const
Return the distance between the iterator and the fulcrum. This is.
size_type size() const
Return the range of the iterator.
ContainerType::iterator iterator
Random access iterator for traversing ContainerType.
reference operator()() const
Dereference the iterator and return.
ContainerType::difference_type difference_type
The type that can represent the difference between any two.
Circulator< ContainerType > & operator++()
Prefix increment. Increments the iterator.
reference next() const
Dereference the next iterator and return.
bool circulate(const CirculatorBase::direction dir=CirculatorBase::direction::none)
Circulate around the list in the given direction.
ContainerType::size_type size_type
The type that can represent the size of ContainerType.
reference prev() const
Dereference the previous iterator and return.
reference operator*() const
Dereference the iterator and return.
A class for managing temporary objects.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionedScalar c
Speed of light in a vacuum.
errorManip< error > abort(error &err)
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)