Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CScriptStatsTable Class Reference

#include <ScriptStats.h>

Inheritance diagram for CScriptStatsTable:
AbstractProfileTable

Public Member Functions

 CScriptStatsTable ()
 
void Add (const ScriptInterface *scriptInterface, const std::string &title)
 
void Remove (const ScriptInterface *scriptInterface)
 
virtual CStr GetName ()
 GetName: Short descriptive name of this table (should be static). More...
 
virtual CStr GetTitle ()
 GetTitle: Longer, explanatory text (can be dynamic). More...
 
virtual size_t GetNumberRows ()
 GetNumberRows. More...
 
virtual const std::vector
< ProfileColumn > & 
GetColumns ()
 GetColumnDescriptions. More...
 
virtual CStr GetCellText (size_t row, size_t col)
 GetCellText. More...
 
virtual AbstractProfileTableGetChild (size_t row)
 GetChild: Return a row's child table if the child is expandable. More...
 
- Public Member Functions inherited from AbstractProfileTable
virtual ~AbstractProfileTable ()
 
virtual bool IsHighlightRow (size_t row)
 IsHighlightRow. More...
 

Private Member Functions

 NONCOPYABLE (CScriptStatsTable)
 

Private Attributes

std::vector< std::pair< const
ScriptInterface *, std::string > > 
m_ScriptInterfaces
 
std::vector< ProfileColumnm_ColumnDescriptions
 

Detailed Description

Definition at line 25 of file ScriptStats.h.

Constructor & Destructor Documentation

CScriptStatsTable::CScriptStatsTable ( )

Definition at line 37 of file ScriptStats.cpp.

Member Function Documentation

void CScriptStatsTable::Add ( const ScriptInterface scriptInterface,
const std::string &  title 
)

Definition at line 41 of file ScriptStats.cpp.

CStr CScriptStatsTable::GetCellText ( size_t  row,
size_t  col 
)
virtual

GetCellText.

Parameters
rowRow index (the first row has index 0).
colColumn index (the first column has index 0).
Returns
Text to be displayed in the given cell.

Implements AbstractProfileTable.

Definition at line 81 of file ScriptStats.cpp.

AbstractProfileTable * CScriptStatsTable::GetChild ( size_t  row)
virtual

GetChild: Return a row's child table if the child is expandable.

Parameters
rowRow index (the first row has index 0).
Returns
Pointer to the child table if the given row has one. Otherwise, return 0.

Implements AbstractProfileTable.

Definition at line 118 of file ScriptStats.cpp.

const std::vector< ProfileColumn > & CScriptStatsTable::GetColumns ( )
virtual

GetColumnDescriptions.

Returns
A vector describing all columns of the table.

Implements AbstractProfileTable.

Definition at line 72 of file ScriptStats.cpp.

CStr CScriptStatsTable::GetName ( )
virtual

GetName: Short descriptive name of this table (should be static).

Returns
Descriptive name of this table.

Implements AbstractProfileTable.

Definition at line 57 of file ScriptStats.cpp.

size_t CScriptStatsTable::GetNumberRows ( )
virtual

GetNumberRows.

Returns
Number of rows in this table.

Implements AbstractProfileTable.

Definition at line 67 of file ScriptStats.cpp.

CStr CScriptStatsTable::GetTitle ( )
virtual

GetTitle: Longer, explanatory text (can be dynamic).

Returns
Title for the table.

Implements AbstractProfileTable.

Definition at line 62 of file ScriptStats.cpp.

CScriptStatsTable::NONCOPYABLE ( CScriptStatsTable  )
private
void CScriptStatsTable::Remove ( const ScriptInterface scriptInterface)

Definition at line 46 of file ScriptStats.cpp.

Member Data Documentation

std::vector<ProfileColumn> CScriptStatsTable::m_ColumnDescriptions
private

Definition at line 43 of file ScriptStats.h.

std::vector<std::pair<const ScriptInterface*, std::string> > CScriptStatsTable::m_ScriptInterfaces
private

Definition at line 42 of file ScriptStats.h.


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