ParaView
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
vtkCacheSizeKeeper Class Reference

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

#include <vtkCacheSizeKeeper.h>

Inheritance diagram for vtkCacheSizeKeeper:
Inheritance graph
[legend]
Collaboration diagram for vtkCacheSizeKeeper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void AddCacheSize (unsigned long kbytes)
void FreeCacheSize (unsigned long kbytes)
virtual unsigned long GetCacheSize ()
virtual unsigned long GetCacheLimit ()
virtual void SetCacheLimit (unsigned long)
virtual int GetCacheFull ()
virtual void SetCacheFull (int)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkCacheSizeKeeperSafeDownCast (vtkObject *o)
static vtkCacheSizeKeeperGetInstance ()

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 28 of file vtkCacheSizeKeeper.h.


Constructor & Destructor Documentation

vtkCacheSizeKeeper::vtkCacheSizeKeeper ( ) [protected]
vtkCacheSizeKeeper::~vtkCacheSizeKeeper ( ) [protected]

Member Function Documentation

virtual const char* vtkCacheSizeKeeper::GetClassName ( ) [virtual]

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

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

Reimplemented from vtkObject.

static vtkCacheSizeKeeper* vtkCacheSizeKeeper::GetInstance ( ) [static]

Returns the singleton.

void vtkCacheSizeKeeper::AddCacheSize ( unsigned long  kbytes) [inline]

Report increase in cache size (in kbytes).

Definition at line 39 of file vtkCacheSizeKeeper.h.

void vtkCacheSizeKeeper::FreeCacheSize ( unsigned long  kbytes) [inline]

Report decrease in cache size (in bytes).

Definition at line 54 of file vtkCacheSizeKeeper.h.

virtual unsigned long vtkCacheSizeKeeper::GetCacheSize ( ) [virtual]

Get the size of cache reported to this keeper.

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)

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)

virtual int vtkCacheSizeKeeper::GetCacheFull ( ) [virtual]

Get/Set if the cache is full.

virtual void vtkCacheSizeKeeper::SetCacheFull ( int  ) [virtual]

Get/Set if the cache is full.

static vtkCacheSizeKeeper* vtkCacheSizeKeeper::New ( ) [static, protected]

Reimplemented from vtkObject.


Member Data Documentation

unsigned long vtkCacheSizeKeeper::CacheSize [protected]

Definition at line 85 of file vtkCacheSizeKeeper.h.

unsigned long vtkCacheSizeKeeper::CacheLimit [protected]

Definition at line 86 of file vtkCacheSizeKeeper.h.

Definition at line 87 of file vtkCacheSizeKeeper.h.


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