Structure storing the function to be used for a 3D plot. More...
Inheritance diagram for ns3::Gnuplot3dFunction::Function3d:
Collaboration diagram for ns3::Gnuplot3dFunction::Function3d:Public Member Functions | |
| Function3d (const std::string &title, const std::string &function) | |
| Initializes with the function and title. | |
| Function3d (const std::string &title, const std::string &function) | |
| Initializes with the function and title. | |
| std::string | GetCommand () const override |
| Returns the plot type ("plot" or "splot"). | |
| std::string | GetCommand () const override |
| Returns the plot type ("plot" or "splot"). | |
| bool | IsEmpty () const override |
| Checks to see if this GnuplotDataset is empty. | |
| bool | IsEmpty () const override |
| Checks to see if this GnuplotDataset is empty. | |
| void | PrintDataFile (std::ostream &os, bool generateOneOutputFile) const override |
| Print the inline data file contents trailing the plot command. | |
| void | PrintDataFile (std::ostream &os, bool generateOneOutputFile) const override |
| Print the inline data file contents trailing the plot command. | |
| void | PrintExpression (std::ostream &os, bool generateOneOutputFile, unsigned int dataFileDatasetIndex, std::string &dataFileName) const override |
| Prints the plot description used as argument to (s)plot. | |
| void | PrintExpression (std::ostream &os, bool generateOneOutputFile, unsigned int dataFileDatasetIndex, std::string &dataFileName) const override |
| Prints the plot description used as argument to (s)plot. | |
Public Member Functions inherited from ns3::GnuplotDataset::Data | |
| Data (const std::string &title) | |
| Initializes the reference counter to 1 and sets m_title and m_extra. | |
| Data (const std::string &title) | |
| Initializes the reference counter to 1 and sets m_title and m_extra. | |
| virtual | ~Data () |
| Required. | |
| virtual | ~Data () |
| Required. | |
Public Attributes | |
| std::string | m_function |
| Function to use. | |
Public Attributes inherited from ns3::GnuplotDataset::Data | |
| std::string | m_extra |
| Extra parameters for the plot. | |
| unsigned int | m_references |
| ref/unref counter for garbage collection | |
| std::string | m_title |
| Dataset title. | |
Structure storing the function to be used for a 3D plot.
Definition at line 639 of file gnuplot.cc.
| ns3::Gnuplot3dFunction::Function3d::Function3d | ( | const std::string & | title, |
| const std::string & | function | ||
| ) |
Initializes with the function and title.
| title | Title of the plot |
| function | Function to plot |
Definition at line 662 of file gnuplot.cc.
| ns3::Gnuplot3dFunction::Function3d::Function3d | ( | const std::string & | title, |
| const std::string & | function | ||
| ) |
Initializes with the function and title.
| title | Title of the plot |
| function | Function to plot |
|
overridevirtual |
Returns the plot type ("plot" or "splot").
Implements ns3::GnuplotDataset::Data.
Definition at line 669 of file gnuplot.cc.
|
overridevirtual |
Returns the plot type ("plot" or "splot").
Implements ns3::GnuplotDataset::Data.
|
overridevirtual |
Checks to see if this GnuplotDataset is empty.
Implements ns3::GnuplotDataset::Data.
Definition at line 699 of file gnuplot.cc.
|
overridevirtual |
Checks to see if this GnuplotDataset is empty.
Implements ns3::GnuplotDataset::Data.
|
overridevirtual |
Print the inline data file contents trailing the plot command.
Empty for functions.
| os | Output stream |
| generateOneOutputFile | If true, generate only one output file. |
Implements ns3::GnuplotDataset::Data.
Definition at line 694 of file gnuplot.cc.
|
overridevirtual |
Print the inline data file contents trailing the plot command.
Empty for functions.
| os | Output stream |
| generateOneOutputFile | If true, generate only one output file. |
Implements ns3::GnuplotDataset::Data.
|
overridevirtual |
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 |
Implements ns3::GnuplotDataset::Data.
Definition at line 675 of file gnuplot.cc.
|
overridevirtual |
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 |
Implements ns3::GnuplotDataset::Data.
| std::string ns3::Gnuplot3dFunction::Function3d::m_function |
Function to use.
Definition at line 643 of file gnuplot.cc.