Public Member Functions | Private Attributes | List of all members
art::ExecutionCounts< ARGS > Class Template Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/Principal/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.

73  {
74  ++std::get<FIELD>(counts_).value;
75  }
const XML_Char int const XML_Char * value
Definition: expat.h:331
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 ( )

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.

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: