mmCEsim 0.3.0
mmWave Channel Estimation Simulation
Calc Class Reference

#include <calc.h>

Public Member Functions

 Calc (const std::string &str)
 
std::string as (std::string lang, std::string *msg=nullptr) const
 Convert the Alg CALC contents into a language command. More...
 

Static Public Member Functions

static std::string as (const std::string &str, std::string lang, std::string *msg=nullptr)
 

Private Member Functions

bool _changeOperator (std::string &str, std::string lang, std::string *msg=nullptr) const
 
bool _changeFunction (std::string &str, std::string lang, std::string *msg=nullptr) const
 
bool _changeSuperScript (std::string &str, std::string lang, std::string *msg=nullptr) const
 
bool _changeSubScript (std::string &str, std::string lang, int8_t *d=nullptr, std::string *msg=nullptr) const
 
bool _changeParen (std::string &str, std::string lang, std::string *msg=nullptr) const
 
void _msg (std::string *msg, const std::string &content) const
 
void _addArma (std::string &str, const std::string &func) const
 
void _addMmce (std::string &str, const std::string &func) const
 

Private Attributes

std::string _str
 

Constructor & Destructor Documentation

◆ Calc()

Calc::Calc ( const std::string &  str)

Member Function Documentation

◆ _addArma()

void Calc::_addArma ( std::string &  str,
const std::string &  func 
) const
inlineprivate
Here is the caller graph for this function:

◆ _addMmce()

void Calc::_addMmce ( std::string &  str,
const std::string &  func 
) const
inlineprivate
Here is the caller graph for this function:

◆ _changeFunction()

bool Calc::_changeFunction ( std::string &  str,
std::string  lang,
std::string *  msg = nullptr 
) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _changeOperator()

bool Calc::_changeOperator ( std::string &  str,
std::string  lang,
std::string *  msg = nullptr 
) const
private
Here is the caller graph for this function:

◆ _changeParen()

bool Calc::_changeParen ( std::string &  str,
std::string  lang,
std::string *  msg = nullptr 
) const
private
Here is the caller graph for this function:

◆ _changeSubScript()

bool Calc::_changeSubScript ( std::string &  str,
std::string  lang,
int8_t *  d = nullptr,
std::string *  msg = nullptr 
) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _changeSuperScript()

bool Calc::_changeSuperScript ( std::string &  str,
std::string  lang,
std::string *  msg = nullptr 
) const
private
Here is the caller graph for this function:

◆ _msg()

void Calc::_msg ( std::string *  msg,
const std::string &  content 
) const
inlineprivate
Here is the caller graph for this function:

◆ as() [1/2]

std::string Calc::as ( const std::string &  str,
std::string  lang,
std::string *  msg = nullptr 
)
inlinestatic
Here is the call graph for this function:

◆ as() [2/2]

std::string Calc::as ( std::string  lang,
std::string *  msg = nullptr 
) const

Convert the Alg CALC contents into a language command.

Parameters
langLanguage ("cpp", "py", "matlab" or "octave").
msgPointer to error message string.
Returns
(std::string) The converted string.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _str

std::string Calc::_str
private

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