cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
case_impl.h File Reference

Definition of STAT_BENCH_IMPL_CASE_IMPL macro. More...

+ Include dependency graph for case_impl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STAT_BENCH_IMPL_CASE_IMPL( CLASS_NAME, REGISTER_NAME, GROUP_NAME, CASE_NAME)
 Macro to define a case.
 
#define STAT_BENCH_IMPL_CASE_WITH_FIXTURE_IMPL( CLASS_NAME, REGISTER_NAME, FIXTURE_NAME, GROUP_NAME, CASE_NAME)
 Macro to define a case using a fixture.
 

Detailed Description

Definition of STAT_BENCH_IMPL_CASE_IMPL macro.

Definition in file case_impl.h.

Macro Definition Documentation

◆ STAT_BENCH_IMPL_CASE_IMPL

#define STAT_BENCH_IMPL_CASE_IMPL ( CLASS_NAME,
REGISTER_NAME,
GROUP_NAME,
CASE_NAME )
Value:
STAT_BENCH_IMPL_CASE_WITH_FIXTURE_IMPL(CLASS_NAME, REGISTER_NAME, \
::stat_bench::bench_impl::NullFixture, GROUP_NAME, CASE_NAME)
#define STAT_BENCH_IMPL_CASE_WITH_FIXTURE_IMPL( CLASS_NAME, REGISTER_NAME, FIXTURE_NAME, GROUP_NAME, CASE_NAME)
Macro to define a case using a fixture.
Definition case_impl.h:37
Class of fixtures without set up and tear down operations.

Macro to define a case.

Parameters
[in]CLASS_NAMEClass name.
[in]REGISTER_NAMEBenchmarkCaseRegister variable name.
[in]GROUP_NAMEGroup name.
[in]CASE_NAMECase name.

Definition at line 67 of file case_impl.h.

◆ STAT_BENCH_IMPL_CASE_WITH_FIXTURE_IMPL

#define STAT_BENCH_IMPL_CASE_WITH_FIXTURE_IMPL ( CLASS_NAME,
REGISTER_NAME,
FIXTURE_NAME,
GROUP_NAME,
CASE_NAME )
Value:
\
namespace { \
\
class CLASS_NAME final \
: public ::stat_bench::bench_impl::BenchCaseHelper<FIXTURE_NAME> { \
public: \
CLASS_NAME() \
\
void run() override; \
}; \
\
static const ::stat_bench::bench_impl::BenchmarkCaseRegister<CLASS_NAME> \
REGISTER_NAME; \
\
} /* namespace */ \
\
void CLASS_NAME::run()
Class of names of cases of benchmarks.
Class of names of groups of benchmarks.
Class to help definition of cases in benchmarks.
BenchCaseHelper(const BenchmarkGroupName &group_name, const BenchmarkCaseName &case_name)
Constructor.

Macro to define a case using a fixture.

Parameters
[in]CLASS_NAMEClass name.
[in]REGISTER_NAMEBenchmarkCaseRegister variable name.
[in]FIXTURE_NAMEFixture name.
[in]GROUP_NAMEGroup name.
[in]CASE_NAMECase name.

Definition at line 37 of file case_impl.h.