VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtPerformanceStatsManager Class Reference

Manager for sets of performance stats. More...

Inheritance diagram for makVrv::DtPerformanceStatsManager:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::vector< std::string > NameList
 List of stats set names.

Public Member Functions

virtual ~DtPerformanceStatsManager ()
 DTOR.
virtual void add (const std::string &statsSetName, DtStatsSet *statsSet)
 Add a new stats set to the manager.
virtual void remove (const std::string &statsSetName)
 Remove a stats set from the manager.
virtual DtStatsSetfind (const std::string &statsSetName)
 Find a stats set by name.
virtual void setActive (const std::string &statsSetName)
 Set the currently active stats set by name.
virtual DtStatsSetactiveSet ()
 Get the currently active stats set.
virtual void tickStats (double tickTime)
 Update the stats sets with the last tick time.
NameList names () const
 Make a list of the current stats set names.

Static Public Member Functions

static DtPerformanceStatsManagerinstance (DtDe &de)
 Get the performance stats manager instance for the display engine.

Protected Types

typedef boost::unordered_map
< std::string, DtStatsSet * > 
PerformanceStatsMap

Protected Member Functions

 DtPerformanceStatsManager (DtDe &de)
 The CTOR.

Protected Attributes

DtDemyDe
DtPerformanceStatsManagerSignalermySignaler
DtStatsSetmyActiveStatsSet
PerformanceStatsMap myStatsSets

Detailed Description

Manager for sets of performance stats.

Provides centralized access to stats sets and controls which set is currently displayed


Member Typedef Documentation

typedef std::vector<std::string> makVrv::DtPerformanceStatsManager::NameList

List of stats set names.

typedef boost::unordered_map<std::string, DtStatsSet*> makVrv::DtPerformanceStatsManager::PerformanceStatsMap [protected]

Constructor & Destructor Documentation

DTOR.

The CTOR.


Member Function Documentation

Get the performance stats manager instance for the display engine.

virtual void makVrv::DtPerformanceStatsManager::add ( const std::string &  statsSetName,
DtStatsSet statsSet 
) [virtual]

Add a new stats set to the manager.

Transfers ownership If no stats set is currently active, also sets the active stats set to the newly added set.

virtual void makVrv::DtPerformanceStatsManager::remove ( const std::string &  statsSetName) [virtual]

Remove a stats set from the manager.

Frees the stats set's memory

virtual DtStatsSet* makVrv::DtPerformanceStatsManager::find ( const std::string &  statsSetName) [virtual]

Find a stats set by name.

Returns null if no matching set is found

virtual void makVrv::DtPerformanceStatsManager::setActive ( const std::string &  statsSetName) [virtual]

Set the currently active stats set by name.

Throws DtInvalidInput if no matching set exists Currently active stats set is displayed by the performance stats overlay (or other display mechanism)

Get the currently active stats set.

Can return null if no sets exist

virtual void makVrv::DtPerformanceStatsManager::tickStats ( double  tickTime) [virtual]

Update the stats sets with the last tick time.

This defines the boundary of the frame that we use to calculate stats

Make a list of the current stats set names.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)