 |
VTK
9.0.1
|
Go to the documentation of this file. 1 #ifndef vtkExodusIICache_h
2 #define vtkExodusIICache_h
26 #include "vtkIOExodusModule.h"
70 if (pattern.
Time && this->Time != other.
Time)
82 if (this->Time < other.
Time)
84 else if (this->Time > other.
Time)
92 else if (this->ObjectId > other.
ObjectId)
94 if (this->ArrayId < other.
ArrayId)
209 #endif // vtkExodusIICache_h
vtkDataArray *& Find(const vtkExodusIICacheKey &)
Determine whether a cache entry exists.
bool operator<(const vtkExodusIICacheKey &other) const
vtkExodusIICacheEntry(vtkDataArray *arr)
vtkExodusIICacheLRURef LRUEntry
bool match(const vtkExodusIICacheKey &other, const vtkExodusIICacheKey &pattern) const
vtkExodusIICacheEntry(const vtkExodusIICacheEntry &other)
abstract base class for most VTK objects
abstract superclass for arrays of numeric data
std::map< vtkExodusIICacheKey, vtkExodusIICacheEntry * >::iterator vtkExodusIICacheRef
void Insert(vtkExodusIICacheKey &key, vtkDataArray *value)
Insert an entry into the cache (this can remove other cache entries to make space).
vtkExodusIICacheKey(const vtkExodusIICacheKey &src)
int ReduceToSize(double newSize)
Remove cache entries until the size of the cache is at or below the given size.
std::list< vtkExodusIICacheRef > vtkExodusIICacheLRU
static vtkExodusIICache * New()
std::list< vtkExodusIICacheRef >::iterator vtkExodusIICacheLRURef
int Invalidate(const vtkExodusIICacheKey &key, const vtkExodusIICacheKey &pattern)
Invalidate all cache entries matching a specified pattern, dropping all matches from the cache.
a simple class to control print indentation
std::map< vtkExodusIICacheKey, vtkExodusIICacheEntry * > vtkExodusIICacheSet
vtkExodusIICacheKey(int time, int objType, int objId, int arrId)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArray * GetValue()
double GetSpaceLeft()
See how much cache space is left.
double Capacity
The capacity of the cache (i.e., the maximum size of all arrays it contains) in MiB.
vtkExodusIICacheSet Cache
A least-recently-used (LRU) cache to hold arrays.
~vtkExodusIICache() override
Destructor.
double Size
The current size of the cache (i.e., the size of the all the arrays it currently contains) in MiB.
void SetCacheCapacity(double sizeInMiB)
Set the maximum allowable cache size.
int Invalidate(const vtkExodusIICacheKey &key)
Invalidate a cache entry (drop it from the cache) if the key exists.
vtkExodusIICacheKey & operator=(const vtkExodusIICacheKey &src)
vtkExodusIICacheLRU LRU
The actual LRU list (indices into the cache ordered least to most recently used).
vtkExodusIICache()
Default constructor.
void RecomputeSize()
Avoid (some) FP problems.
void Clear()
Empty the cache.