QMCPACK
TimerList< TIMER > Class Template Reference
+ Inheritance diagram for TimerList< TIMER >:
+ Collaboration diagram for TimerList< TIMER >:

Public Member Functions

template<class T >
 TimerList (TimerManager< TIMER > &manager, const TimerNameList_t< T > &timer_list, timer_levels timer_level=timer_level_fine)
 

Detailed Description

template<class TIMER>
class qmcplusplus::TimerList< TIMER >

Definition at line 159 of file TimerManager.h.

Constructor & Destructor Documentation

◆ TimerList()

TimerList ( TimerManager< TIMER > &  manager,
const TimerNameList_t< T > &  timer_list,
timer_levels  timer_level = timer_level_fine 
)
inline

Definition at line 163 of file TimerManager.h.

166  {
167  this->reserve(timer_list.size());
168  for (std::size_t i = 0; i < timer_list.size(); i++)
169  {
170  if (i != static_cast<std::underlying_type_t<T>>(timer_list[i].id))
171  throw std::runtime_error("Mismatch between index and enumeration");
172  this->push_back(*manager.createTimer(timer_list[i].name, timer_level));
173  }
174  }

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