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

Class to write on .dat the result - daughter of FilePrinter and Mother of GnuPlotPrinter. More...

#include <writer_def.hpp>

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

Public Member Functions

 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 PrinterDAT< V >

Class to write on .dat the result - daughter of FilePrinter and Mother of GnuPlotPrinter.

Constructor & Destructor Documentation

◆ PrinterDAT()

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

Constructor for the PrinterDAT class.

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

Member Function Documentation

◆ write_values() [1/2]

void PrinterDAT< Eigen::Vector2d >::write_values ( const Eigen::Vector2d &  value)

◆ write_values() [2/2]

template<typename V >
void PrinterDAT< V >::write_values ( const V &  value)
overridevirtual

Writes a given result into the .dat file.

Parameters
valueThe value to write

Implements PrinterBase< V >.


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