#include <ProblemDomain.H>
Collaboration diagram for ShiftIterator:
Public Member Functions | |
ShiftIterator () | |
Basic constructor. | |
ShiftIterator (const bool *a_isPeriodic) | |
Defining Constructor. | |
ShiftIterator (const ShiftIterator &a_shiftIt) | |
Copy constructor. | |
~ShiftIterator () | |
Destructor. | |
ShiftIterator & | operator= (const ShiftIterator &a_src) |
Assignment operator. | |
void | computeShifts (const bool *a_isPeriodic) |
Recompute shift vectors based on periodic directions. | |
IntVect | operator() () const |
Returns the current shift unit vector. | |
IntVect | i () const |
Equivalent to the () operator. | |
void | operator++ () |
Increment to the next shift unit vector. | |
void | incr () |
Equivalent to the ++ operator. | |
bool | ok () const |
Is the iterator still within its range of shift vectors? | |
void | reset () |
Reset to first shift unit vector. | |
void | begin () |
Equivalent to reset(). | |
void | end () |
Skip the iterator to the end. |
The ShiftIterator class contains a list of shift vectors necessary to enforce periodic boundary conditions (enforced by shifting the Box of each Fab, then copying any overlapping valid cells with ghost cells of the shifted Fab. Depending on the number of periodic directions, the list of shift vectors over which to iterate differs.
|
Basic constructor.
|
|
Defining Constructor. Builds a ShiftIterator based on the periodicity in a_isPeriodic |
|
Copy constructor.
|
|
Destructor.
|
|
Equivalent to reset().
|
|
Recompute shift vectors based on periodic directions.
|
|
Skip the iterator to the end. ok() will return false after this method is called. |
|
Equivalent to the () operator.
|
|
Equivalent to the ++ operator.
|
|
Is the iterator still within its range of shift vectors?
|
|
Returns the current shift unit vector.
|
|
Increment to the next shift unit vector.
|
|
Assignment operator.
|
|
Reset to first shift unit vector.
|