VTK
9.1.0
|
LRU cache of XDMF Arrays. More...
#include <vtkXdmf3ArrayKeeper.h>
Inherits std::map< XdmfArray *, unsigned int >.
Public Member Functions | |
vtkXdmf3ArrayKeeper () | |
Constructor. | |
~vtkXdmf3ArrayKeeper () | |
Destructor. | |
void | BumpGeneration () |
Call to mark arrays that will be accessed with a new timestamp. | |
void | Insert (XdmfArray *val) |
Call whenever you a new XDMF array is accessed. | |
void | Release (bool force) |
Call to free all open arrays that are currently open but not in use. | |
vtkXdmf3ArrayKeeper (const vtkXdmf3ArrayKeeper &)=delete | |
LRU cache of XDMF Arrays.
vtkXdmf3ArrayKeeper maintains the in memory cache of recently used XdmfArrays. Each array that is loaded from XDMF is put in the cache and/or marked with the current timestep. A release method frees arrays that have not been recently used.
This file is a helper for the vtkXdmf3Reader and not intended to be part of VTK public API
Definition at line 41 of file vtkXdmf3ArrayKeeper.h.
vtkXdmf3ArrayKeeper::vtkXdmf3ArrayKeeper | ( | ) |
Constructor.
vtkXdmf3ArrayKeeper::~vtkXdmf3ArrayKeeper | ( | ) |
Destructor.
|
delete |
void vtkXdmf3ArrayKeeper::BumpGeneration | ( | ) |
Call to mark arrays that will be accessed with a new timestamp.
void vtkXdmf3ArrayKeeper::Insert | ( | XdmfArray * | val | ) |
Call whenever you a new XDMF array is accessed.
void vtkXdmf3ArrayKeeper::Release | ( | bool | force | ) |
Call to free all open arrays that are currently open but not in use.
Force argument frees all arrays.