NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class handles the file-static constants, which are more or less macros similar to #define in C/C++. More...
#include <symdef.hpp>
Public Member Functions | |
SymDefManager () | |
void | resolveSymbols (std::string &sCommandLine) const |
Resolve all file-static constant declarations in the current line. More... | |
void | createSymbol (const std::string &sCommandLine) |
Create one or more new file-static constant declarations for the current file. More... | |
bool | isSymbol (const std::string &sSymbol) const |
Check, whether the passed string is a defined symbol (will be used by the static code analyzer). More... | |
void | clear () |
Remove all file-static constant declarations. More... | |
Private Attributes | |
std::map< std::string, std::string > | m_symDefs |
This class handles the file-static constants, which are more or less macros similar to #define in C/C++.
Definition at line 31 of file symdef.hpp.
|
inline |
Definition at line 37 of file symdef.hpp.
void SymDefManager::clear | ( | ) |
Remove all file-static constant declarations.
Definition at line 33 of file symdef.cpp.
References m_symDefs.
Referenced by Script::close(), Script::openScript(), and CodeAnalyzer::run().
void SymDefManager::createSymbol | ( | const std::string & | sCommandLine | ) |
Create one or more new file-static constant declarations for the current file.
sCommandLine | const std::string& |
Definition at line 72 of file symdef.cpp.
References getAllArguments(), m_symDefs, resolveSymbols(), and StripSpaces().
Referenced by CodeAnalyzer::analyseCommands(), Script::handleLocalDefinitions(), parseLayoutScript(), and ProcedureElement::ProcedureElement().
bool SymDefManager::isSymbol | ( | const std::string & | sSymbol | ) | const |
Check, whether the passed string is a defined symbol (will be used by the static code analyzer).
sSymbol | const std::string& |
Definition at line 117 of file symdef.cpp.
References m_symDefs.
Referenced by CodeAnalyzer::analyseCommands(), and CodeAnalyzer::analyseIdentifiers().
void SymDefManager::resolveSymbols | ( | std::string & | sCommandLine | ) | const |
Resolve all file-static constant declarations in the current line.
sCommandLine | std::string& |
Definition at line 47 of file symdef.cpp.
References findVariableInExpression(), and m_symDefs.
Referenced by createSymbol(), Script::handleLocalDefinitions(), parseLayoutScript(), and ProcedureElement::ProcedureElement().
|
private |
Definition at line 34 of file symdef.hpp.
Referenced by clear(), createSymbol(), isSymbol(), and resolveSymbols().