#include <source/hierarchy/variables/LocallyActiveDataPatchLevelManager.h>
Public Types | |
typedef LocallyActiveDataPatchLevelIterator< DIM > | Iterator |
Public Member Functions | |
LocallyActiveDataPatchLevelManager () | |
LocallyActiveDataPatchLevelManager (const hier::PatchLevel< DIM > &level) | |
LocallyActiveDataPatchLevelManager (const tbox::Pointer< hier::PatchLevel< DIM > > level) | |
~LocallyActiveDataPatchLevelManager () | |
Iterator | getIterator (int patch_data_index) const |
Iterator | getIterator (const tbox::Pointer< hier::Variable< DIM > > variable) const |
tbox::Pointer< hier::PatchLevel< DIM > > | getPatchLevel () const |
bool | checkLevel (const hier::PatchLevel< DIM > &level) const |
bool | checkLevel (const tbox::Pointer< hier::PatchLevel< DIM > > level) const |
bool | checkLevel (const hier::PatchLevel< DIM > *level) const |
void | reset (const hier::PatchLevel< DIM > &level) |
void | reset (const tbox::Pointer< hier::PatchLevel< DIM > > level) |
bool | getPatchDataActive (int patch_data_index, int patch_number) const |
const hier::ComponentSelector & | getAllPatchDataActive (int patch_number) const |
void | setPatchDataActive (int patch_data_index, int patch_number) |
void | setPatchDataActive (const hier::ComponentSelector &active_indices, int patch_number) |
void | setAllPatchDataActive (int patch_number) |
void | setPatchDataActive (const hier::ComponentSelector &active_indices) |
void | setPatchDataInactive (int patch_data_index, int patch_number) |
void | setAllPatchDataInactive (int patch_number) |
void | setAllPatchDataInactive () |
void | clearAllActiveDataInfo () |
bool | checkAllocated (int patch_data_index) const |
void | allocatePatchData (int patch_data_index, double timestamp=0.0, tbox::Pointer< tbox::Arena > pool=0) const |
void | allocateAllPatchData (double timestamp=0.0, tbox::Pointer< tbox::Arena > pool=0) const |
void | allocateAllPatchData (int patch_number, double timestamp=0.0, tbox::Pointer< tbox::Arena > pool=0) const |
void | deallocatePatchData (int patch_data_index) const |
void | deallocateAllPatchData () const |
void | deallocateAllPatchData (int patch_number) const |
void | printClassData (ostream &os=tbox::plog) const |
Friends | |
class | LocallyActiveDataPatchLevelIterator< DIM > |
|
An iterator over patches on the patch level. The iterator will enumerate the patches that live on the local processor and on which a given patch data index is active (see constructor for LocallyActiveDataPatchLevelIterator). Use iterator LocallyActiveDataPatchLevelManager::Iterator instead of LocallyActiveDataPatchLevelIterator<DIM>, since the iterator may be defined as a nested class in the future. |
|
Default constructor for LocallyActiveDataPatchLevelManager class. The object state is invalid, hence the object cannot do anything useful, until it is set using the initialize() member function. |
|
Construct a new LocallyActiveDataPatchLevelManager object and initialize it based on the given patch level reference.
|
|
Construct a new LocallyActiveDataPatchLevelManager object and initialize it based on the given patch level pointer.
|
|
Destructor for LocallyActiveDataPatchLevelManager class frees internal storage. |
|
Return an iterator that will enumerate the patches on the local processor and on which the given patch data index is active.
|
|
Return an iterator that will enumerate the patches on the local processor and on which data for the given variable is active. Note that we assume that a variable is associated with only one patch data index.
|
|
Return pointer to patch level associated with this manager object. |
|
Return true if argument level is same as that with which this LocallyActiveDataPatchLevelManager object was initialized; otherwise return false.
|
|
Return true if argument level is same as that with which this LocallyActiveDataPatchLevelManager object was initialized; otherwise return false.
|
|
Return true if argument level is same as that with which this LocallyActiveDataPatchLevelManager object was initialized; otherwise return false.
|
|
Reset the state of the LocallyActiveDataPatchLevelManager object to that associated with the given level. If the object was previously initialized based on a different level, that information is destroyed. and replaced with information from the argument level. Note that, at that point, it is impossible to recover the manager state associated with the previous level via this object.
|
|
Initialize the state of the LocallyActiveDataPatchLevelManager object to that associated with the given level. If the object was previously initialized based on a different level, that information is destroyed. and replaced with information from the argument level. Note that, at that point, it is impossible to recover the manager state associated with the previous level via this object.
|
|
Check whether given patch data index is active on given patch and return boolean true if data is active on patch; false otherwise.
|
|
Return const reference to component selector indicating active/inactive patch data indices for given patch.
|
|
Set specified patch data active on given patch. Note that this function does not allocate the corresponding patch data.
|
|
Set patch data active/inactive for given patch based on component selector information. Note that this function does not allocate/deallocate the corresponding patch data.
|
|
Set all patch data active for given patch. Note that this function does not allocate the corresponding patch data.
|
|
Set patch data active/inactive for all patches based on component selector information. Note that this function does not allocate/deallocate the corresponding patch data.
|
|
Set specified patch data inactive on given patch. Note that this function does not deallocate the corresponding patch data.
|
|
Set all patch data inactive for given patch. Note that this function does not deallocate the corresponding patch data.
|
|
Set all patch data inactive for all patches. Note that this function does not deallocate any patch data. When assertion checking is active, an assertion will result when the manager has not been initialized with a level. |
|
Clear all information from locally-active data patch level manager object, setting object state to that created by the default constructor. Note that this function does not deallocate any patch data. |
|
Check if data corresponding to given index is allocated on all active patches on the level.
|
|
Allocate data for given patch data index on all level patches on which the data is active. Each allocated patch data object will be stamped with the given time value.
|
|
Allocate all active patch data on all level patches associated with this manager object. Each allocated patch data object will be stamped with the given time value.
|
|
Allocate all active patch data for given patch. Each allocated patch data object will be stamped with the given time value.
|
|
Deallocate data for given patch data index on all level patches on which the data is active. Note that the state of this manager object remains intact after this operation.
|
|
Deallocate all active patch data on all level patches associated with this manager object. Note that the state of this manager object remains intact after this operation. When assertion checking is active, an assertion will result when the manager has not been initialized with a level. |
|
Deallocate all active patch data for given patch. Note that the state of this manager object remains intact after this operation.
|
|
Print all active patch data information contained in the locally-active box set to the specified output stream.
|
|
|