Project
Loading...
Searching...
No Matches
TimingDecorator Class Reference

Public Types

using jsonWriter_type = rapidjson::Writer< rapidjson::OStreamWrapper >
 

Public Member Functions

 TimingDecorator ()=default
 
 TimingDecorator (jsonWriter_type &writer)
 
template<typename F , std::enable_if_t<!std::is_void_v< std::invoke_result_t< F > >, bool > = true>
decltype(auto) timeAndLog (const std::string &keyName, const std::string &logMessage, F functor)
 
template<typename F , std::enable_if_t< std::is_void_v< std::invoke_result_t< F > >, bool > = true>
void timeAndLog (const std::string &keyName, const std::string &logMessage, F functor)
 

Detailed Description

Definition at line 81 of file bench_ransTPC.cxx.

Member Typedef Documentation

◆ jsonWriter_type

using TimingDecorator::jsonWriter_type = rapidjson::Writer<rapidjson::OStreamWrapper>

Definition at line 84 of file bench_ransTPC.cxx.

Constructor & Destructor Documentation

◆ TimingDecorator() [1/2]

TimingDecorator::TimingDecorator ( )
default

◆ TimingDecorator() [2/2]

TimingDecorator::TimingDecorator ( jsonWriter_type writer)
inline

Definition at line 87 of file bench_ransTPC.cxx.

Member Function Documentation

◆ timeAndLog() [1/2]

template<typename F , std::enable_if_t<!std::is_void_v< std::invoke_result_t< F > >, bool > = true>
decltype(auto) TimingDecorator::timeAndLog ( const std::string &  keyName,
const std::string &  logMessage,
functor 
)
inline

Definition at line 90 of file bench_ransTPC.cxx.

◆ timeAndLog() [2/2]

template<typename F , std::enable_if_t< std::is_void_v< std::invoke_result_t< F > >, bool > = true>
void TimingDecorator::timeAndLog ( const std::string &  keyName,
const std::string &  logMessage,
functor 
)
inline

Definition at line 104 of file bench_ransTPC.cxx.


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