Class SAMRAIDataCache is a utility class for caching cloned SAMRAI patch data. Patch data are allocated as needed and should not be deallocated by the caller.
#include <ibtk/SAMRAIDataCache.h>
◆ key_type
◆ SAMRAIDataCache() [1/2]
| IBTK::SAMRAIDataCache::SAMRAIDataCache |
( |
| ) |
|
|
default |
◆ ~SAMRAIDataCache()
| IBTK::SAMRAIDataCache::~SAMRAIDataCache |
( |
| ) |
|
◆ SAMRAIDataCache() [2/2]
◆ setPatchHierarchy()
- Parameters
-
| [in] | hierarchy | The patch hierarchy |
◆ resetLevels()
| void IBTK::SAMRAIDataCache::resetLevels |
( |
int |
coarsest_ln, |
|
|
int |
finest_ln |
|
) |
| |
- Parameters
-
| [in] | coarsest_ln | The coarsest level number |
| [in] | finest_ln | The finest level number |
◆ getCoarsestLevelNumber()
| int IBTK::SAMRAIDataCache::getCoarsestLevelNumber |
( |
| ) |
const |
Return the coarsest patch level for which scratch data is allocated.
◆ getFinestLevelNumber()
| int IBTK::SAMRAIDataCache::getFinestLevelNumber |
( |
| ) |
const |
Return the finest patch level for which scratch data is allocated.
◆ getCachedPatchDataIndex()
- Parameters
-
| [in] | idx | The patch data index clone or lookup. |
- Returns
- The cached patch data index.
◆ lookupCachedPatchDataIndex()
| int IBTK::SAMRAIDataCache::lookupCachedPatchDataIndex |
( |
int |
idx | ) |
|
|
private |
- Parameters
-
| [in] | idx | The patch data index clone or lookup. |
- Returns
- The cached patch data index.
- Note
- Patch data indices should be restored to the caching object via restoreCachedPatchDataIndex().
◆ restoreCachedPatchDataIndex()
| void IBTK::SAMRAIDataCache::restoreCachedPatchDataIndex |
( |
int |
cached_idx | ) |
|
|
private |
◆ operator=()
◆ construct_data_descriptor()
| static key_type IBTK::SAMRAIDataCache::construct_data_descriptor |
( |
int |
idx | ) |
|
|
staticprivate |
◆ d_hierarchy
◆ d_coarsest_ln
◆ d_finest_ln
◆ d_available_data_idx_map
| std::multimap<key_type, int> IBTK::SAMRAIDataCache::d_available_data_idx_map |
|
private |
◆ d_unavailable_data_idx_map
| std::multimap<key_type, int> IBTK::SAMRAIDataCache::d_unavailable_data_idx_map |
|
private |
◆ d_all_cloned_patch_data_idxs
| std::set<int> IBTK::SAMRAIDataCache::d_all_cloned_patch_data_idxs |
|
private |
The documentation for this class was generated from the following file: