Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkThreadSafeLog Class Reference

#include <vtkThreadSafeLog.h>

Inheritance diagram for vtkThreadSafeLog:

Inheritance graph
[legend]
Collaboration diagram for vtkThreadSafeLog:

Collaboration graph
[legend]
List of all members.

Detailed Description

Saves tag/float entries.

For timing Port stuff. Float values are saved with associated string tags.

Created by:
  • Law, Charles
CVS contributions (if > 5%):
  • Law, Charles (68%)
  • Cedilnik, Andy (19%)
  • Schroeder, Will (8%)
CVS logs (CVSweb):
  • .h (/Parallel/vtkThreadSafeLog.h)
  • .cxx (/Parallel/vtkThreadSafeLog.cxx)

Definition at line 41 of file vtkThreadSafeLog.h.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
void AddEntry (char *tag, float value)
void StartTimer ()
void StopTimer ()
double GetElapsedTime ()
void DumpLog (char *filename, int mode)
void DumpLog (char *filename)

Static Public Member Functions

vtkThreadSafeLogNew ()
int IsTypeOf (const char *type)
vtkThreadSafeLogSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkThreadSafeLog ()
 ~vtkThreadSafeLog ()

Protected Attributes

char * Tags [VTK_THREAD_SAFE_LOG_MAX]
float Values [VTK_THREAD_SAFE_LOG_MAX]
int NumberOfEntries
vtkTimerLogTimer


Member Typedef Documentation

typedef vtkObject vtkThreadSafeLog::Superclass
 

Reimplemented from vtkObject.

Definition at line 45 of file vtkThreadSafeLog.h.


Constructor & Destructor Documentation

vtkThreadSafeLog::vtkThreadSafeLog  )  [protected]
 

vtkThreadSafeLog::~vtkThreadSafeLog  )  [protected]
 


Member Function Documentation

vtkThreadSafeLog* vtkThreadSafeLog::New  )  [static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

virtual const char* vtkThreadSafeLog::GetClassName  )  [virtual]
 

Reimplemented from vtkObject.

int vtkThreadSafeLog::IsTypeOf const char *  type  )  [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

virtual int vtkThreadSafeLog::IsA const char *  type  )  [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

vtkThreadSafeLog* vtkThreadSafeLog::SafeDownCast vtkObject o  )  [static]
 

Reimplemented from vtkObject.

virtual void vtkThreadSafeLog::PrintSelf ostream &  os,
vtkIndent  indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

void vtkThreadSafeLog::StartTimer  ) 
 

some of the timeing features of vtkTimerLog.

void vtkThreadSafeLog::StopTimer  ) 
 

some of the timeing features of vtkTimerLog.

double vtkThreadSafeLog::GetElapsedTime  ) 
 

some of the timeing features of vtkTimerLog.

void vtkThreadSafeLog::AddEntry char *  tag,
float  value
 

Save a tag/value pair.

void vtkThreadSafeLog::DumpLog char *  filename,
int  mode
 

Write the timing table out to a file. if mode is out, then two lines are printed: Tags on first, values on second. If mode is iso::app, then only the line with values is printed.

void vtkThreadSafeLog::DumpLog char *  filename  ) 
 

Write the timing table out to a file. if mode is out, then two lines are printed: Tags on first, values on second. If mode is iso::app, then only the line with values is printed.


Member Data Documentation

char* vtkThreadSafeLog::Tags[VTK_THREAD_SAFE_LOG_MAX] [protected]
 

Definition at line 72 of file vtkThreadSafeLog.h.

float vtkThreadSafeLog::Values[VTK_THREAD_SAFE_LOG_MAX] [protected]
 

Definition at line 73 of file vtkThreadSafeLog.h.

int vtkThreadSafeLog::NumberOfEntries [protected]
 

Definition at line 74 of file vtkThreadSafeLog.h.

vtkTimerLog* vtkThreadSafeLog::Timer [protected]
 

Definition at line 76 of file vtkThreadSafeLog.h.


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