Struct SinglePlotData#

Struct Documentation#

struct SinglePlotData#

Structure that holds data update functions for a single plot.

Public Functions

SinglePlotData(std::string_view title, std::string_view x_data_name, std::function<double()> x_data, std::map<std::string, std::function<PlotDataType()>> y_data)#

Constructor.

Parameters:
  • title – The title of the plot.

  • x_data_name – The name for the x_data.

  • x_data – The function that produces the x_data.

  • y_data – A map whose keys are the y_data names and whose values are functions that produce the y_data.

SinglePlotData(std::string_view title, std::string_view x_data_name, std::function<double()> x_data, std::vector<std::string> y_data_names, std::vector<std::function<PlotDataType()>> y_data_fns)#

Constructor.

Parameters:
  • title – The title of the plot.

  • x_data_name – The name for the x_data.

  • x_data – The function that produces the x_data.

  • y_data_names – The names of the y_data

  • y_data_fns – The functions that produce 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.