NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
kernel.hpp File Reference
Include dependency graph for kernel.hpp:

Go to the source code of this file.

Classes

struct  NumeReVariables
 This structure combines a vector of declared variables including their values and respective sizes with a set of variable type counts, which can be used to separate the single vector in multiple vectors containing only a single type of variables. More...
 
class  NumeReKernel
 This class provides the interface to the core of NumeRe. It provides all functionalities, which was done by the main function before and handles the communication to the graphical user interface. More...
 
struct  NumeReTask
 This structure abstracts the necessary information for a task to be done by the graphical user interface. More...
 

Functions

std::string strfill (const std::string &sString, unsigned int nWidth, char cFill=' ', bool limit=false)
 This function fills the passed string up to the width nWidth with the characters cFill. The string will be aligned right. If the bool option limit is true, the string will be shortened to the required size and '...' will be added. More...
 
std::string strlfill (const std::string &sString, unsigned int nWidth, char cFill=' ')
 This function fills the passed string up to the width nWidth with the characters cFill. The string will be aligned left. More...
 
std::string sectionHeadline (const std::string &sString, char cHeadLineSep='-')
 This function provides a headline for the "windows" in the console. More...
 
std::string pointToError (unsigned int nPos)
 This function points to the error indicated by nPos. It draws three circumflexes below the error location. More...
 

Function Documentation

◆ pointToError()

std::string pointToError ( unsigned int  nPos)
inline

This function points to the error indicated by nPos. It draws three circumflexes below the error location.

Parameters
nPosunsigned int
Returns
std::string

Definition at line 482 of file kernel.hpp.

References strfill().

Referenced by NumeReKernel::MainLoop().

Here is the call graph for this function:

◆ sectionHeadline()

std::string sectionHeadline ( const std::string &  sString,
char  cHeadLineSep = '-' 
)
inline

This function provides a headline for the "windows" in the console.

Parameters
sStringconst std::string&
cHeadLineSepchar
Returns
std::string

Definition at line 458 of file kernel.hpp.

References NumeReKernel::nLINE_LENGTH, and toUpperCase().

Referenced by listDefinitions().

Here is the call graph for this function:

◆ strfill()

std::string strfill ( const std::string &  sString,
unsigned int  nWidth,
char  cFill = ' ',
bool  limit = false 
)
inline

This function fills the passed string up to the width nWidth with the characters cFill. The string will be aligned right. If the bool option limit is true, the string will be shortened to the required size and '...' will be added.

Parameters
sStringconst std::string&
nWidthunsigned int
cFillchar
limitbool
Returns
std::string

Definition at line 408 of file kernel.hpp.

Referenced by constructCovarianceMatrix(), drawBar(), fitDataSet(), formatMatrixRow(), NumeReKernel::formatResultOutput(), getParameterTable(), NumeReKernel::handleComposeBlock(), NumeReKernel::handleFlowControls(), NumeReKernel::handleProcedureWrite(), listConstants(), listDeclaredVariables(), make_hline(), pointToError(), printUnits(), NumeReKernel::printVersionInfo(), NumeReKernel::progressBar(), and showMatrixResult().

◆ strlfill()

std::string strlfill ( const std::string &  sString,
unsigned int  nWidth,
char  cFill = ' ' 
)
inline

This function fills the passed string up to the width nWidth with the characters cFill. The string will be aligned left.

Parameters
sStringconst std::string&
nWidthunsigned int
cFillchar
Returns
std::string

Definition at line 438 of file kernel.hpp.

Referenced by plotTableBySize(), and printUnits().