24 #ifndef vtkCacheSizeKeeper_h 25 #define vtkCacheSizeKeeper_h 27 #include "vtkObject.h" 28 #include "vtkPVClientServerCoreRenderingModule.h" 34 void PrintSelf(ostream& os, vtkIndent indent);
49 vtkErrorMacro(
"Cache is full. Cannot add more cached data.");
53 this->CacheSize += kbytes;
63 this->CacheSize = (this->CacheSize > kbytes) ? (this->CacheSize - kbytes) : 0;
70 vtkGetMacro(CacheSize,
unsigned long);
79 vtkGetMacro(CacheLimit,
unsigned long);
80 vtkSetMacro(CacheLimit,
unsigned long);
87 vtkGetMacro(CacheFull,
int);
88 vtkSetMacro(CacheFull,
int);
keeps track of amount of memory consumed by caches in vtkPVUpateSupressor objects.
void FreeCacheSize(unsigned long kbytes)
Report decrease in cache size (in bytes).
void AddCacheSize(unsigned long kbytes)
Report increase in cache size (in kbytes).