LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
art::ExecutionCounts< ARGS > Class Template Reference

#include "ExecutionCounts.h"

Public Member Functions

template<typename FIELD >
std::size_t times () const
 
template<typename HEAD_FIELD >
void increment ()
 
template<typename HEAD_FIELD , typename... TAIL_FIELDS>
std::enable_if_t<(sizeof...(TAIL_FIELDS) > 0)> increment ()
 
void update (bool const rc)
 
void reset ()
 
template<typename HEAD_FIELD , typename... TAIL_FIELDS>
std::enable_if_t<(sizeof...(TAIL_FIELDS) > 0)> increment ()
 

Private Attributes

std::tuple< ARGS... > counts_
 

Detailed Description

template<typename... ARGS>
class art::ExecutionCounts< ARGS >

Definition at line 31 of file ExecutionCounts.h.

Member Function Documentation

template<typename... ARGS>
template<typename FIELD >
void art::ExecutionCounts< ARGS >::increment ( )

Definition at line 72 of file ExecutionCounts.h.

References art::stats::Visited::value.

Referenced by art::EDProducer::doEvent(), art::EDFilter::doEvent(), art::EDAnalyzer::doEvent(), and art::OutputModule::doEvent().

73  {
74  ++std::get<FIELD>(counts_).value;
75  }
std::string value(boost::any const &)
std::tuple< ARGS... > counts_
template<typename... ARGS>
template<typename HEAD_FIELD , typename... TAIL_FIELDS>
std::enable_if_t<(sizeof...(TAIL_FIELDS) > 0)> art::ExecutionCounts< ARGS >::increment ( )
template<typename... ARGS>
template<typename HEAD_FIELD , typename... TAIL_FIELDS>
std::enable_if_t<(sizeof...(TAIL_FIELDS) > 0)> art::ExecutionCounts< ARGS >::increment ( )

Definition at line 80 of file ExecutionCounts.h.

81  {
82  increment<HEAD_FIELD>();
83  increment<TAIL_FIELDS...>();
84  }
template<typename... ARGS>
void art::ExecutionCounts< ARGS >::reset ( void  )

Definition at line 99 of file ExecutionCounts.h.

100  {
101  counts_ = std::tuple<ARGS...>();
102  }
std::tuple< ARGS... > counts_
template<typename... ARGS>
template<typename FIELD >
std::size_t art::ExecutionCounts< ARGS >::times ( ) const
template<typename... ARGS>
void art::ExecutionCounts< ARGS >::update ( bool const  rc)

Definition at line 88 of file ExecutionCounts.h.

Referenced by art::EDFilter::doEvent().

89  {
90  if (rc) {
91  increment<stats::Passed>();
92  } else {
93  increment<stats::Failed>();
94  }
95  }

Member Data Documentation

template<typename... ARGS>
std::tuple<ARGS...> art::ExecutionCounts< ARGS >::counts_
private

Definition at line 46 of file ExecutionCounts.h.


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