A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::Gnuplot3dDataset::Data3d Struct Reference
+ Inheritance diagram for ns3::Gnuplot3dDataset::Data3d:
+ Collaboration diagram for ns3::Gnuplot3dDataset::Data3d:

Public Member Functions

 Data3d (const std::string &title)
 
virtual std::string GetCommand () const
 
virtual bool IsEmpty () const
 
virtual void PrintDataFile (std::ostream &os, bool generateOneOutputFile) const
 
virtual void PrintExpression (std::ostream &os, bool generateOneOutputFile, unsigned int dataFileDatasetIndex, std::string &dataFileName) const
 
- Public Member Functions inherited from ns3::GnuplotDataset::Data
 Data (const std::string &title)
 
virtual ~Data ()
 Required. More...
 

Public Attributes

PointSet m_pointset
 
std::string m_style
 
- Public Attributes inherited from ns3::GnuplotDataset::Data
std::string m_extra
 
unsigned int m_references
 
std::string m_title
 

Detailed Description

Definition at line 462 of file gnuplot.cc.

Constructor & Destructor Documentation

ns3::Gnuplot3dDataset::Data3d::Data3d ( const std::string &  title)

Initializes with value from m_defaultStyle.

Definition at line 484 of file gnuplot.cc.

Member Function Documentation

std::string ns3::Gnuplot3dDataset::Data3d::GetCommand ( ) const
virtual

Returns "plot" or "splot".

Implements ns3::GnuplotDataset::Data.

Definition at line 491 of file gnuplot.cc.

bool ns3::Gnuplot3dDataset::Data3d::IsEmpty ( ) const
virtual

Checks to see if this GnuplotDataset is empty.

Returns
indicates if this GnuplotDataset is empty.

Implements ns3::GnuplotDataset::Data.

Definition at line 531 of file gnuplot.cc.

void ns3::Gnuplot3dDataset::Data3d::PrintDataFile ( std::ostream &  os,
bool  generateOneOutputFile 
) const
virtual

Print the inline data file contents trailing the plot command. Empty for functions.

Implements ns3::GnuplotDataset::Data.

Definition at line 515 of file gnuplot.cc.

void ns3::Gnuplot3dDataset::Data3d::PrintExpression ( std::ostream &  os,
bool  generateOneOutputFile,
unsigned int  dataFileDatasetIndex,
std::string &  dataFileName 
) const
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.

Implements ns3::GnuplotDataset::Data.

Definition at line 497 of file gnuplot.cc.

Member Data Documentation

PointSet ns3::Gnuplot3dDataset::Data3d::m_pointset

Definition at line 468 of file gnuplot.cc.

std::string ns3::Gnuplot3dDataset::Data3d::m_style

Definition at line 466 of file gnuplot.cc.


The documentation for this struct was generated from the following file: