ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
reference_values Struct Reference

A simple reference data reader. More...

#include <mos1d_dg.hpp>

Public Types

typedef std::map< long, std::vector< double > > storage_type
 

Public Member Functions

bool read_file (std::string filename, char delimiter=' ')
 Reads reference data from a CSV text file, where the main index to the data is the cell-id. More...
 
storage_type const & data () const
 

Detailed Description

A simple reference data reader.

Definition at line 128 of file mos1d_dg.hpp.

Member Typedef Documentation

◆ storage_type

typedef std::map<long, std::vector<double> > reference_values::storage_type

Definition at line 130 of file mos1d_dg.hpp.

Member Function Documentation

◆ data()

storage_type const & reference_values::data ( ) const
inline

Definition at line 168 of file mos1d_dg.hpp.

◆ read_file()

bool reference_values::read_file ( std::string  filename,
char  delimiter = ' ' 
)
inline

Reads reference data from a CSV text file, where the main index to the data is the cell-id.

Parameters
filenameThe path/filename of the input file (text file)
delimiterThe value delimiter in the text file, usually it's just a space character
Returns
True on success else false

Definition at line 138 of file mos1d_dg.hpp.


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