20#include "../utils/tools.hpp"
21#include "../strings/stringdatastructures.hpp"
22#include "../../kernel.hpp"
23#include "../maths/matdatastructures.hpp"
48 rethrow_exception(e_ptr);
56 catch (
const std::bad_alloc& e)
61 catch (
const std::exception& e)
250 for (
int i = 0; i < nNum; i++)
304 for (
size_t i = 0; i < strRes.
vResult.size(); i++)
306 if (strRes.
vResult[i] ==
"\"\"")
This class handles assertions and throws the corresponding exception, if the assertion fails....
void enable(const std::string &sExpr)
Enables the assertion handler using the passed expression.
void reset()
Resets the assertion handler.
AssertionStats getStats() const
Returns the current tests stats.
void assertionFail()
This member function is a wrapper around the assertion error.
void resetStats()
Resets the internal statistic variables for accumulating the total number of executed and the number ...
std::string sAssertedExpression
void checkAssertion(mu::value_type *v, int nNum)
Checks the return value of a muParser evaluated result.
std::string get(const std::string &sMessage, const std::vector< std::string > &vTokens) const
This member function returns the language string for the passed language identifier and replaces all ...
This class defines a dynamic size 2D matrix with a single 1D internal buffer. If the internal buffer ...
std::vector< mu::value_type > & data()
Get a reference to the internal data structure.
static NumeReKernel * getInstance()
This static member function returns a a pointer to the singleton instance of the kernel.
Common exception class for all exceptions thrown in NumeRe.
@ PROCESS_ABORTED_BY_USER
static size_t invalid_position
void SetExpr(StringView a_sExpr)
Set the expression. Triggers first time calculation thus the creation of the bytecode and scanning of...
Error class of the parser.
const string_type & GetMsg() const
Returns the message string for this error.
static std::string sLastErrorMessage
ErrorType getErrorType(std::exception_ptr e_ptr)
This function obtains the error type of a catched exception and sets the last error message.
std::string errorTypeToString(ErrorType e)
Return the error type converted to a human readable string.
Assertion _assertionHandler
std::string getLastErrorMessage()
Return the last error message, which was catched by the getErrorType() function.
ErrorType getLastErrorType()
Return the last error type, which was catched by the getErrorType() function.
static ErrorType nLastErrorType
ErrorType
Defines the possible error types, which can be thrown in this application.
MUP_BASETYPE value_type
The numeric datatype used by the parser.
This structure accumulates the statistics for the assertion handler.
void failed()
Assertion failed.
void succeeded()
Assertion was successful.
void reset()
Reset the statistics.
This structure contains all possible return values of the central string parser in single combined st...
std::vector< bool > vNoStringVal
std::string toString(int)
Converts an integer to a string without the Settings bloat.