DataDirector API
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
DDD_PerformanceMonitorSystem Class Reference

A collection of DDD_PerformanceMonitors. A singleton. More...

#include <DDD_PerformanceMonitor.h>

Inheritance diagram for DDD_PerformanceMonitorSystem:
DynamicPtrArray< DDD_PerformanceMonitor * >

Public Member Functions

DDD_PerformanceMonitorRegisterPerformanceMonitor (std::string name)
 
DDD_PerformanceMonitorFindMonitor (std::string name)
 
- Public Member Functions inherited from DynamicPtrArray< DDD_PerformanceMonitor * >
unsigned int Size () const
 
 DynamicPtrArray (int initialSize=0)
 
 ~DynamicPtrArray (void)
 
unsigned int Count () const
 
void InsertObject (const DDD_PerformanceMonitor * &obj, unsigned int loc)
 
unsigned int InsertObject (const DDD_PerformanceMonitor * &obj)
 
void PushObject (const DDD_PerformanceMonitor * &obj)
 
void InsertObjectAfter (const DDD_PerformanceMonitor * &obj, unsigned int loc)
 
bool DeleteObject (const DDD_PerformanceMonitor * &obj)
 
bool DeleteObjectAtIndex (unsigned int index)
 
bool RemoveAndDeallocateObjectAtIndex (unsigned int index)
 
int Position (const DDD_PerformanceMonitor * &obj)
 
bool RemoveAndDeallocate (DDD_PerformanceMonitor * &obj)
 
void Swap (unsigned int a, unsigned int b)
 
void EmptyList (void)
 
void ClearList (void)
 
DDD_PerformanceMonitor * & operator[] (int index)
 
const DDD_PerformanceMonitor * & operator[] (int index) const
 
DDD_PerformanceMonitor * * InternalArray (void)
 
DynamicPtrArray< DDD_PerformanceMonitor * > & operator= (const DynamicPtrArray< DDD_PerformanceMonitor * > &right)
 
bool IsEmpty (void) const
 

Static Public Member Functions

static DDD_PerformanceMonitorSystemInstance ()
 

Protected Member Functions

 DDD_PerformanceMonitorSystem ()
 
 ~DDD_PerformanceMonitorSystem ()
 
- Protected Member Functions inherited from DynamicPtrArray< DDD_PerformanceMonitor * >
void GrowArray (void)
 
void Size (unsigned int newSize)
 

Additional Inherited Members

- Protected Attributes inherited from DynamicPtrArray< DDD_PerformanceMonitor * >
unsigned int _count
 
DDD_PerformanceMonitor * * _objects
 

Detailed Description

A collection of DDD_PerformanceMonitors. A singleton.

Constructor & Destructor Documentation

Constructor. Protected because this is a singleton

Destructor. Protected because this is a singleton

Member Function Documentation

DDD_PerformanceMonitor* FindMonitor ( std::string  name)
Returns
Returns a pointer to the performance monitor with the given name or NULL if none was found
Parameters
nameThe name of the monitor to find
static DDD_PerformanceMonitorSystem* Instance ( )
static

Public interface to the singleton

Returns
Returns a pointer to the singleton instance
DDD_PerformanceMonitor* RegisterPerformanceMonitor ( std::string  name)

Register a new performance monitor

Parameters
nameThe name of the new performance monitor. Must be unique.
Returns
A pointer to the new performance monitor. For efficiency the caller should cache this value. Returns NULL if there was already a monitor registered with 'name'

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