GameStatePerfCounter Class Reference

#include <GameState.h>

List of all members.

Public Member Functions

 GameStatePerfCounter (const char *name)
 ~GameStatePerfCounter ()
void start ()
void end ()
const char * getName ()
unsigned int getTotal ()
bool getUsed ()

Protected Attributes

bool used_
std::string name_
unsigned int start_
unsigned int total_


Detailed Description

Definition at line 37 of file GameState.h.


Constructor & Destructor Documentation

GameStatePerfCounter::GameStatePerfCounter ( const char *  name  ) 

Definition at line 31 of file GameState.cpp.

GameStatePerfCounter::~GameStatePerfCounter (  ) 

Definition at line 36 of file GameState.cpp.


Member Function Documentation

void GameStatePerfCounter::start (  ) 

Definition at line 40 of file GameState.cpp.

References start_, and used_.

void GameStatePerfCounter::end (  ) 

Definition at line 46 of file GameState.cpp.

References start_, total_, and used_.

const char* GameStatePerfCounter::getName (  )  [inline]

Definition at line 46 of file GameState.h.

References name_.

Referenced by GameState::clearTimers().

unsigned int GameStatePerfCounter::getTotal (  ) 

Definition at line 53 of file GameState.cpp.

References total_, and used_.

Referenced by GameState::clearTimers().

bool GameStatePerfCounter::getUsed (  )  [inline]

Definition at line 48 of file GameState.h.

References used_.

Referenced by GameState::clearTimers().


Member Data Documentation

bool GameStatePerfCounter::used_ [protected]

Definition at line 51 of file GameState.h.

Referenced by end(), getTotal(), getUsed(), and start().

std::string GameStatePerfCounter::name_ [protected]

Definition at line 52 of file GameState.h.

Referenced by getName().

unsigned int GameStatePerfCounter::start_ [protected]

Definition at line 53 of file GameState.h.

Referenced by end(), and start().

unsigned int GameStatePerfCounter::total_ [protected]

Definition at line 54 of file GameState.h.

Referenced by end(), and getTotal().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:01 2009 for Scorched3D by  doxygen 1.5.3