|
|
| ~OctEval () override |
| | Destructor.
|
| |
|
std::string | getName () const override |
| | Get the type of this evaluator.
|
| |
| void | addImport (const std::string &code, const xercesc::DOMElement *e) override |
| |
|
void | addImportHelper (const boost::filesystem::path &dir) |
| |
|
bool | valueIsOfType (const Value &value, ValueType type) const override |
| | get the type of value
|
| |
|
std::map< boost::filesystem::path, std::pair< boost::filesystem::path, bool > > & | requiredFiles () const override |
| | return a list of all required files of octave (excluding dependent files of libraries)
|
| |
| void | convertIndex (Value &v, bool evalTo1Based) override |
| |
|
| ~Eval () override |
| | Destructor.
|
| |
|
| Eval (const Eval &other)=delete |
| |
|
| Eval (Eval &&other)=delete |
| |
|
Eval & | operator= (const Eval &other)=delete |
| |
|
Eval & | operator= (Eval &&other)=delete |
| |
|
void | addParam (const std::string ¶mName, const Value &value) |
| | Add a value to the current parameters.
|
| |
| void | addParamSet (const xercesc::DOMElement *e) |
| |
| Value | eval (const xercesc::DOMElement *e) |
| |
| Value | eval (const xercesc::DOMAttr *a) |
| |
| template<typename T > |
| T | cast (const Value &value) const |
| |
| Value | stringToValue (const std::string &str, const xercesc::DOMElement *e=nullptr, bool fullEval=true) const |
| |
| template<class T > |
| Value | create (const T &v) const |
| |
|
template<> |
| string | cast (const Value &value) const |
| |
|
template<> |
| CodeString | cast (const Value &value) const |
| |
|
template<> |
| double | cast (const Value &value) const |
| |
|
template<> |
| int | cast (const Value &value) const |
| |
|
template<> |
| vector< double > | cast (const Value &value) const |
| |
|
template<> |
| vector< vector< double > > | cast (const Value &value) const |
| |
|
template<> |
| Eval::Value | create (const double &v) const |
| |
|
template<> |
| Eval::Value | create (const vector< double > &v) const |
| |
|
template<> |
| Eval::Value | create (const vector< vector< double > > &v) const |
| |
|
template<> |
| Eval::Value | create (const string &v) const |
| |
|
template<> |
| CodeString | cast (const Value &value) const |
| |
|
template<> |
| double | cast (const Value &value) const |
| |
|
template<> |
| int | cast (const Value &value) const |
| |
|
template<> |
| Eval::Value | create (const double &v) const |
| |
|
|
| OctEval (std::vector< boost::filesystem::path > *dependencies_=nullptr) |
| | Constructor.
|
| |
|
Value | createFunctionIndep (int dim) const override |
| | create a function independent variable. If dim == 0 a scalar is created else a vector.
|
| |
|
Value | fullStringToValue (const std::string &str, const xercesc::DOMElement *e) const override |
| | evaluate str fully and return result as an octave variable
|
| |
| Value | callFunction (const std::string &name, const std::vector< Value > &args) const override |
| |
|
double | cast_double (const Value &value) const override |
| |
|
std::vector< double > | cast_vector_double (const Value &value) const override |
| |
|
std::vector< std::vector< double > > | cast_vector_vector_double (const Value &value) const override |
| |
|
std::string | cast_string (const Value &value) const override |
| |
|
Value | create_double (const double &v) const override |
| |
|
Value | create_vector_double (const std::vector< double > &v) const override |
| |
|
Value | create_vector_vector_double (const std::vector< std::vector< double > > &v) const override |
| |
|
Value | create_string (const std::string &v) const override |
| |
|
Value | createFunctionDep (const std::vector< Value > &v) const override |
| | create a vector function dependent
|
| |
|
Value | createFunctionDep (const std::vector< std::vector< Value > > &v) const override |
| | create a matrix function dependent
|
| |
|
Value | createFunction (const std::vector< Value > &indeps, const Value &dep) const override |
| | create a Function with n independents and a dependent function (scalar, vector or matrix)
|
| |
|
std::string | serializeFunction (const Value &x) const override |
| |
|
| Eval (std::vector< boost::filesystem::path > *dependencies_) |
| | Constructor.
|
| |
|
void | pushContext () |
| | Push the current context to a internal stack.
|
| |
|
void | popContext () |
| | Overwrite the current context with the top level context from the internal stack.
|
| |
|
std::string | partialStringToString (const std::string &str, const xercesc::DOMElement *e) const |
| | evaluate str partially and return result as an std::string
|
| |
|
void | addStaticDependencies (const xercesc::DOMElement *e) const |
| |
|
| enum | ValueType {
ScalarType,
VectorType,
MatrixType,
StringType,
FunctionType
} |
| |
|
using | Value = std::shared_ptr< void > |
| | Typedef for a shared value.
|
| |
|
static boost::filesystem::path | installPath |
| |
|
std::vector< boost::filesystem::path > * | dependencies |
| |
|
std::unordered_map< std::string, Value > | currentParam |
| |
|
std::stack< std::unordered_map< std::string, Value > > | paramStack |
| |
|
Value | currentImport |
| |
|
std::stack< Value > | importStack |
| |
Octave expression evaluator and converter.