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

Class of conditions of benchmarks. More...

#include <stat_bench/benchmark_condition.h>

+ Collaboration diagram for stat_bench::BenchmarkCondition:

Public Member Functions

 BenchmarkCondition (const param::ParameterDict &params)
 Constructor.
 
 BenchmarkCondition (std::size_t threads, param::ParameterDict params)
 Constructor.
 
auto params () const noexcept -> const param::ParameterDict &
 Get the parameters.
 
auto threads () const noexcept -> std::size_t
 Get the number of threads.
 

Detailed Description

Class of conditions of benchmarks.

Definition at line 33 of file benchmark_condition.h.

Constructor & Destructor Documentation

◆ BenchmarkCondition() [1/2]

stat_bench::BenchmarkCondition::BenchmarkCondition ( std::size_t threads,
param::ParameterDict params )
inline

Constructor.

Parameters
[in]threadsNumber of threads.
[in]paramsParameters.

Definition at line 41 of file benchmark_condition.h.

◆ BenchmarkCondition() [2/2]

stat_bench::BenchmarkCondition::BenchmarkCondition ( const param::ParameterDict & params)
inlineexplicit

Constructor.

Parameters
[in]paramsParameters.

Definition at line 49 of file benchmark_condition.h.

Member Function Documentation

◆ params()

auto stat_bench::BenchmarkCondition::params ( ) const -> const param::ParameterDict&
inlinenodiscardnoexcept

Get the parameters.

Returns
Parameters.

Definition at line 66 of file benchmark_condition.h.

◆ threads()

auto stat_bench::BenchmarkCondition::threads ( ) const -> std::size_t
inlinenodiscardnoexcept

Get the number of threads.

Returns
Number of threads.

Definition at line 57 of file benchmark_condition.h.


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