NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class handles the dependencies of the current procedure file (passed as pointer to a ProcedureElement instance) and calculates them during construction. More...
#include <dependency.hpp>
Public Member Functions | |
Dependencies (ProcedureElement *procedureFile) | |
Dependencies constructor. More... | |
std::map< std::string, DependencyList > & | getDependencyMap () |
std::string | getMainProcedure () const |
Private Member Functions | |
void | walk (ProcedureElement *procedureFile) |
This member function will walk through the file and redirect the control to getProcedureDependencies(), if it hits a procedure head. More... | |
int | getProcedureDependencies (ProcedureElement *procedureFile, int nCurrentLine) |
This member function calculates the dependencies of the current procedure. More... | |
std::string | getProcedureName (std::string sCommandLine) const |
This member function extracts the procedure name from the procedure head. More... | |
void | resolveProcedureCalls (std::string sCommandLine, const std::string &sProcedureName, const std::string &sCurrentNameSpace) |
This member function resilves the procedure calls contained in the current procedure command line. More... | |
std::string | getProcedureFileName (std::string sProc) const |
This member function returns the file name of the current called procedure. More... | |
Private Attributes | |
std::map< std::string, DependencyList > | mDependencies |
std::string | sFileName |
std::string | sThisFileNameSpacePrefix |
std::string | sThisNameSpace |
std::string | sMainProcedure |
This class handles the dependencies of the current procedure file (passed as pointer to a ProcedureElement instance) and calculates them during construction.
Definition at line 80 of file dependency.hpp.
Dependencies::Dependencies | ( | ProcedureElement * | procedureFile | ) |
Dependencies constructor.
procedureFile | ProcedureElement* |
Definition at line 82 of file dependency.cpp.
References ProcedureElement::getFileName(), NumeReKernel::getInstance(), Settings::getProcPath(), NumeReKernel::getSettings(), replaceAll(), replacePathSeparator(), sFileName, sThisFileNameSpacePrefix, sThisNameSpace, and walk().
|
inline |
Definition at line 98 of file dependency.hpp.
References mDependencies.
Referenced by DependencyDialog::calculateDependencies(), PackageDialog::followBranch(), DocumentationGenerator::followBranch(), and DocumentationGenerator::parseDocumentation().
|
inline |
Definition at line 103 of file dependency.hpp.
References sMainProcedure.
Referenced by DependencyDialog::calculateDependencies().
|
private |
This member function calculates the dependencies of the current procedure.
procedureFile | ProcedureElement* |
nCurrentLine | int |
Definition at line 162 of file dependency.cpp.
References decodeNameSpace(), findCommand(), ProcedureElement::getCurrentLine(), ProcedureElement::getFileName(), ProcedureElement::getNextLine(), getProcedureName(), ProcedureElement::isLastLine(), mDependencies, resolveProcedureCalls(), sMainProcedure, Match::sString, sThisFileNameSpacePrefix, sThisNameSpace, ProcedureCommandLine::TYPE_PROCEDURE_FOOT, and ProcedureCommandLine::TYPE_PROCEDURE_HEAD.
Referenced by walk().
|
private |
This member function returns the file name of the current called procedure.
sProc | std::string |
Definition at line 299 of file dependency.cpp.
References NumeReKernel::getInstance(), NumeReKernel::getProcedureInterpreter(), sFileName, and FileSystem::ValidFileName().
Referenced by resolveProcedureCalls().
|
private |
This member function extracts the procedure name from the procedure head.
sCommandLine | std::string |
Definition at line 225 of file dependency.cpp.
References sThisNameSpace.
Referenced by getProcedureDependencies().
|
private |
This member function resilves the procedure calls contained in the current procedure command line.
sLine | std::string |
sProcedureName | const std::string& |
sCurrentNameSpace | const std::string& |
Definition at line 248 of file dependency.cpp.
References getProcedureFileName(), isInQuotes(), mDependencies, replaceAll(), sThisFileNameSpacePrefix, and sThisNameSpace.
Referenced by getProcedureDependencies().
|
private |
This member function will walk through the file and redirect the control to getProcedureDependencies(), if it hits a procedure head.
procedureFile | ProcedureElement* |
Definition at line 136 of file dependency.cpp.
References ProcedureElement::getFirstLine(), getProcedureDependencies(), ProcedureElement::isLastLine(), and mDependencies.
Referenced by Dependencies().
|
private |
Definition at line 83 of file dependency.hpp.
Referenced by getDependencyMap(), getProcedureDependencies(), resolveProcedureCalls(), and walk().
|
private |
Definition at line 84 of file dependency.hpp.
Referenced by Dependencies(), and getProcedureFileName().
|
private |
Definition at line 87 of file dependency.hpp.
Referenced by getMainProcedure(), and getProcedureDependencies().
|
private |
Definition at line 85 of file dependency.hpp.
Referenced by Dependencies(), getProcedureDependencies(), and resolveProcedureCalls().
|
private |
Definition at line 86 of file dependency.hpp.
Referenced by Dependencies(), getProcedureDependencies(), getProcedureName(), and resolveProcedureCalls().