cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
stat_bench::runner::Runner Class Reference

Class of runners of benchmarks. More...

#include <stat_bench/runner/runner.h>

+ Collaboration diagram for stat_bench::runner::Runner:

Public Member Functions

 Runner (bench_impl::BenchmarkCaseRegistry &registry=bench_impl::BenchmarkCaseRegistry::instance())
 Constructor.
 
 Runner (const Config &config, bench_impl::BenchmarkCaseRegistry &registry=bench_impl::BenchmarkCaseRegistry::instance())
 Constructor.
 
 Runner (const Runner &)=delete
 
 Runner (Runner &&)=delete
 
 ~Runner ()
 Destructor.
 
void add (std::shared_ptr< measurer::IMeasurer > measurer)
 Add a measurer.
 
void add (std::shared_ptr< reporter::IReporter > reporter)
 Add a reporter.
 
auto operator= (const Runner &) -> Runner &=delete
 
auto operator= (Runner &&) -> Runner &=delete
 
void run () const
 Run benchmarks.
 

Detailed Description

Class of runners of benchmarks.

Definition at line 39 of file runner.h.

Constructor & Destructor Documentation

◆ Runner() [1/2]

stat_bench::runner::Runner::Runner ( const Config & config,
bench_impl::BenchmarkCaseRegistry & registry = bench_impl::BenchmarkCaseRegistry::instance() )
explicit

Constructor.

Parameters
[in]configConfiguration.
[in]registryRegistry of benchmarks.

Definition at line 48 of file runner.cpp.

◆ Runner() [2/2]

stat_bench::runner::Runner::Runner ( bench_impl::BenchmarkCaseRegistry & registry = bench_impl::BenchmarkCaseRegistry::instance())
explicit

Constructor.

Parameters
[in]registryRegistry of benchmarks.

Definition at line 97 of file runner.cpp.

Member Function Documentation

◆ add() [1/2]

void stat_bench::runner::Runner::add ( std::shared_ptr< measurer::IMeasurer > measurer)
inline

Add a measurer.

Parameters
[in]measurerMeasurer.

Definition at line 74 of file runner.h.

◆ add() [2/2]

void stat_bench::runner::Runner::add ( std::shared_ptr< reporter::IReporter > reporter)
inline

Add a reporter.

Parameters
[in]reporterReporter.

Definition at line 83 of file runner.h.

◆ run()

void stat_bench::runner::Runner::run ( ) const

Run benchmarks.

Definition at line 102 of file runner.cpp.


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