PRISMS-PF Manual
Loading...
Searching...
No Matches
PRISMS_PF_BEGIN_NAMESPACE::TimerStack Struct Reference

Classes

struct  Meta
 Section depth and parent key. More...
 

Public Member Functions

std::string current_section () const
 Get the current active section.
 
std::string push (const std::string &name)
 Add a new section.
 
void pop ()
 Remove the current section.
 

Public Attributes

std::stack< std::string > active
 Stack of active section names.
 
std::vector< std::string > insertion_order
 List of sections, ordered by insertion order, for the summary.
 
std::map< std::string, Metameta
 Parent and depth of each section.
 

Member Function Documentation

◆ current_section()

std::string PRISMS_PF_BEGIN_NAMESPACE::TimerStack::current_section ( ) const
inline

Get the current active section.

◆ pop()

void PRISMS_PF_BEGIN_NAMESPACE::TimerStack::pop ( )
inline

Remove the current section.

◆ push()

std::string PRISMS_PF_BEGIN_NAMESPACE::TimerStack::push ( const std::string &  name)
inline

Add a new section.

Returns the key string that should be passed to the deal.II timer class.

Member Data Documentation

◆ active

std::stack<std::string> PRISMS_PF_BEGIN_NAMESPACE::TimerStack::active

Stack of active section names.

◆ insertion_order

std::vector<std::string> PRISMS_PF_BEGIN_NAMESPACE::TimerStack::insertion_order

List of sections, ordered by insertion order, for the summary.

◆ meta

std::map<std::string, Meta> PRISMS_PF_BEGIN_NAMESPACE::TimerStack::meta

Parent and depth of each section.


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