#include <source/hierarchy/variables/LocallyActiveDataPatchLevelManager.h>
SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::LocallyActiveDataPatchLevelIterator | ( | ) | [inline] |
Default constructor for the locally-active data patch iterator. This iterator must be initialized before it can be used to iterate over patches on a level.
SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::LocallyActiveDataPatchLevelIterator | ( | const tbox::Pointer< hier::Variable< DIM > > | variable, | |
const hier::PatchLevel< DIM > & | pl | |||
) |
Constructor for the locally-active data patch iterator. The iterator will enumerate the local patches in the patch level belonging to the local processor on which data for the given variable is active.
variable | smart pointer to variable. | |
pl | const reference to patch level. |
SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::LocallyActiveDataPatchLevelIterator | ( | const tbox::Pointer< hier::Variable< DIM > > | variable, | |
const hier::PatchLevel< DIM > * | pl | |||
) |
Constructor for the locally-active data patch iterator. The iterator will enumerate the local patches in the patch level belonging to the local processor on which data for the given variable is active.
variable | smart pointer to variable. | |
pl | const pointer to patch level. |
SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::LocallyActiveDataPatchLevelIterator | ( | const PatchDataId & | patch_data_id, | |
const hier::PatchLevel< DIM > * | pl, | |||
const tbox::Array< tbox::Pointer< hier::ComponentSelector > > * | active_data_indices | |||
) |
Constructor for the locally-active data patch iterator. The iterator will enumerate the local patches in the patch level belonging to the local processor on which the give patch data index is active.
Note that this is a very special constructor used by the LocallyActiveDataPatchLevelManager class.
patch_data_id | const reference to PatchDataId type indicating the patch data index of interest. | |
pl | const pointer to patch level. | |
active_data_indices | const array of pointers to component selectors describing active data on patch level. |
SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::LocallyActiveDataPatchLevelIterator | ( | const LocallyActiveDataPatchLevelIterator< DIM > & | iterator | ) | [inline] |
Const copy constructor for the locally-active data patch iterator.
SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::~LocallyActiveDataPatchLevelIterator | ( | ) |
Destructor for the iterator releases all internal storage.
void SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::initialize | ( | const tbox::Pointer< hier::Variable< DIM > > | variable, | |
const hier::PatchLevel< DIM > & | pl | |||
) |
Initializer for the locally-active data patch iterator. The iterator will enumerate the local patches in the patch level belonging to the local processor on which data for the given variable is active.
variable | const smart pointer to variable. | |
pl | const reference to patch level. |
void SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::initialize | ( | const tbox::Pointer< hier::Variable< DIM > > | variable, | |
const hier::PatchLevel< DIM > * | pl | |||
) |
Initializer for the locally-active data patch iterator. The iterator will enumerate the local patches in the patch level belonging to the local processor on which data for the given variable is active.
variable | const smart pointer to variable. | |
pl | const pointer to patch level. |
LocallyActiveDataPatchLevelIterator< DIM > & SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::operator= | ( | const LocallyActiveDataPatchLevelIterator< DIM > & | iterator | ) | [inline] |
Assignment operator for the iterator sets calling object to state of the argument iterator.
int SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::operator * | ( | ) | const [inline] |
Extract the integer patch index corresponding to the current patch in the patch level.
int SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::operator() | ( | ) | const [inline] |
Extract the integer patch index corresponding to the current patch in the patch level.
SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::operator bool | ( | ) | const [inline] |
Return true if the iterator points to a valid patch on the level; i.e., patch exists on the level and variable with which iterator is initialized is active on that patch.
SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::operator const void * | ( | ) | const [inline] |
Return non-NULL if the iterator points to a valid patch on the level; i.e., patch exists on the level and variable with which iterator is initialized is active on that patch.
bool SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::operator! | ( | ) | const [inline] |
Return true if the iterator points to a valid patch in the level (patch exists on the level and variable with which iterator is initialized is active on that patch); false otherwise. This operator mimics the !p operation applied to a pointer p.
void SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::operator++ | ( | int | ) |
Increment the iterator to point to the next local patch on which the variable with which iterator is initialized is active on the level.
bool SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::operator== | ( | const LocallyActiveDataPatchLevelIterator< DIM > & | iterator | ) | const [inline] |
Test whether two iterators point to the same patch index.
bool SAMRAI::hier::LocallyActiveDataPatchLevelIterator< DIM >::operator!= | ( | const LocallyActiveDataPatchLevelIterator< DIM > & | iterator | ) | const [inline] |
Test whether two iterators point to different patch indices.