NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class is the variable factory used by procedure instances to create their local variables and resolve calls to them. More...
#include <procedurevarfactory.hpp>
Public Member Functions | |
ProcedureVarFactory () | |
Constructor. More... | |
ProcedureVarFactory (Procedure *_procedure, const std::string &sProc, unsigned int currentProc, bool _inliningMode=false) | |
General constructor from an already available procedure instance. More... | |
~ProcedureVarFactory () | |
Destructor. More... | |
void | reset () |
Resets the object. More... | |
bool | delayDeletionOfReturnedTable (const std::string &sTableName) |
Searches for a local table or a local table in the arguments with the corresponding identifier, deletes its name from the map and returns whether the local table was found. More... | |
bool | isReference (const std::string &sArgName) const |
Returns whether the passed argument representation (i.e. local variable name) is actually a reference from the outside. More... | |
std::map< std::string, std::string > | createProcedureArguments (std::string sArgumentList, std::string sArgumentValues) |
This member function will create the procedure arguments for the current procedure. More... | |
void | createLocalVars (std::string sVarList) |
This member function will create the local numerical variables for the current procedure. More... | |
void | createLocalStrings (std::string sStringList) |
This member function will create the local string variables for the current procedure. More... | |
void | createLocalTables (std::string sTableList) |
This member function will create the local tables for the current procedure. More... | |
void | createLocalClusters (std::string sClusterList) |
This member function will create the local clusters for the current procedure. More... | |
std::string | createTestStatsCluster () |
Creates a special cluster containing the test statistics. More... | |
std::string | resolveVariables (const std::string &sProcedureCommandLine) |
Public Attributes | |
std::map< std::string, std::string > | mArguments |
std::map< std::string, std::pair< std::string, mu::value_type * > > | mLocalVars |
std::map< std::string, std::pair< std::string, std::string > > | mLocalStrings |
std::map< std::string, std::string > | mLocalTables |
std::map< std::string, std::string > | mLocalClusters |
std::string | sInlineVarDef |
std::string | sInlineStringDef |
std::vector< std::string > | vInlineArgDef |
Private Types | |
enum | VarType { NUMTYPE , STRINGTYPE , CLUSTERTYPE , TABLETYPE } |
Private Member Functions | |
void | init () |
This member function is the initializer function. More... | |
std::string | replaceProcedureName (std::string sProcedureName) const |
Replaces path characters and whitespaces to create variable names fitting for an non- relative procedure. More... | |
std::string | createMangledArgName (const std::string &sDefinedName) const |
Creates a mangled name for an argument. More... | |
std::string | createMangledVarName (const std::string &sDefinedName) const |
Creates a mangled name for a variable. More... | |
std::string | resolveArguments (std::string sProcedureCommandLine, size_t nMapSize=std::string::npos) |
This private member function will resolve the calls to arguments in the passed procedure command line. More... | |
std::string | resolveLocalVars (std::string sProcedureCommandLine, size_t nMapSize=std::string::npos) |
This private member function will resolve the calls to numerical variables in the passed procedure command line. More... | |
std::string | resolveLocalStrings (std::string sProcedureCommandLine, size_t nMapSize=std::string::npos) |
This private member function will resolve the calls to string variables in the passed procedure command line. More... | |
std::string | resolveLocalTables (std::string sProcedureCommandLine, size_t nMapSize=std::string::npos) |
This private member function will resolve the calls to local tables in the passed procedure command line. More... | |
std::string | resolveLocalClusters (std::string sProcedureCommandLine, size_t nMapSize=std::string::npos) |
This private member function will resolve the calls to local clusters in the passed procedure command line. More... | |
unsigned int | countVarListElements (const std::string &sVarList) |
This private memebr function counts the number of elements in the passed string list. More... | |
void | checkArgument (const std::string &sArgument, const std::string &sArgumentList, unsigned int nCurrentIndex) |
This private member function checks, whether the keywords "var", "str" or "tab" are used in the current argument or if the argument name contains invalid characters and throws an exception, if this is the case. More... | |
void | checkArgumentValue (const std::string &sArgument, const std::string &sArgumentList, unsigned int nCurrentIndex) |
This private member function checks, whether the keywords "var", "str" or "tab" are used in the current argument value and throws an exception, if this is the case. More... | |
bool | checkSymbolName (const std::string &sSymbolName) const |
Checks for invalid characters or similar. More... | |
void | createLocalInlineVars (std::string sVarList) |
This private member function creates the local variables for inlined procedures. More... | |
void | createLocalInlineStrings (std::string sVarList) |
This private member function creates the local string variables for inlined procedures. More... | |
void | evaluateProcedureArguments (std::string ¤tArg, std::string ¤tValue, const std::string &sArgumentList) |
This memberfunction will evaluate the passed procedure arguments and convert them to local variables if necessary. More... | |
Private Attributes | |
mu::Parser * | _parserRef |
MemoryManager * | _dataRef |
Settings * | _optionRef |
FunctionDefinitionManager * | _functionRef |
Output * | _outRef |
PlotData * | _pDataRef |
Script * | _scriptRef |
Procedure * | _currentProcedure |
std::string | sProcName |
unsigned int | nth_procedure |
bool | inliningMode |
std::map< std::string, VarType > | mLocalArgs |
This class is the variable factory used by procedure instances to create their local variables and resolve calls to them.
Definition at line 43 of file procedurevarfactory.hpp.
|
private |
Enumerator | |
---|---|
NUMTYPE | |
STRINGTYPE | |
CLUSTERTYPE | |
TABLETYPE |
Definition at line 60 of file procedurevarfactory.hpp.
ProcedureVarFactory::ProcedureVarFactory | ( | ) |
Constructor.
Definition at line 68 of file procedurevarfactory.cpp.
References init().
ProcedureVarFactory::ProcedureVarFactory | ( | Procedure * | _procedure, |
const std::string & | sProc, | ||
unsigned int | currentProc, | ||
bool | _inliningMode = false |
||
) |
General constructor from an already available procedure instance.
_procedure | Procedure* |
sProc | const string& |
currentProc | unsigned int |
_inliningMode | bool |
Definition at line 84 of file procedurevarfactory.cpp.
References _currentProcedure, init(), inliningMode, nth_procedure, and sProcName.
ProcedureVarFactory::~ProcedureVarFactory | ( | ) |
Destructor.
Definition at line 98 of file procedurevarfactory.cpp.
References reset().
|
private |
This private member function checks, whether the keywords "var", "str" or "tab" are used in the current argument or if the argument name contains invalid characters and throws an exception, if this is the case.
sArgument | const string& |
sArgumentList | const string& |
nCurrentIndex | unsigned int |
Definition at line 355 of file procedurevarfactory.cpp.
References _currentProcedure, checkSymbolName(), findCommand(), NumeReDebugger::gatherInformations(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), SyntaxError::invalid_position, SyntaxError::INVALID_SYM_NAME, mArguments, sProcName, Match::sString, NumeReDebugger::throwException(), and SyntaxError::WRONG_ARG_NAME.
Referenced by createProcedureArguments().
|
private |
This private member function checks, whether the keywords "var", "str" or "tab" are used in the current argument value and throws an exception, if this is the case.
sArgument | const string& |
sArgumentList | const string& |
nCurrentIndex | unsigned int |
Definition at line 402 of file procedurevarfactory.cpp.
References _currentProcedure, findCommand(), NumeReDebugger::gatherInformations(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), SyntaxError::invalid_position, mArguments, sProcName, Match::sString, NumeReDebugger::throwException(), and SyntaxError::WRONG_ARG_NAME.
Referenced by createProcedureArguments().
|
private |
Checks for invalid characters or similar.
sSymbolName | const std::string& |
Definition at line 429 of file procedurevarfactory.cpp.
References toLowerCase().
Referenced by checkArgument(), createLocalClusters(), createLocalStrings(), createLocalTables(), and createLocalVars().
|
private |
This private memebr function counts the number of elements in the passed string list.
sVarList | const string& |
This can be used to determine the size of the to be allocated data object.
Definition at line 319 of file procedurevarfactory.cpp.
References isInQuotes().
Referenced by createLocalClusters(), createLocalInlineStrings(), createLocalInlineVars(), createLocalStrings(), createLocalTables(), createLocalVars(), and createProcedureArguments().
void ProcedureVarFactory::createLocalClusters | ( | std::string | sClusterList | ) |
This member function will create the local clusters for the current procedure.
sClusterList | string |
Definition at line 1461 of file procedurevarfactory.cpp.
References _currentProcedure, _dataRef, _functionRef, _optionRef, _outRef, _parserRef, _pDataRef, _scriptRef, checkSymbolName(), MemoryManager::containsTablesOrClusters(), countVarListElements(), createMangledVarName(), mu::ParserBase::Eval(), NumeRe::StringParser::evalAndFormat(), ProcedureCommandLine::FLAG_INLINE, NumeReDebugger::gatherInformations(), NumeRe::ClusterManager::getCluster(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), getDataElements(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), getNextArgument(), Procedure::getProcedureFlags(), NumeReKernel::getStringParser(), SyntaxError::INLINE_PROCEDURE_IS_NOT_INLINE, inliningMode, FlowCtrl::INTERFACE_EMPTY, FlowCtrl::INTERFACE_ERROR, SyntaxError::invalid_position, SyntaxError::INVALID_SYM_NAME, NumeRe::ClusterManager::isCluster(), isCompleteCluster(), mLocalClusters, NumeRe::ClusterManager::newCluster(), nth_procedure, SyntaxError::PROCEDURE_ERROR, Procedure::procedureInterface(), NumeRe::ClusterManager::removeCluster(), resolveLocalClusters(), NumeRe::Cluster::setDoubleArray(), mu::ParserBase::SetExpr(), NumeReDebugger::showError(), StripSpaces(), and NumeReDebugger::throwException().
Referenced by Procedure::handleVariableDefinitions().
|
private |
This private member function creates the local string variables for inlined procedures.
sStringList | string |
the created variables are redirected to cluster items.
Definition at line 532 of file procedurevarfactory.cpp.
References _currentProcedure, _dataRef, countVarListElements(), NumeRe::ClusterManager::createTemporaryCluster(), NumeRe::StringParser::evalAndFormat(), NumeReDebugger::gatherInformations(), NumeRe::ClusterManager::getCluster(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), getNextArgument(), NumeReKernel::getStringParser(), SyntaxError::INLINE_PROCEDURE_IS_NOT_INLINE, SyntaxError::invalid_position, mLocalStrings, resolveLocalStrings(), NumeRe::Cluster::setString(), NumeReDebugger::showError(), sInlineStringDef, StripSpaces(), NumeReDebugger::throwException(), toInternalString(), and toString().
Referenced by createLocalStrings().
|
private |
This private member function creates the local variables for inlined procedures.
sVarList | string |
The created variables are redirected to cluster items.
Definition at line 445 of file procedurevarfactory.cpp.
References _currentProcedure, _dataRef, _optionRef, _parserRef, MemoryManager::containsTablesOrClusters(), countVarListElements(), NumeRe::ClusterManager::createTemporaryCluster(), mu::ParserBase::Eval(), NumeRe::StringParser::evalAndFormat(), NumeReDebugger::gatherInformations(), NumeRe::ClusterManager::getCluster(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), getDataElements(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), getNextArgument(), NumeReKernel::getStringParser(), SyntaxError::INLINE_PROCEDURE_IS_NOT_INLINE, SyntaxError::invalid_position, mLocalVars, resolveLocalVars(), NumeRe::Cluster::setDouble(), mu::ParserBase::SetExpr(), NumeReDebugger::showError(), sInlineVarDef, StripSpaces(), NumeReDebugger::throwException(), and toString().
Referenced by createLocalVars().
void ProcedureVarFactory::createLocalStrings | ( | std::string | sStringList | ) |
This member function will create the local string variables for the current procedure.
sStringList | string |
Definition at line 1241 of file procedurevarfactory.cpp.
References _currentProcedure, _dataRef, _functionRef, _optionRef, _outRef, _parserRef, _pDataRef, _scriptRef, checkSymbolName(), MemoryManager::containsTablesOrClusters(), countVarListElements(), createLocalInlineStrings(), createMangledVarName(), NumeRe::StringParser::evalAndFormat(), ProcedureCommandLine::FLAG_INLINE, NumeReDebugger::gatherInformations(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), getDataElements(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), getNextArgument(), Procedure::getProcedureFlags(), NumeReKernel::getStringParser(), SyntaxError::INLINE_PROCEDURE_IS_NOT_INLINE, inliningMode, FlowCtrl::INTERFACE_EMPTY, FlowCtrl::INTERFACE_ERROR, SyntaxError::invalid_position, SyntaxError::INVALID_SYM_NAME, mLocalStrings, nth_procedure, SyntaxError::PROCEDURE_ERROR, Procedure::procedureInterface(), resolveLocalStrings(), NumeRe::StringVarFactory::setStringValue(), NumeReDebugger::showError(), StripSpaces(), and NumeReDebugger::throwException().
Referenced by Procedure::getInlined(), and Procedure::handleVariableDefinitions().
void ProcedureVarFactory::createLocalTables | ( | std::string | sTableList | ) |
This member function will create the local tables for the current procedure.
sTableList | string |
Definition at line 1342 of file procedurevarfactory.cpp.
References _currentProcedure, _dataRef, _functionRef, _optionRef, _outRef, _parserRef, _pDataRef, _scriptRef, MemoryManager::addTable(), checkSymbolName(), Indices::col, MemoryManager::containsTablesOrClusters(), MemoryManager::copyTable(), countVarListElements(), createMangledVarName(), MemoryManager::deleteTable(), mu::ParserBase::Eval(), NumeRe::StringParser::evalAndFormat(), ProcedureCommandLine::FLAG_INLINE, NumeReDebugger::gatherInformations(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), getDataElements(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), getNextArgument(), Procedure::getProcedureFlags(), NumeReKernel::getStringParser(), SyntaxError::INLINE_PROCEDURE_IS_NOT_INLINE, inliningMode, FlowCtrl::INTERFACE_EMPTY, FlowCtrl::INTERFACE_ERROR, SyntaxError::invalid_position, SyntaxError::INVALID_SYM_NAME, isCompleteTable(), MemoryManager::isTable(), mLocalTables, nth_procedure, VectorIndex::OPEN_END, SyntaxError::PROCEDURE_ERROR, Procedure::procedureInterface(), resolveLocalTables(), Indices::row, mu::ParserBase::SetExpr(), NumeReDebugger::showError(), StripSpaces(), NumeReDebugger::throwException(), and MemoryManager::writeToTable().
Referenced by Procedure::handleVariableDefinitions().
void ProcedureVarFactory::createLocalVars | ( | std::string | sVarList | ) |
This member function will create the local numerical variables for the current procedure.
sVarList | string |
Definition at line 1133 of file procedurevarfactory.cpp.
References _currentProcedure, _dataRef, _functionRef, _optionRef, _outRef, _parserRef, _pDataRef, _scriptRef, checkSymbolName(), MemoryManager::containsTablesOrClusters(), countVarListElements(), createLocalInlineVars(), createMangledVarName(), mu::ParserBase::DefineVar(), mu::ParserBase::Eval(), NumeRe::StringParser::evalAndFormat(), ProcedureCommandLine::FLAG_INLINE, NumeReDebugger::gatherInformations(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), getDataElements(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), getNextArgument(), Procedure::getProcedureFlags(), NumeReKernel::getStringParser(), SyntaxError::INLINE_PROCEDURE_IS_NOT_INLINE, inliningMode, FlowCtrl::INTERFACE_EMPTY, FlowCtrl::INTERFACE_ERROR, SyntaxError::invalid_position, SyntaxError::INVALID_SYM_NAME, mLocalVars, nth_procedure, SyntaxError::PROCEDURE_ERROR, Procedure::procedureInterface(), resolveLocalVars(), mu::ParserBase::SetExpr(), NumeReDebugger::showError(), StripSpaces(), and NumeReDebugger::throwException().
Referenced by Procedure::getInlined(), and Procedure::handleVariableDefinitions().
|
private |
Creates a mangled name for an argument.
sDefinedName | const std::string& |
Definition at line 289 of file procedurevarfactory.cpp.
References nth_procedure, sProcName, and toString().
Referenced by evaluateProcedureArguments().
|
private |
Creates a mangled name for a variable.
sDefinedName | const std::string& |
Definition at line 302 of file procedurevarfactory.cpp.
References nth_procedure, sProcName, and toString().
Referenced by createLocalClusters(), createLocalStrings(), createLocalTables(), createLocalVars(), and createTestStatsCluster().
map< string, string > ProcedureVarFactory::createProcedureArguments | ( | std::string | sArgumentList, |
std::string | sArgumentValues | ||
) |
This member function will create the procedure arguments for the current procedure.
sArgumentList | string |
sArgumentValues | string |
Definition at line 617 of file procedurevarfactory.cpp.
References _currentProcedure, _optionRef, checkArgument(), checkArgumentValue(), containsFreeOperators(), countVarListElements(), evaluateProcedureArguments(), NumeReDebugger::gatherInformations(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), getNextArgument(), SyntaxError::invalid_position, mArguments, SyntaxError::MISSING_DEFAULT_VALUE, NumeReDebugger::popStackItem(), sErrorToken, StripSpaces(), NumeReDebugger::throwException(), SyntaxError::TOO_MANY_ARGS, SyntaxError::UNMATCHED_PARENTHESIS, Settings::useDebugger(), and validateParenthesisNumber().
Referenced by Procedure::execute(), and Procedure::getInlined().
std::string ProcedureVarFactory::createTestStatsCluster | ( | ) |
Creates a special cluster containing the test statistics.
Definition at line 1564 of file procedurevarfactory.cpp.
References _dataRef, createMangledVarName(), mLocalClusters, NumeRe::ClusterManager::newCluster(), NumeRe::Cluster::setDouble(), and NumeRe::Cluster::setString().
Referenced by Procedure::execute().
bool ProcedureVarFactory::delayDeletionOfReturnedTable | ( | const std::string & | sTableName | ) |
Searches for a local table or a local table in the arguments with the corresponding identifier, deletes its name from the map and returns whether the local table was found.
sTableName | const std::string& |
Definition at line 221 of file procedurevarfactory.cpp.
References mLocalArgs, mLocalTables, and TABLETYPE.
Referenced by Procedure::execute().
|
private |
This memberfunction will evaluate the passed procedure arguments and convert them to local variables if necessary.
currentArg | std::string& |
currentValue | std::string& |
sArgumentList | const std::string& |
Definition at line 744 of file procedurevarfactory.cpp.
References _currentProcedure, _dataRef, _functionRef, _lang, _optionRef, _outRef, _parserRef, _pDataRef, _scriptRef, SettingsValue::active(), MemoryManager::addTable(), FunctionDefinitionManager::call(), SyntaxError::CANNOT_PASS_LITERAL_PER_REFERENCE, CLUSTERTYPE, Indices::col, MemoryManager::containsTablesOrClusters(), MemoryManager::copyTable(), createMangledArgName(), NumeRe::ClusterManager::createTemporaryCluster(), mu::ParserBase::DefineVar(), MemoryManager::deleteTable(), mu::ParserBase::Eval(), NumeRe::StringParser::evalAndFormat(), ProcedureCommandLine::FLAG_INLINE, ProcedureCommandLine::FLAG_MACRO, ProcedureCommandLine::FLAG_TEMPLATE, SyntaxError::FUNCTION_ERROR, NumeReDebugger::gatherInformations(), Language::get(), NumeRe::ClusterManager::getCluster(), Procedure::GetCurrentLine(), Procedure::getCurrentProcedureName(), getDataElements(), NumeReKernel::getDebugger(), NumeReKernel::getInstance(), getNextArgument(), NumeRe::Cluster::getParserString(), Procedure::getProcedureFlags(), Settings::getSetting(), NumeReKernel::getStringParser(), NumeRe::StringVarFactory::getStringVars(), mu::ParserBase::GetVar(), SyntaxError::INLINE_PROCEDURE_IS_NOT_INLINE, SyntaxError::INLINE_PROCEDURE_NEEDS_TABLE_REFERENCES, inliningMode, FlowCtrl::INTERFACE_EMPTY, FlowCtrl::INTERFACE_ERROR, SyntaxError::invalid_position, NumeRe::ClusterManager::isCluster(), isCompleteCluster(), isCompleteTable(), NumeRe::StringParser::isStringExpression(), NumeReKernel::issueWarning(), MemoryManager::isTable(), mu::ParserBase::m_lDataStorage, mArguments, mLocalArgs, NumeRe::ClusterManager::newCluster(), nth_procedure, NUMTYPE, VectorIndex::OPEN_END, SyntaxError::PROCEDURE_ERROR, Procedure::procedureInterface(), NumeRe::ClusterManager::removeCluster(), Indices::row, NumeRe::Cluster::setDoubleArray(), mu::ParserBase::SetExpr(), NumeRe::StringVarFactory::setStringValue(), SETTING_B_TABLEREFS, NumeReDebugger::showError(), NumeRe::Cluster::size(), sProcName, NumeRe::StringParser::STRING_SUCCESS, STRINGTYPE, StripSpaces(), TABLETYPE, NumeReDebugger::throwException(), toString(), vInlineArgDef, and MemoryManager::writeToTable().
Referenced by createProcedureArguments().
|
private |
This member function is the initializer function.
Definition at line 111 of file procedurevarfactory.cpp.
References _currentProcedure, _dataRef, _functionRef, _optionRef, _outRef, _parserRef, _pDataRef, _scriptRef, NumeReKernel::getDefinitions(), NumeReKernel::getInstance(), NumeReKernel::getMemoryManager(), NumeReKernel::getOutput(), NumeReKernel::getParser(), NumeReKernel::getPlottingData(), NumeReKernel::getScript(), NumeReKernel::getSettings(), inliningMode, nth_procedure, sInlineStringDef, sInlineVarDef, and sProcName.
Referenced by ProcedureVarFactory().
bool ProcedureVarFactory::isReference | ( | const std::string & | sArgName | ) | const |
Returns whether the passed argument representation (i.e. local variable name) is actually a reference from the outside.
sArgName | const std::string& |
Definition at line 255 of file procedurevarfactory.cpp.
References mLocalArgs.
|
private |
Replaces path characters and whitespaces to create variable names fitting for an non- relative procedure.
sProcedureName | string |
Definition at line 270 of file procedurevarfactory.cpp.
void ProcedureVarFactory::reset | ( | ) |
Resets the object.
This member function will reset the object, i.e. free up the allocated memory. Can be used instead of deleting the object, however due to design decisions, this object is heap- allocated and recreated for each procedure.
Definition at line 144 of file procedurevarfactory.cpp.
References _dataRef, _parserRef, CLUSTERTYPE, MemoryManager::deleteTable(), NumeReKernel::getInstance(), NumeReKernel::getStringParser(), mArguments, mLocalArgs, mLocalClusters, mLocalStrings, mLocalTables, mLocalVars, NUMTYPE, NumeRe::ClusterManager::removeCluster(), NumeRe::StringVarFactory::removeStringVar(), mu::ParserBase::RemoveVar(), sInlineStringDef, sInlineVarDef, STRINGTYPE, TABLETYPE, and vInlineArgDef.
Referenced by ~ProcedureVarFactory().
|
private |
This private member function will resolve the calls to arguments in the passed procedure command line.
sProcedureCommandLine | string |
nMapSize | size_t |
Definition at line 1593 of file procedurevarfactory.cpp.
References checkDelimiter(), getMatchingParenthesis(), isInQuotes(), isToCmd(), and mArguments.
Referenced by resolveVariables().
|
private |
This private member function will resolve the calls to local clusters in the passed procedure command line.
sProcedureCommandLine | string |
nMapSize | size_t |
Definition at line 1798 of file procedurevarfactory.cpp.
References checkDelimiter(), isInQuotes(), isToCmd(), and mLocalClusters.
Referenced by createLocalClusters(), and resolveVariables().
|
private |
This private member function will resolve the calls to string variables in the passed procedure command line.
sProcedureCommandLine | string |
nMapSize | size_t |
Definition at line 1696 of file procedurevarfactory.cpp.
References checkDelimiter(), inliningMode, isInQuotes(), isToCmd(), mLocalStrings, and replaceStringMethod().
Referenced by createLocalInlineStrings(), createLocalStrings(), and resolveVariables().
|
private |
This private member function will resolve the calls to local tables in the passed procedure command line.
sProcedureCommandLine | string |
nMapSize | size_t |
Definition at line 1749 of file procedurevarfactory.cpp.
References checkDelimiter(), isInQuotes(), isToCmd(), and mLocalTables.
Referenced by createLocalTables(), and resolveVariables().
|
private |
This private member function will resolve the calls to numerical variables in the passed procedure command line.
sProcedureCommandLine | string |
nMapSize | size_t |
Definition at line 1646 of file procedurevarfactory.cpp.
References checkDelimiter(), isInQuotes(), isToCmd(), and mLocalVars.
Referenced by createLocalInlineVars(), createLocalVars(), and resolveVariables().
|
inline |
Definition at line 114 of file procedurevarfactory.hpp.
References resolveArguments(), resolveLocalClusters(), resolveLocalStrings(), resolveLocalTables(), and resolveLocalVars().
Referenced by Procedure::execute(), and Procedure::getInlined().
|
private |
Definition at line 54 of file procedurevarfactory.hpp.
Referenced by checkArgument(), checkArgumentValue(), createLocalClusters(), createLocalInlineStrings(), createLocalInlineVars(), createLocalStrings(), createLocalTables(), createLocalVars(), createProcedureArguments(), evaluateProcedureArguments(), init(), and ProcedureVarFactory().
|
private |
Definition at line 47 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createLocalInlineStrings(), createLocalInlineVars(), createLocalStrings(), createLocalTables(), createLocalVars(), createTestStatsCluster(), evaluateProcedureArguments(), init(), and reset().
|
private |
Definition at line 49 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createLocalStrings(), createLocalTables(), createLocalVars(), evaluateProcedureArguments(), and init().
|
private |
Definition at line 48 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createLocalInlineVars(), createLocalStrings(), createLocalTables(), createLocalVars(), createProcedureArguments(), evaluateProcedureArguments(), and init().
|
private |
Definition at line 50 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createLocalStrings(), createLocalTables(), createLocalVars(), evaluateProcedureArguments(), and init().
|
private |
Definition at line 46 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createLocalInlineVars(), createLocalStrings(), createLocalTables(), createLocalVars(), evaluateProcedureArguments(), init(), and reset().
|
private |
Definition at line 51 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createLocalStrings(), createLocalTables(), createLocalVars(), evaluateProcedureArguments(), and init().
|
private |
Definition at line 52 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createLocalStrings(), createLocalTables(), createLocalVars(), evaluateProcedureArguments(), and init().
|
private |
Definition at line 58 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createLocalStrings(), createLocalTables(), createLocalVars(), evaluateProcedureArguments(), init(), ProcedureVarFactory(), and resolveLocalStrings().
std::map<std::string, std::string> ProcedureVarFactory::mArguments |
Definition at line 90 of file procedurevarfactory.hpp.
Referenced by checkArgument(), checkArgumentValue(), createProcedureArguments(), evaluateProcedureArguments(), NumeReDebugger::gatherInformations(), reset(), and resolveArguments().
|
private |
Definition at line 68 of file procedurevarfactory.hpp.
Referenced by delayDeletionOfReturnedTable(), evaluateProcedureArguments(), isReference(), and reset().
std::map<std::string, std::string> ProcedureVarFactory::mLocalClusters |
Definition at line 94 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createTestStatsCluster(), NumeReDebugger::gatherInformations(), reset(), and resolveLocalClusters().
std::map<std::string, std::pair<std::string, std::string> > ProcedureVarFactory::mLocalStrings |
Definition at line 92 of file procedurevarfactory.hpp.
Referenced by createLocalInlineStrings(), createLocalStrings(), NumeReDebugger::gatherInformations(), reset(), and resolveLocalStrings().
std::map<std::string, std::string> ProcedureVarFactory::mLocalTables |
Definition at line 93 of file procedurevarfactory.hpp.
Referenced by createLocalTables(), delayDeletionOfReturnedTable(), NumeReDebugger::gatherInformations(), reset(), and resolveLocalTables().
std::map<std::string, std::pair<std::string, mu::value_type*> > ProcedureVarFactory::mLocalVars |
Definition at line 91 of file procedurevarfactory.hpp.
Referenced by createLocalInlineVars(), createLocalVars(), NumeReDebugger::gatherInformations(), reset(), and resolveLocalVars().
|
private |
Definition at line 57 of file procedurevarfactory.hpp.
Referenced by createLocalClusters(), createLocalStrings(), createLocalTables(), createLocalVars(), createMangledArgName(), createMangledVarName(), evaluateProcedureArguments(), init(), and ProcedureVarFactory().
std::string ProcedureVarFactory::sInlineStringDef |
Definition at line 97 of file procedurevarfactory.hpp.
Referenced by createLocalInlineStrings(), Procedure::getInlined(), init(), and reset().
std::string ProcedureVarFactory::sInlineVarDef |
Definition at line 96 of file procedurevarfactory.hpp.
Referenced by createLocalInlineVars(), Procedure::getInlined(), init(), and reset().
|
private |
Definition at line 56 of file procedurevarfactory.hpp.
Referenced by checkArgument(), checkArgumentValue(), createMangledArgName(), createMangledVarName(), evaluateProcedureArguments(), init(), and ProcedureVarFactory().
std::vector<std::string> ProcedureVarFactory::vInlineArgDef |
Definition at line 98 of file procedurevarfactory.hpp.
Referenced by evaluateProcedureArguments(), Procedure::getInlined(), and reset().