Walks over a container as if it were circular. The container must have the following members defined: More...
Public Types | |
typedef ContainerType::value_type | value_type |
typedef ContainerType::size_type | size_type |
typedef ContainerType::difference_type | difference_type |
typedef ContainerType::iterator | iterator |
typedef ContainerType::reference | reference |
![]() | |
enum | direction { NONE, CLOCKWISE, ANTICLOCKWISE } |
Public Member Functions | |
Circulator () | |
Circulator (ContainerType &container) | |
Circulator (const iterator &begin, const iterator &end) | |
Circulator (const Circulator< ContainerType > &) | |
~Circulator () | |
size_type | size () const |
bool | circulate (const CirculatorBase::direction dir=NONE) |
void | setFulcrumToIterator () |
void | setIteratorToFulcrum () |
difference_type | nRotations () const |
reference | next () const |
reference | prev () const |
void | operator= (const Circulator< ContainerType > &) |
Circulator< ContainerType > & | operator++ () |
Circulator< ContainerType > | operator++ (int) |
Circulator< ContainerType > & | operator-- () |
Circulator< ContainerType > | operator-- (int) |
bool | operator== (const Circulator< ContainerType > &c) const |
bool | operator!= (const Circulator< ContainerType > &c) const |
reference | operator* () const |
reference | operator() () const |
difference_type | operator- (const Circulator< ContainerType > &c) const |
![]() | |
CirculatorBase () | |
Protected Attributes | |
ContainerType::iterator | begin_ |
ContainerType::iterator | end_ |
ContainerType::iterator | iter_ |
ContainerType::iterator | fulcrum_ |
Walks over a container as if it were circular. The container must have the following members defined:
Examples
Definition at line 73 of file Circulator.H.
typedef ContainerType::value_type value_type |
Definition at line 102 of file Circulator.H.
typedef ContainerType::size_type size_type |
Definition at line 105 of file Circulator.H.
typedef ContainerType::difference_type difference_type |
Definition at line 109 of file Circulator.H.
typedef ContainerType::iterator iterator |
Definition at line 112 of file Circulator.H.
typedef ContainerType::reference reference |
Definition at line 116 of file Circulator.H.
|
inline |
Definition at line 25 of file CirculatorI.H.
|
inlineexplicit |
Definition at line 36 of file CirculatorI.H.
|
inline |
Definition at line 48 of file CirculatorI.H.
|
inline |
Definition at line 63 of file CirculatorI.H.
Definition at line 78 of file CirculatorI.H.
|
inline |
Definition at line 86 of file CirculatorI.H.
|
inline |
Definition at line 94 of file CirculatorI.H.
References CirculatorBase::ANTICLOCKWISE, and CirculatorBase::CLOCKWISE.
|
inline |
Definition at line 112 of file CirculatorI.H.
|
inline |
Definition at line 119 of file CirculatorI.H.
|
inline |
Definition at line 127 of file CirculatorI.H.
|
inline |
Definition at line 135 of file CirculatorI.H.
|
inline |
Definition at line 148 of file CirculatorI.H.
|
inline |
Definition at line 163 of file CirculatorI.H.
References Circulator< ContainerType >::begin_, Circulator< ContainerType >::end_, Circulator< ContainerType >::fulcrum_, and Circulator< ContainerType >::iter_.
|
inline |
Definition at line 181 of file CirculatorI.H.
|
inline |
Definition at line 195 of file CirculatorI.H.
|
inline |
Definition at line 205 of file CirculatorI.H.
|
inline |
Definition at line 219 of file CirculatorI.H.
|
inline |
Definition at line 229 of file CirculatorI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 245 of file CirculatorI.H.
References Foam::constant::universal::c.
|
inline |
Definition at line 255 of file CirculatorI.H.
|
inline |
Definition at line 263 of file CirculatorI.H.
References Foam::operator*().
|
inline |
Definition at line 272 of file CirculatorI.H.
References Foam::constant::universal::c.
|
protected |
Definition at line 83 of file Circulator.H.
Referenced by Circulator< ContainerType >::operator=().
|
protected |
Definition at line 86 of file Circulator.H.
Referenced by Circulator< ContainerType >::operator=().
|
protected |
Definition at line 89 of file Circulator.H.
Referenced by Circulator< ContainerType >::operator=().
|
protected |
Definition at line 94 of file Circulator.H.
Referenced by Circulator< ContainerType >::operator=().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.