A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::GnuplotDataset Class Reference

Abstract class to store a plot line to be used by ns3::Gnuplot. More...

#include <gnuplot.h>

+ Inheritance diagram for ns3::GnuplotDataset:
+ Collaboration diagram for ns3::GnuplotDataset:

Classes

struct  Data

Public Member Functions

 GnuplotDataset (const GnuplotDataset &original)
 ~GnuplotDataset ()
GnuplotDatasetoperator= (const GnuplotDataset &original)
void SetExtra (const std::string &extra)
 Add extra formatting parameters to this dataset.
void SetTitle (const std::string &title)
 Change line title.

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 Datam_data

Static Protected Attributes

static std::string m_defaultExtra = ""
 Extra gnuplot parameters set on every newly created dataset.

Friends

class Gnuplot

Detailed Description

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 38 of file gnuplot.h.

Constructor & Destructor Documentation

ns3::GnuplotDataset::GnuplotDataset ( const GnuplotDataset original)

Reference-counting copy constructor.

Definition at line 86 of file gnuplot.cc.

References m_data, and ns3::GnuplotDataset::Data::m_references.

ns3::GnuplotDataset::~GnuplotDataset ( )

Reference-counting destructor.

Definition at line 92 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.

Parameters
datathe reference counted data object representing this dataset.

Definition at line 81 of file gnuplot.cc.

Member Function Documentation

GnuplotDataset & ns3::GnuplotDataset::operator= ( const GnuplotDataset original)

Reference-counting assignment operator.

Definition at line 98 of file gnuplot.cc.

References m_data, and ns3::GnuplotDataset::Data::m_references.

void ns3::GnuplotDataset::SetDefaultExtra ( const std::string &  extra)
static

Change extra formatting style parameters for newly created objects.

Parameters
extraextra formatting

Definition at line 118 of file gnuplot.cc.

References m_defaultExtra.

void ns3::GnuplotDataset::SetExtra ( const std::string &  extra)

Add extra formatting parameters to this dataset.

Parameters
extraextra formatting

Definition at line 123 of file gnuplot.cc.

References m_data, and ns3::GnuplotDataset::Data::m_extra.

Referenced by TestProbabilistic().

+ Here is the caller graph for this function:

void ns3::GnuplotDataset::SetTitle ( const std::string &  title)

Friends And Related Function Documentation

friend class Gnuplot
friend

Friend because it accesses m_data and it's virtual functions directly in GenerateOutput().

Definition at line 79 of file gnuplot.h.

Member Data Documentation

std::string ns3::GnuplotDataset::m_defaultExtra = ""
staticprotected

Extra gnuplot parameters set on every newly created dataset.

Definition at line 84 of file gnuplot.h.

Referenced by SetDefaultExtra().


The documentation for this class was generated from the following files: