NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
procedurevarfactory.cpp File Reference
#include "procedurevarfactory.hpp"
#include "procedure.hpp"
#include "../../kernel.hpp"
Include dependency graph for procedurevarfactory.cpp:

Go to the source code of this file.

Functions

static bool containsFreeOperators (const string &sString)
 Static helper function to detect free operators in a procedure argument. Those arguments need to be surrounded by parentheses as long as arguments are not converted into real variables. More...
 
static bool isCompleteCluster (StringView sArgumentValue, MemoryManager *_dataRef)
 Determines, whether the user has passed a complete cluster or a cluster with some indices. More...
 
static bool isCompleteTable (StringView sArgumentValue, MemoryManager *_dataRef)
 Determines, whether the user has passed a complete table or a table with some indices. More...
 

Function Documentation

◆ containsFreeOperators()

static bool containsFreeOperators ( const string &  sString)
static

Static helper function to detect free operators in a procedure argument. Those arguments need to be surrounded by parentheses as long as arguments are not converted into real variables.

Parameters
sStringconst string&
Returns
bool

Definition at line 37 of file procedurevarfactory.cpp.

References getMatchingParenthesis().

Referenced by ProcedureVarFactory::createProcedureArguments().

Here is the call graph for this function:

◆ isCompleteCluster()

static bool isCompleteCluster ( StringView  sArgumentValue,
MemoryManager _dataRef 
)
static

Determines, whether the user has passed a complete cluster or a cluster with some indices.

Parameters
sArgumentValueStringView
_dataRefMemoryManager*
Returns
bool

Definition at line 705 of file procedurevarfactory.cpp.

References StringViewBase::find(), NumeRe::ClusterManager::isCluster(), and StringView::subview().

Referenced by ProcedureVarFactory::createLocalClusters(), and ProcedureVarFactory::evaluateProcedureArguments().

Here is the call graph for this function:

◆ isCompleteTable()

static bool isCompleteTable ( StringView  sArgumentValue,
MemoryManager _dataRef 
)
static

Determines, whether the user has passed a complete table or a table with some indices.

Parameters
sArgumentValueStringView
_dataRefMemoryManager*
Returns
bool

Definition at line 723 of file procedurevarfactory.cpp.

References StringViewBase::find(), MemoryManager::isTable(), StringView::subview(), and StringViewBase::to_string().

Referenced by ProcedureVarFactory::createLocalTables(), and ProcedureVarFactory::evaluateProcedureArguments().

Here is the call graph for this function: