Abstract class to store a plot line to be used by ns3::Gnuplot. More...
#include <gnuplot.h>
Classes | |
struct | Data |
Public Member Functions | |
GnuplotDataset (const GnuplotDataset &original) | |
~GnuplotDataset () | |
GnuplotDataset & | operator= (const GnuplotDataset &original) |
void | SetTitle (const std::string &title) |
Change line title. | |
void | SetExtra (const std::string &extra) |
Add extra formatting parameters to this dataset. | |
Static Public Member Functions | |
static void | SetDefaultExtra (const std::string &extra) |
Change extra formatting style parameters for newly created objects. | |
Protected Member Functions | |
GnuplotDataset (struct Data *data) | |
Protected Attributes | |
struct Data * | m_data |
Static Protected Attributes | |
static std::string | m_defaultExtra = "" |
Extra gnuplot parameters set on every newly created dataset. | |
Friends | |
class | Gnuplot |
Abstract class to store a plot line to be used by ns3::Gnuplot.
This class contains a reference counted data object in m_data. The data object contains different structs derived from struct Data by subclasses.
Definition at line 36 of file gnuplot.h.
ns3::GnuplotDataset::GnuplotDataset | ( | const GnuplotDataset & | original | ) |
Reference-counting copy constructor.
Definition at line 82 of file gnuplot.cc.
ns3::GnuplotDataset::~GnuplotDataset | ( | ) |
Reference-counting destructor.
Definition at line 88 of file gnuplot.cc.
References m_data, and ns3::GnuplotDataset::Data::m_references.
ns3::GnuplotDataset::GnuplotDataset | ( | struct Data * | data | ) | [protected] |
Called by constructors of derived classes.
data | the reference counted data object representing this dataset. |
Definition at line 77 of file gnuplot.cc.
GnuplotDataset & ns3::GnuplotDataset::operator= | ( | const GnuplotDataset & | original | ) |
Reference-counting assignment operator.
Definition at line 94 of file gnuplot.cc.
void ns3::GnuplotDataset::SetDefaultExtra | ( | const std::string & | extra | ) | [static] |
Change extra formatting style parameters for newly created objects.
extra | extra formatting |
Definition at line 114 of file gnuplot.cc.
void ns3::GnuplotDataset::SetExtra | ( | const std::string & | extra | ) |
Add extra formatting parameters to this dataset.
extra | extra formatting |
Definition at line 119 of file gnuplot.cc.
References m_defaultExtra.
void ns3::GnuplotDataset::SetTitle | ( | const std::string & | title | ) |
Change line title.
title | the new title string to use for this dataset. |
Definition at line 108 of file gnuplot.cc.
friend class Gnuplot [friend] |
struct Data* ns3::GnuplotDataset::m_data [protected] |
Reference counted data object.
Definition at line 98 of file gnuplot.h.
Referenced by ~GnuplotDataset().
std::string ns3::GnuplotDataset::m_defaultExtra = "" [static, protected] |
Extra gnuplot parameters set on every newly created dataset.
Definition at line 82 of file gnuplot.h.
Referenced by SetExtra().