2#ifndef __wmvariableparser__h__
3#define __wmvariableparser__h__
106 const std::string& fieldName);
116 static std::string
itos(
int value);
A base class for solvers in WARPM.
Definition: wmsolverbase.h:35
Definition: wmvariableparser.h:82
int _componentIndex
Definition: wmvariableparser.h:91
std::string _variableName
Definition: wmvariableparser.h:88
wxm::variable::variable_t * _variable
Definition: wmvariableparser.h:85
Definition: wmvariableparser.h:77
static std::string itos(int value)
static size_t getTypeSize(const std::type_info &typeinfo)
WxLogStream _debStrm
Definition: wmvariableparser.h:127
virtual ~WmVariableParser()
void setParentSolver(const WmSolverBase *solver)
Definition: wmvariableparser.h:100
static std::string getAnyString(const WxAny &any)
bool hasVariable(const WxCryptSet &wxc, const std::string &varName) const
variableTypeList_t decomposeVariableName(const WxAny &varName) const
std::map< std::string, std::string > constantsMap_t
Definition: wmvariableparser.h:79
std::vector< component_t > componentList_t
Definition: wmvariableparser.h:94
componentList_t parseVariableNameIntoComponents(const std::string &fullVarName)
static std::string getTypeString(const std::type_info &type)
componentList_t parseVariablesFromCryptset(const WxCryptSet &wxe, const std::string &fieldName)
bool hasVariableVector(const WxCryptSet &wxc, const std::string &varName) const
const WmSolverBase * _parentSolver
Definition: wmvariableparser.h:126
Class WxAny is based on the "any" class described in "Valued Conversion", Kevlin Henney,...
Definition: wxany.h:139
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
Provides interface to streaming iostreams to logs.
Definition: wxlogstream.h:19
Definition: variable.h:22
Definition: wmvariableparser.h:62
std::string _variableName
Definition: wmvariableparser.h:63
int _componentIndex
Definition: wmvariableparser.h:64
int _kernelVariableType
Definition: wmvariableparser.h:65
std::string _typeString
Definition: wmvariableparser.h:66
WxAny _value
Definition: wmvariableparser.h:69
int _factorial(int n)
Every class and word in this file needs to be deleted and replaced with modern alternatives.
std::vector< variableType_t > variableTypeList_t
Definition: wmvariableparser.h:74
@ WMKERNELVARIABLE_ARRAY
Definition: wmvariableparser.h:57
@ WMKERNELVARIABLE_OCLMEM
Definition: wmvariableparser.h:43
@ WMKERNELVARIABLE_WMUARRAY
Definition: wmvariableparser.h:42
@ WMKERNELVARIABLE_STRUCTURE
Definition: wmvariableparser.h:47
@ WMKERNELVARIABLE_TENSOR
Definition: wmvariableparser.h:51
@ WMKERNELVARIABLE_CONSTANT
Definition: wmvariableparser.h:33
@ WMKERNELVARIABLE_ANY
Definition: wmvariableparser.h:44
@ WMKERNELVARIABLE_VALUE
Definition: wmvariableparser.h:52
@ WMKERNELVARIABLE_NONE
Definition: wmvariableparser.h:30