ROOT
ROOT project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PrinterGNUPlot< V > Class Template Reference

Class Daughter of PrinterDAT to write on .dat (inherited) and produce a gnu plot for the results. More...

#include <writer_def.hpp>

Inheritance diagram for PrinterGNUPlot< V >:
Inheritance graph
Collaboration diagram for PrinterGNUPlot< V >:
Collaboration graph

Public Member Functions

 PrinterGNUPlot (const std::string &fname, bool ow_mode)
 Constructor for the PrinterGNUPlot.
 
void generate_gnuplot_script () const
 Calls the generation of the .png output plot.
 
void generate_gnuplot_script () const
 
void generate_gnuplot_script () const
 
- Public Member Functions inherited from PrinterDAT< V >
 PrinterDAT (const std::string &fname, bool ow_mode)
 Constructor for the PrinterDAT class.
 
void write_values (const V &value) override
 Writes a given result into the .dat file.
 
void write_values (const Eigen::Vector2d &value)
 
- Public Member Functions inherited from PrinterFile< V >
 PrinterFile (const std::string &fname, bool ow_mode)
 The constructor for PrinterFile class.
 
- Public Member Functions inherited from PrinterBase< V >
 PrinterBase ()=default
 Default constructor for the PrinterBase class.
 
virtual ~PrinterBase ()=default
 Virtual destructor for the PrinterBase class.
 

Additional Inherited Members

- Protected Attributes inherited from PrinterFile< V >
std::string filename
 The name of output file, without the extension.
 
bool append
 
std::ofstream file
 The actual file, saved in order not to access it at each printing iteration.
 

Detailed Description

template<typename V>
class PrinterGNUPlot< V >

Class Daughter of PrinterDAT to write on .dat (inherited) and produce a gnu plot for the results.

Constructor & Destructor Documentation

◆ PrinterGNUPlot()

template<typename V >
PrinterGNUPlot< V >::PrinterGNUPlot ( const std::string &  fname,
bool  ow_mode 
)

Constructor for the PrinterGNUPlot.

Parameters
fnameThe file to write on
ow_modeOption to overwrite or append the file

Member Function Documentation

◆ generate_gnuplot_script() [1/3]

void PrinterGNUPlot< Eigen::Vector2d >::generate_gnuplot_script ( ) const

◆ generate_gnuplot_script() [2/3]

void PrinterGNUPlot< Eigen::Vector2d >::generate_gnuplot_script ( ) const

◆ generate_gnuplot_script() [3/3]

template<typename V >
void PrinterGNUPlot< V >::generate_gnuplot_script ( ) const

Calls the generation of the .png output plot.


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