Structure storing the data to plot. More...
Public Member Functions | |
Data (const std::string &title) | |
Initializes the reference counter to 1 and sets m_title and m_extra. More... | |
virtual | ~Data () |
Required. More... | |
virtual std::string | GetCommand () const =0 |
Returns the plot type ("plot" or "splot"). More... | |
virtual bool | IsEmpty () const =0 |
Checks to see if this GnuplotDataset is empty. More... | |
virtual void | PrintDataFile (std::ostream &os, bool generateOneOutputFile) const =0 |
Print the inline data file contents trailing the plot command. More... | |
virtual void | PrintExpression (std::ostream &os, bool generateOneOutputFile, unsigned int dataFileDatasetIndex, std::string &dataFileName) const =0 |
Prints the plot description used as argument to (s)plot. More... | |
Public Attributes | |
std::string | m_extra |
Extra parameters for the plot. More... | |
unsigned int | m_references |
ref/unref counter for garbage collection More... | |
std::string | m_title |
Dataset title. More... | |
Structure storing the data to plot.
Derived classes subclass this struct and add their own data fields.
Definition at line 36 of file gnuplot.cc.
ns3::GnuplotDataset::Data::Data | ( | const std::string & | title | ) |
Initializes the reference counter to 1 and sets m_title and m_extra.
title | Dataset title |
Definition at line 95 of file gnuplot.cc.
|
virtual |
Required.
Definition at line 102 of file gnuplot.cc.
|
pure virtual |
Returns the plot type ("plot" or "splot").
Implemented in ns3::Gnuplot3dFunction::Function3d, ns3::Gnuplot3dDataset::Data3d, ns3::Gnuplot2dFunction::Function2d, and ns3::Gnuplot2dDataset::Data2d.
|
pure virtual |
Checks to see if this GnuplotDataset is empty.
Implemented in ns3::Gnuplot3dFunction::Function3d, ns3::Gnuplot3dDataset::Data3d, ns3::Gnuplot2dFunction::Function2d, and ns3::Gnuplot2dDataset::Data2d.
|
pure virtual |
Print the inline data file contents trailing the plot command.
Empty for functions.
os | Output stream |
generateOneOutputFile | If true, generate only one output file. |
Implemented in ns3::Gnuplot3dFunction::Function3d, ns3::Gnuplot3dDataset::Data3d, ns3::Gnuplot2dFunction::Function2d, and ns3::Gnuplot2dDataset::Data2d.
|
pure virtual |
Prints the plot description used as argument to (s)plot.
Either the function expression or a datafile description. Should include m_title and m_extra in the output.
If more than one output file is being generated, i.e. separate data and control files, then the index for the current dataset and the name for the data file are also included.
os | Output stream |
generateOneOutputFile | If true, generate only one output file. |
dataFileDatasetIndex | Dataset Index |
dataFileName | Dataset file name |
Implemented in ns3::Gnuplot3dFunction::Function3d, ns3::Gnuplot3dDataset::Data3d, ns3::Gnuplot2dFunction::Function2d, and ns3::Gnuplot2dDataset::Data2d.
std::string ns3::GnuplotDataset::Data::m_extra |
Extra parameters for the plot.
Definition at line 43 of file gnuplot.cc.
Referenced by ns3::GnuplotDataset::SetExtra().
unsigned int ns3::GnuplotDataset::Data::m_references |
ref/unref counter for garbage collection
Definition at line 40 of file gnuplot.cc.
Referenced by ns3::GnuplotDataset::GnuplotDataset(), ns3::GnuplotDataset::~GnuplotDataset(), and ns3::GnuplotDataset::operator=().
std::string ns3::GnuplotDataset::Data::m_title |
Dataset title.
Definition at line 42 of file gnuplot.cc.
Referenced by ns3::GnuplotDataset::SetTitle().