Pyrogenesis  trunk
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CNetStatsTable Class Reference

ENet connection statistics profiler table. More...

#include <NetStats.h>

Inheritance diagram for CNetStatsTable:
Inheritance graph
[legend]
Collaboration diagram for CNetStatsTable:
Collaboration graph
[legend]

Public Member Functions

 CNetStatsTable ()
 
 CNetStatsTable (const ENetPeer *peer)
 
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...
 
void LatchHostState (const ENetHost *host)
 
- Public Member Functions inherited from AbstractProfileTable
virtual ~AbstractProfileTable ()
 
virtual bool IsHighlightRow (size_t row)
 IsHighlightRow. More...
 

Private Member Functions

 NONCOPYABLE (CNetStatsTable)
 

Private Attributes

const ENetPeerm_Peer
 
std::vector< ProfileColumnm_ColumnDescriptions
 
CMutex m_Mutex
 
std::vector< std::vector< CStr > > m_LatchedData
 

Detailed Description

ENet connection statistics profiler table.

Thread-safety:

Constructor & Destructor Documentation

CNetStatsTable::CNetStatsTable ( )
CNetStatsTable::CNetStatsTable ( const ENetPeer peer)

Member Function Documentation

CStr CNetStatsTable::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.

AbstractProfileTable * CNetStatsTable::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.

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

GetColumnDescriptions.

Returns
A vector describing all columns of the table.

Implements AbstractProfileTable.

CStr CNetStatsTable::GetName ( )
virtual

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

Returns
Descriptive name of this table.

Implements AbstractProfileTable.

size_t CNetStatsTable::GetNumberRows ( )
virtual

GetNumberRows.

Returns
Number of rows in this table.

Implements AbstractProfileTable.

CStr CNetStatsTable::GetTitle ( )
virtual

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

Returns
Title for the table.

Implements AbstractProfileTable.

void CNetStatsTable::LatchHostState ( const ENetHost host)
CNetStatsTable::NONCOPYABLE ( CNetStatsTable  )
private

Member Data Documentation

std::vector<ProfileColumn> CNetStatsTable::m_ColumnDescriptions
private
std::vector<std::vector<CStr> > CNetStatsTable::m_LatchedData
private
CMutex CNetStatsTable::m_Mutex
private
const ENetPeer* CNetStatsTable::m_Peer
private

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