Chombo + EB + MF
3.2
|
iterates through the IntVects of a Box More...
#include <BoxIterator.H>
Public Member Functions | |
BoxIterator () | |
BoxIterator (const Box &a_bx) | |
void | setBox (const Box &a_bx) |
void | define (const Box &a_bx) |
BoxIterator (const BoxIterator &a_iterIn) | |
~BoxIterator () | |
void | begin () |
void | reset () |
void | operator++ () |
void | next () |
const IntVect & | operator() () const |
bool | ok () |
unsigned long long | size () const |
IntVect | at (unsigned long long pt) const |
Protected Attributes | |
IntVect | m_current |
IntVect | m_boxLo |
IntVect | m_boxHi |
iterates through the IntVects of a Box
BoxIterator iterates through the IntVects of a box. The actual sqeuence of IntVects is implementation-specific. Typical usage:
Box b; ... BoxIterator bit (b); for (bit.begin(); bit.ok(); ++bit) { IntVect iv = bit(); (do operations involving iv) }
|
inline |
Default constructor. This constructs an invalid iterator. The user must call define before using.
References m_boxHi, m_boxLo, m_current, IntVect::Unit, and IntVect::Zero.
|
inline |
Constructs a BoxIterator and associates it with a Box. Arguments: a_bx (not modified) the Box to iterate over.
References define().
|
inline |
Copy constructor. Arguments: a_iterIn (not modified) the BoxIterator to copy.
|
inline |
References at(), begin(), next(), ok(), operator()(), operator++(), reset(), and size().
void BoxIterator::setBox | ( | const Box & | a_bx | ) |
void BoxIterator::define | ( | const Box & | a_bx | ) |
Associates a Box with this BoxIterator. Arguments: a_bx (not modified) the Box to iterate over.
Referenced by BoundaryIterator::begin(), BoxIterator(), BoundaryIterator::next(), and BoundaryIterator::nextBox().
|
inline |
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.
References m_boxHi, m_boxLo, and m_current.
Referenced by NormalDerivativeNew< dim >::calculateAll(), NormalDerivativeNew< dim >::calculatePhiDerivs(), BlockBaseRegister< FArrayBox >::copyToDstRegister(), PetscSolver< LevelData< FArrayBox > >::create_mat_vec(), BoundaryIterator::next(), BlockBaseRegister< FArrayBox >::print(), PetscSolver< LevelData< FArrayBox > >::putChomboInPetsc(), PetscSolver< LevelData< FArrayBox > >::putPetscInChombo(), reset(), PetscSolver< LevelData< FArrayBox > >::setup_solver(), PetscSolver< LevelData< FArrayBox > >::solve_mfree_private(), PetscSolver< LevelData< FArrayBox > >::solve_private(), and ~BoxIterator().
|
inline |
Sets this BoxIterator to the first IntVect in its Box. The definition of the "first" IntVect is implementation-dependent.
References begin().
Referenced by ~BoxIterator().
|
inline |
Modifies this BoxIterator to set it to the next location in its Box. The definition of the "next location" of a Box is implementation-dependent.
References next().
Referenced by ~BoxIterator().
|
inline |
References m_boxHi, m_boxLo, and m_current.
Referenced by PetscSolver< LevelData< FArrayBox > >::create_mat_vec(), BoundaryIterator::next(), operator++(), PetscSolver< LevelData< FArrayBox > >::putChomboInPetsc(), PetscSolver< LevelData< FArrayBox > >::putPetscInChombo(), PetscSolver< LevelData< FArrayBox > >::setup_solver(), PetscSolver< LevelData< FArrayBox > >::solve_mfree_private(), PetscSolver< LevelData< FArrayBox > >::solve_private(), and ~BoxIterator().
|
inline |
Returns the value of the InVect for the current location of this BoxIterator.
References CH_assert, m_boxHi, m_boxLo, and m_current.
Referenced by ~BoxIterator().
|
inline |
Returns true if this BoxIterator's location is within its Box.
References m_boxHi, and m_current.
Referenced by NormalDerivativeNew< dim >::calculateAll(), NormalDerivativeNew< dim >::calculatePhiDerivs(), BlockBaseRegister< FArrayBox >::copyToDstRegister(), PetscSolver< LevelData< FArrayBox > >::create_mat_vec(), NeumannConductivityDomainBC::fillPhiGhost(), DirichletConductivityDomainBC::fillPhiGhost(), NeumannViscousTensorDomainBC::fillVelGhost(), DirichletViscousTensorDomainBC::fillVelGhost(), MixedViscousTensorDomainBC::fillVelGhost(), BinFab< T >::linearIn(), BaseFab< Real >::linearIn(), BinFab< T >::linearOut(), BinFab< T >::linearOutDestructive(), CoefficientInterpolator< LevelData< FluxBox >, LevelData< FArrayBox > >::NewtonRaphson(), BoundaryIterator::next(), BinFab< T >::numItems(), BlockBaseRegister< FArrayBox >::print(), PetscSolver< LevelData< FArrayBox > >::putChomboInPetsc(), PetscSolver< LevelData< FArrayBox > >::putPetscInChombo(), BinFab< T >::reBin(), BaseEBCellFAB< Real >::setCoveredCellVal(), BaseEBFaceFAB< Real >::setCoveredFaceVal(), PetscSolver< LevelData< FArrayBox > >::setup_solver(), PetscSolver< LevelData< FArrayBox > >::solve_mfree_private(), PetscSolver< LevelData< FArrayBox > >::solve_private(), IndicesTransformation::transform(), and ~BoxIterator().
|
inline |
References m_boxHi, and m_boxLo.
Referenced by ~BoxIterator().
|
inline |
References m_boxHi, and m_boxLo.
Referenced by ~BoxIterator().
|
protected |
Referenced by begin(), BoxIterator(), next(), ok(), and operator()().
|
protected |
Referenced by at(), begin(), BoxIterator(), next(), operator()(), and size().
|
protected |
Referenced by at(), begin(), BoxIterator(), next(), ok(), operator()(), and size().