ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
vtkCacheSizeKeeper Class Reference

keeps track of amount of memory consumed by caches in vtkPVUpateSupressor objects. More...

#include <vtkCacheSizeKeeper.h>

Inherits vtkObject.

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void FreeCacheSize (unsigned long kbytes)
 Report decrease in cache size (in bytes). More...
 
void AddCacheSize (unsigned long kbytes)
 Report increase in cache size (in kbytes). More...
 
virtual unsigned long GetCacheSize ()
 Get the size of cache reported to this keeper. More...
 
virtual unsigned long GetCacheLimit ()
 Get/Set the cache size limit. More...
 
virtual void SetCacheLimit (unsigned long)
 Get/Set the cache size limit. More...
 
virtual int GetCacheFull ()
 Get/Set if the cache is full. More...
 
virtual void SetCacheFull (int)
 Get/Set if the cache is full. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkCacheSizeKeeperSafeDownCast (vtkObject *o)
 
static vtkCacheSizeKeeperGetInstance ()
 Returns the singleton. More...
 

Protected Member Functions

 vtkCacheSizeKeeper ()
 
 ~vtkCacheSizeKeeper ()
 

Static Protected Member Functions

static vtkCacheSizeKeeperNew ()
 

Protected Attributes

unsigned long CacheSize
 
unsigned long CacheLimit
 
int CacheFull
 

Detailed Description

keeps track of amount of memory consumed by caches in vtkPVUpateSupressor objects.

vtkCacheSizeKeeper keeps track of the amount of memory cached by several vtkPVUpdateSuppressor objects.

Definition at line 30 of file vtkCacheSizeKeeper.h.

Member Typedef Documentation

§ Superclass

typedef vtkObject vtkCacheSizeKeeper::Superclass

Definition at line 33 of file vtkCacheSizeKeeper.h.

Constructor & Destructor Documentation

§ vtkCacheSizeKeeper()

vtkCacheSizeKeeper::vtkCacheSizeKeeper ( )
protected

§ ~vtkCacheSizeKeeper()

vtkCacheSizeKeeper::~vtkCacheSizeKeeper ( )
protected

Member Function Documentation

§ GetClassName()

virtual const char* vtkCacheSizeKeeper::GetClassName ( )
virtual

§ IsTypeOf()

static int vtkCacheSizeKeeper::IsTypeOf ( const char *  type)
static

§ IsA()

virtual int vtkCacheSizeKeeper::IsA ( const char *  type)
virtual

§ SafeDownCast()

static vtkCacheSizeKeeper* vtkCacheSizeKeeper::SafeDownCast ( vtkObject *  o)
static

§ PrintSelf()

void vtkCacheSizeKeeper::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

§ GetInstance()

static vtkCacheSizeKeeper* vtkCacheSizeKeeper::GetInstance ( )
static

Returns the singleton.

§ AddCacheSize()

void vtkCacheSizeKeeper::AddCacheSize ( unsigned long  kbytes)
inline

Report increase in cache size (in kbytes).

Definition at line 45 of file vtkCacheSizeKeeper.h.

§ FreeCacheSize()

void vtkCacheSizeKeeper::FreeCacheSize ( unsigned long  kbytes)
inline

Report decrease in cache size (in bytes).

Definition at line 61 of file vtkCacheSizeKeeper.h.

§ GetCacheSize()

virtual unsigned long vtkCacheSizeKeeper::GetCacheSize ( )
virtual

Get the size of cache reported to this keeper.

§ GetCacheLimit()

virtual unsigned long vtkCacheSizeKeeper::GetCacheLimit ( )
virtual

Get/Set the cache size limit.

One can set this separately on each processes. vtkPVView::Update ensures that the cache fullness state is synchronized among all participating processes. (in KBs)

§ SetCacheLimit()

virtual void vtkCacheSizeKeeper::SetCacheLimit ( unsigned  long)
virtual

Get/Set the cache size limit.

One can set this separately on each processes. vtkPVView::Update ensures that the cache fullness state is synchronized among all participating processes. (in KBs)

§ GetCacheFull()

virtual int vtkCacheSizeKeeper::GetCacheFull ( )
virtual

Get/Set if the cache is full.

§ SetCacheFull()

virtual void vtkCacheSizeKeeper::SetCacheFull ( int  )
virtual

Get/Set if the cache is full.

§ New()

static vtkCacheSizeKeeper* vtkCacheSizeKeeper::New ( )
staticprotected

Member Data Documentation

§ CacheSize

unsigned long vtkCacheSizeKeeper::CacheSize
protected

Definition at line 96 of file vtkCacheSizeKeeper.h.

§ CacheLimit

unsigned long vtkCacheSizeKeeper::CacheLimit
protected

Definition at line 97 of file vtkCacheSizeKeeper.h.

§ CacheFull

int vtkCacheSizeKeeper::CacheFull
protected

Definition at line 98 of file vtkCacheSizeKeeper.h.


The documentation for this class was generated from the following file: