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>

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

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
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...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual vtkMTimeType GetMTime ()
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkCacheSizeKeeperSafeDownCast (vtkObject *o)
 
static vtkCacheSizeKeeperGetInstance ()
 Returns the singleton. More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkCacheSizeKeeper ()
 
 ~vtkCacheSizeKeeper () override
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Static Protected Member Functions

static vtkCacheSizeKeeperNew ()
 

Protected Attributes

unsigned long CacheSize
 
unsigned long CacheLimit
 
int CacheFull
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

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

Definition at line 33 of file vtkCacheSizeKeeper.h.

Constructor & Destructor Documentation

◆ vtkCacheSizeKeeper()

vtkCacheSizeKeeper::vtkCacheSizeKeeper ( )
protected

◆ ~vtkCacheSizeKeeper()

vtkCacheSizeKeeper::~vtkCacheSizeKeeper ( )
overrideprotected

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

Reimplemented from vtkObjectBase.

◆ SafeDownCast()

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

◆ PrintSelf()

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

Reimplemented from vtkObject.

◆ 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: