Public Member Functions | |
Data (const std::string &title) | |
virtual | ~Data () |
Required. | |
virtual std::string | GetCommand () const =0 |
virtual void | PrintExpression (std::ostream &os) const =0 |
virtual void | PrintDatafile (std::ostream &os) const =0 |
Public Attributes | |
unsigned int | m_references |
std::string | m_title |
std::string | m_extra |
Definition at line 26 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.
Definition at line 62 of file gnuplot.cc.
ns3::GnuplotDataset::Data::~Data | ( | ) | [virtual] |
Required.
Definition at line 69 of file gnuplot.cc.
virtual std::string ns3::GnuplotDataset::Data::GetCommand | ( | ) | const [pure virtual] |
Returns "plot" or "splot".
Implemented in ns3::Gnuplot2dDataset::Data2d, ns3::Gnuplot2dFunction::Function2d, ns3::Gnuplot3dDataset::Data3d, and ns3::Gnuplot3dFunction::Function3d.
virtual void ns3::GnuplotDataset::Data::PrintDatafile | ( | std::ostream & | os | ) | const [pure virtual] |
Print the inline data file contents trailing the plot command. Empty for functions.
Implemented in ns3::Gnuplot2dDataset::Data2d, ns3::Gnuplot2dFunction::Function2d, ns3::Gnuplot3dDataset::Data3d, and ns3::Gnuplot3dFunction::Function3d.
virtual void ns3::GnuplotDataset::Data::PrintExpression | ( | std::ostream & | os | ) | const [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.
Implemented in ns3::Gnuplot2dDataset::Data2d, ns3::Gnuplot2dFunction::Function2d, ns3::Gnuplot3dDataset::Data3d, and ns3::Gnuplot3dFunction::Function3d.
std::string ns3::GnuplotDataset::Data::m_extra |
Definition at line 28 of file gnuplot.cc.
unsigned int ns3::GnuplotDataset::Data::m_references |
Definition at line 25 of file gnuplot.cc.
Referenced by ns3::GnuplotDataset::~GnuplotDataset().
std::string ns3::GnuplotDataset::Data::m_title |
Definition at line 27 of file gnuplot.cc.