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
CNetStatsTable Class Reference

ENet connection statistics profiler table. More...

#include <NetStats.h>

Inheritance diagram for CNetStatsTable:
AbstractProfileTable

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:

Definition at line 36 of file NetStats.h.

Constructor & Destructor Documentation

CNetStatsTable::CNetStatsTable ( )

Definition at line 45 of file NetStats.cpp.

CNetStatsTable::CNetStatsTable ( const ENetPeer peer)

Definition at line 40 of file NetStats.cpp.

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.

Definition at line 86 of file NetStats.cpp.

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.

Definition at line 122 of file NetStats.cpp.

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

GetColumnDescriptions.

Returns
A vector describing all columns of the table.

Implements AbstractProfileTable.

Definition at line 68 of file NetStats.cpp.

CStr CNetStatsTable::GetName ( )
virtual

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

Returns
Descriptive name of this table.

Implements AbstractProfileTable.

Definition at line 50 of file NetStats.cpp.

size_t CNetStatsTable::GetNumberRows ( )
virtual

GetNumberRows.

Returns
Number of rows in this table.

Implements AbstractProfileTable.

Definition at line 63 of file NetStats.cpp.

CStr CNetStatsTable::GetTitle ( )
virtual

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

Returns
Title for the table.

Implements AbstractProfileTable.

Definition at line 55 of file NetStats.cpp.

void CNetStatsTable::LatchHostState ( const ENetHost host)

Definition at line 127 of file NetStats.cpp.

CNetStatsTable::NONCOPYABLE ( CNetStatsTable  )
private

Member Data Documentation

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

Definition at line 54 of file NetStats.h.

std::vector<std::vector<CStr> > CNetStatsTable::m_LatchedData
private

Definition at line 57 of file NetStats.h.

CMutex CNetStatsTable::m_Mutex
private

Definition at line 56 of file NetStats.h.

const ENetPeer* CNetStatsTable::m_Peer
private

Definition at line 53 of file NetStats.h.


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