OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Attributes | List of all members
ProbeReader Class Reference

#include <ProbeReader.h>

Public Member Functions

 ProbeReader (std::string filename)
 
 ~ProbeReader ()
 
void parseFile ()
 
void getVariableValue (int id, std::string varname, double &sim_value)
 

Private Attributes

std::string filename_m
 Probe loss filename. More...
 
int nColumns_m
 Number of variables. More...
 
int nRows_m
 Number of values per variable. More...
 
std::map< std::string, int > columnNamesToID_m
 
std::vector< std::vector< double > > data_m
 

Detailed Description

Definition at line 29 of file ProbeReader.h.

Constructor & Destructor Documentation

◆ ProbeReader()

ProbeReader::ProbeReader ( std::string  filename)
explicit

Definition at line 29 of file ProbeReader.cpp.

◆ ~ProbeReader()

ProbeReader::~ProbeReader ( )

Definition at line 37 of file ProbeReader.cpp.

Member Function Documentation

◆ getVariableValue()

void ProbeReader::getVariableValue ( int  id,
std::string  varname,
double &  sim_value 
)

Definition at line 104 of file ProbeReader.cpp.

References columnNamesToID_m, and data_m.

◆ parseFile()

void ProbeReader::parseFile ( )

Definition at line 40 of file ProbeReader.cpp.

References columnNamesToID_m, data_m, filename_m, nColumns_m, and nRows_m.

Member Data Documentation

◆ columnNamesToID_m

std::map<std::string, int> ProbeReader::columnNamesToID_m
private

Definition at line 50 of file ProbeReader.h.

Referenced by getVariableValue(), and parseFile().

◆ data_m

std::vector< std::vector<double> > ProbeReader::data_m
private

Definition at line 51 of file ProbeReader.h.

Referenced by getVariableValue(), and parseFile().

◆ filename_m

std::string ProbeReader::filename_m
private

Probe loss filename.

Definition at line 42 of file ProbeReader.h.

Referenced by parseFile().

◆ nColumns_m

int ProbeReader::nColumns_m
private

Number of variables.

Definition at line 45 of file ProbeReader.h.

Referenced by parseFile().

◆ nRows_m

int ProbeReader::nRows_m
private

Number of values per variable.

Definition at line 48 of file ProbeReader.h.

Referenced by parseFile().


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