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

Class of line plots of custom outputs with respect to parameters. More...

#include <stat_bench/plots/parameter_to_output_line_plot.h>

+ Inheritance diagram for stat_bench::plots::ParameterToOutputLinePlot:
+ Collaboration diagram for stat_bench::plots::ParameterToOutputLinePlot:

Public Member Functions

 ParameterToOutputLinePlot (const ParameterToOutputLinePlot &)=delete
 
 ParameterToOutputLinePlot (param::ParameterName parameter_name, CustomOutputName custom_output_name, PlotOptions options)
 Constructor.
 
 ParameterToOutputLinePlot (ParameterToOutputLinePlot &&)=delete
 
 ~ParameterToOutputLinePlot () override=default
 Destructor.
 
auto name_for_file () const -> const util::Utf8String &override
 Get a name for output files.
 
auto operator= (const ParameterToOutputLinePlot &) -> ParameterToOutputLinePlot &=delete
 
auto operator= (ParameterToOutputLinePlot &&) -> ParameterToOutputLinePlot &=delete
 
void write (const measurer::MeasurerName &measurer_name, const BenchmarkGroupName &group_name, const std::vector< measurer::Measurement > &measurements, const std::string &file_path) override
 Write a plot.
 
- Public Member Functions inherited from stat_bench::plots::IPlot
 IPlot ()=default
 Constructor.
 
 IPlot (const IPlot &)=delete
 
 IPlot (IPlot &&)=delete
 
virtual ~IPlot ()=default
 Destructor.
 
auto operator= (const IPlot &) -> IPlot &=delete
 
auto operator= (IPlot &&) -> IPlot &=delete
 

Detailed Description

Class of line plots of custom outputs with respect to parameters.

Definition at line 36 of file parameter_to_output_line_plot.h.

Constructor & Destructor Documentation

◆ ParameterToOutputLinePlot()

stat_bench::plots::ParameterToOutputLinePlot::ParameterToOutputLinePlot ( param::ParameterName parameter_name,
CustomOutputName custom_output_name,
PlotOptions options )

Constructor.

Parameters
[in]parameter_nameParameter name.
[in]custom_output_nameCustom output name.
[in]optionsOptions for the plot.

Definition at line 43 of file parameter_to_output_line_plot.cpp.

Member Function Documentation

◆ name_for_file()

auto stat_bench::plots::ParameterToOutputLinePlot::name_for_file ( ) const -> const util::Utf8String&
nodiscardoverridevirtual

Get a name for output files.

Returns
Name.

Implements stat_bench::plots::IPlot.

Definition at line 52 of file parameter_to_output_line_plot.cpp.

◆ write()

void stat_bench::plots::ParameterToOutputLinePlot::write ( const measurer::MeasurerName & measurer_name,
const BenchmarkGroupName & group_name,
const std::vector< measurer::Measurement > & measurements,
const std::string & file_path )
overridevirtual

Write a plot.

Parameters
[in]measurer_nameMeasurer name.
[in]group_nameGroup name.
[in]measurementsMeasurements.
[in]file_pathFile path of the output.

Implements stat_bench::plots::IPlot.

Definition at line 57 of file parameter_to_output_line_plot.cpp.


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