VTK
|
LRU cache of XDMF Arrays. More...
#include <vtkXdmf3ArrayKeeper.h>
Inherits map< XdmfArray *, unsigned int >.
Public Member Functions | |
vtkXdmf3ArrayKeeper () | |
~vtkXdmf3ArrayKeeper () | |
void | BumpGeneration () |
void | Insert (XdmfArray *val) |
void | Release (bool force) |
LRU cache of XDMF Arrays.
$Date$ $Revision$
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 VTK-HeaderTest-Exclude: vtkXdmf3ArrayKeeper.h
Definition at line 40 of file vtkXdmf3ArrayKeeper.h.
vtkXdmf3ArrayKeeper::vtkXdmf3ArrayKeeper | ( | ) |
Constructor
vtkXdmf3ArrayKeeper::~vtkXdmf3ArrayKeeper | ( | ) |
Destructor
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.