Struct SinglePlotData#
Defined in File DataPlotter.h
Struct Documentation#
-
struct SinglePlotData#
Structure that holds data update functions for a single plot.
Public Functions
-
SinglePlotData(std::string_view title, XDataFnType x_data, std::vector<PlotDataFnType> y_data)#
Constructor.
- Parameters:
title – The title of the plot.
x_data – The x data for plotting. This includes the name and function that produces the x data.
y_data – The y data for plotting. This includes the names, functions, and sizes of the y data.
-
SinglePlotData(const SinglePlotData &other)#
Copy constructor.
- Parameters:
other – The data to copy from.
-
SinglePlotData(SinglePlotData &&other) noexcept#
Move constructor.
- Parameters:
other – The data to move from.
-
SinglePlotData &operator=(const SinglePlotData &other)#
Copy assignment operator.
- Parameters:
other – The data to copy from.
- Returns:
A reference to the newly assigned SinglePlotData.
-
SinglePlotData &operator=(SinglePlotData &&other) noexcept#
Move assignment operator.
- Parameters:
other – The data to copy from.
- Returns:
A reference to the newly assigned SinglePlotData.
Public Members
-
std::string title#
The title of the plot.
-
std::string x_data_name#
The name of the x_data.
-
std::function<double()> x_data#
The function that produces the x_data.
-
std::vector<std::string> y_data_names#
The y_data names.
-
std::vector<std::function<PlotDataType()>> y_data_fns#
The y_data functions.
-
std::vector<int> y_data_sizes#
The y_data function sizes.
-
SinglePlotData(std::string_view title, XDataFnType x_data, std::vector<PlotDataFnType> y_data)#