Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable Class Reference
Inheritance diagram for anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable:
Collaboration diagram for anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable:

Public Member Functions

 CRendererBackendStatsTable (const Renderer::Backend::IDevice &device)
 
CStr GetName () override
 GetName: Short descriptive name of this table (should be static). More...
 
CStr GetTitle () override
 GetTitle: Longer, explanatory text (can be dynamic). More...
 
size_t GetNumberRows () override
 GetNumberRows. More...
 
const std::vector< ProfileColumn > & GetColumns () override
 GetColumnDescriptions. More...
 
AbstractProfileTable * GetChild (size_t) override
 GetChild: Return a row's child table if the child is expandable. More...
 
CStr GetCellText (size_t row, size_t col) override
 GetCellText. More...
 
void MakeOutdated ()
 
- Public Member Functions inherited from AbstractProfileTable
virtual ~AbstractProfileTable ()
 
virtual CStr GetName ()=0
 GetName: Short descriptive name of this table (should be static). More...
 
virtual CStr GetTitle ()=0
 GetTitle: Longer, explanatory text (can be dynamic). More...
 
virtual size_t GetNumberRows ()=0
 GetNumberRows. More...
 
virtual const std::vector< ProfileColumn > & GetColumns ()=0
 GetColumnDescriptions. More...
 
virtual CStr GetCellText (size_t row, size_t col)=0
 GetCellText. More...
 
virtual AbstractProfileTable * GetChild (size_t row)=0
 GetChild: Return a row's child table if the child is expandable. More...
 
virtual bool IsHighlightRow (size_t)
 IsHighlightRow. More...
 

Private Member Functions

void UpdateIfNeeded ()
 

Private Attributes

const Renderer::Backend::IDevice & m_Device
 
std::vector< ProfileColumn > m_ColumnDescriptions
 
Renderer::Backend::IDevice::StatisticsVector m_Statistics
 
bool m_Outdated {true}
 

Constructor & Destructor Documentation

◆ CRendererBackendStatsTable()

anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::CRendererBackendStatsTable ( const Renderer::Backend::IDevice &  device)
inline

Member Function Documentation

◆ GetCellText()

CStr anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::GetCellText ( size_t  row,
size_t  col 
)
inlineoverridevirtual

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.

◆ GetChild()

AbstractProfileTable * anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::GetChild ( size_t  row)
inlineoverridevirtual

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.

◆ GetColumns()

const std::vector< ProfileColumn > & anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::GetColumns ( )
inlineoverridevirtual

GetColumnDescriptions.

Returns
A vector describing all columns of the table.

Implements AbstractProfileTable.

◆ GetName()

CStr anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::GetName ( )
inlineoverridevirtual

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

Returns
Descriptive name of this table.

Implements AbstractProfileTable.

◆ GetNumberRows()

size_t anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::GetNumberRows ( )
inlineoverridevirtual

GetNumberRows.

Returns
Number of rows in this table.

Implements AbstractProfileTable.

◆ GetTitle()

CStr anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::GetTitle ( )
inlineoverridevirtual

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

Returns
Title for the table.

Implements AbstractProfileTable.

◆ MakeOutdated()

void anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::MakeOutdated ( )
inline

◆ UpdateIfNeeded()

void anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::UpdateIfNeeded ( )
inlineprivate

Member Data Documentation

◆ m_ColumnDescriptions

std::vector<ProfileColumn> anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::m_ColumnDescriptions
private

◆ m_Device

const Renderer::Backend::IDevice& anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::m_Device
private

◆ m_Outdated

bool anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::m_Outdated {true}
private

◆ m_Statistics

Renderer::Backend::IDevice::StatisticsVector anonymous_namespace{Renderer.cpp}::CRendererBackendStatsTable::m_Statistics
private

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