QtRocket
 
Loading...
Searching...
No Matches
Catch::Benchmark::Benchmark Struct Reference

#include <catch_amalgamated.hpp>

Collaboration diagram for Catch::Benchmark::Benchmark:

Public Member Functions

 Benchmark (std::string &&benchmarkName)
 
template<class FUN>
 Benchmark (std::string &&benchmarkName, FUN &&func)
 
template<typename Clock>
ExecutionPlan prepare (const IConfig &cfg, Environment env)
 
template<typename Clock = default_clock>
void run ()
 
template<typename Fun, std::enable_if_t<!Detail::is_related< Fun, Benchmark >::value, int > = 0>
Benchmarkoperator= (Fun func)
 
 operator bool ()
 

Private Attributes

Detail::BenchmarkFunction fun
 
std::string name
 

Constructor & Destructor Documentation

◆ Benchmark() [1/2]

Catch::Benchmark::Benchmark::Benchmark ( std::string && benchmarkName)
inline
Here is the caller graph for this function:

◆ Benchmark() [2/2]

template<class FUN>
Catch::Benchmark::Benchmark::Benchmark ( std::string && benchmarkName,
FUN && func )
inline

Member Function Documentation

◆ operator bool()

Catch::Benchmark::Benchmark::operator bool ( )
inlineexplicit

◆ operator=()

template<typename Fun, std::enable_if_t<!Detail::is_related< Fun, Benchmark >::value, int > = 0>
Benchmark & Catch::Benchmark::Benchmark::operator= ( Fun func)
inline
Here is the call graph for this function:

◆ prepare()

template<typename Clock>
ExecutionPlan Catch::Benchmark::Benchmark::prepare ( const IConfig & cfg,
Environment env )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

template<typename Clock = default_clock>
void Catch::Benchmark::Benchmark::run ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fun

Detail::BenchmarkFunction Catch::Benchmark::Benchmark::fun
private

◆ name

std::string Catch::Benchmark::Benchmark::name
private

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