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

Class of configurations of parameters. More...

#include <stat_bench/param/parameter_config.h>

+ Collaboration diagram for stat_bench::param::ParameterConfig:

Public Member Functions

 ParameterConfig ()=default
 Constructor.
 
template<typename T>
auto add (const ParameterName &param_name) -> std::shared_ptr< ParameterValueVector< T > >
 Add a parameter.
 
auto create_generator () const
 Create a generator of parameter dictionaries.
 
auto has (const ParameterName &param_name) const -> bool
 Check whether a parameter exists.
 

Detailed Description

Class of configurations of parameters.

Definition at line 37 of file parameter_config.h.

Member Function Documentation

◆ add()

template<typename T>
auto stat_bench::param::ParameterConfig::add ( const ParameterName & param_name) -> std::shared_ptr<ParameterValueVector<T>>
inlinenodiscard

Add a parameter.

Template Parameters
TType of parameter values.
Parameters
[in]param_nameParameter name.
Returns
Vector of parameter values.

Definition at line 52 of file parameter_config.h.

◆ create_generator()

auto stat_bench::param::ParameterConfig::create_generator ( ) const
inlinenodiscard

Create a generator of parameter dictionaries.

Returns
Generator.

Definition at line 78 of file parameter_config.h.

◆ has()

auto stat_bench::param::ParameterConfig::has ( const ParameterName & param_name) const -> bool
inlinenodiscard

Check whether a parameter exists.

Parameters
[in]param_nameParameter name.
Returns
Whether the parameter with the given name exists.

Definition at line 65 of file parameter_config.h.


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