muParser API -
1.35
|
This file contains standard definitions used by the parser. More...
Go to the source code of this file.
Namespaces | |
mu | |
Namespace for mathematical applications. | |
Macros | |
#define | MUP_BASETYPE double |
Define the base datatype for values. More... | |
#define | _T(x) x |
Activate this option in order to compile with OpenMP support. More... | |
#define | MUP_STRING_TYPE std::string |
Definition of the basic parser string type. | |
#define | MUP_ASSERT(COND) |
An assertion that does not kill the program. More... | |
Typedefs | |
typedef MUP_BASETYPE | mu::value_type |
The numeric datatype used by the parser. More... | |
typedef MUP_STRING_TYPE | mu::string_type |
The stringtype used by the parser. More... | |
typedef string_type::value_type | mu::char_type |
The character type used by the parser. More... | |
typedef std::basic_stringstream< char_type, std::char_traits< char_type >, std::allocator< char_type > > | mu::stringstream_type |
Typedef for easily using stringstream that respect the parser stringtype. | |
typedef std::map< string_type, value_type * > | mu::varmap_type |
Type used for storing variables. | |
typedef std::map< string_type, value_type > | mu::valmap_type |
Type used for storing constants. | |
typedef std::map< string_type, std::size_t > | mu::strmap_type |
Type for assigning a string name to an index in the internal string table. | |
typedef value_type(* | mu::generic_fun_type) () |
Callback type used for functions without arguments. | |
typedef value_type(* | mu::fun_type0) () |
Callback type used for functions without arguments. | |
typedef value_type(* | mu::fun_type1) (value_type) |
Callback type used for functions with a single arguments. | |
typedef value_type(* | mu::fun_type2) (value_type, value_type) |
Callback type used for functions with two arguments. | |
typedef value_type(* | mu::fun_type3) (value_type, value_type, value_type) |
Callback type used for functions with three arguments. | |
typedef value_type(* | mu::fun_type4) (value_type, value_type, value_type, value_type) |
Callback type used for functions with four arguments. | |
typedef value_type(* | mu::fun_type5) (value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with five arguments. | |
typedef value_type(* | mu::fun_type6) (value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with six arguments. | |
typedef value_type(* | mu::fun_type7) (value_type, value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with seven arguments. | |
typedef value_type(* | mu::fun_type8) (value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with eight arguments. | |
typedef value_type(* | mu::fun_type9) (value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with nine arguments. | |
typedef value_type(* | mu::fun_type10) (value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with ten arguments. | |
typedef value_type(* | mu::bulkfun_type0) (int, int) |
Callback type used for functions without arguments. | |
typedef value_type(* | mu::bulkfun_type1) (int, int, value_type) |
Callback type used for functions with a single arguments. | |
typedef value_type(* | mu::bulkfun_type2) (int, int, value_type, value_type) |
Callback type used for functions with two arguments. | |
typedef value_type(* | mu::bulkfun_type3) (int, int, value_type, value_type, value_type) |
Callback type used for functions with three arguments. | |
typedef value_type(* | mu::bulkfun_type4) (int, int, value_type, value_type, value_type, value_type) |
Callback type used for functions with four arguments. | |
typedef value_type(* | mu::bulkfun_type5) (int, int, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with five arguments. | |
typedef value_type(* | mu::bulkfun_type6) (int, int, value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with six arguments. | |
typedef value_type(* | mu::bulkfun_type7) (int, int, value_type, value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with seven arguments. | |
typedef value_type(* | mu::bulkfun_type8) (int, int, value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with eight arguments. | |
typedef value_type(* | mu::bulkfun_type9) (int, int, value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with nine arguments. | |
typedef value_type(* | mu::bulkfun_type10) (int, int, value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type, value_type) |
Callback type used for functions with ten arguments. | |
typedef value_type(* | mu::multfun_type) (const value_type *, int) |
Callback type used for functions with a variable argument list. | |
typedef value_type(* | mu::strfun_type1) (const char_type *) |
Callback type used for functions taking a string as an argument. | |
typedef value_type(* | mu::strfun_type2) (const char_type *, value_type) |
Callback type used for functions taking a string and a value as arguments. | |
typedef value_type(* | mu::strfun_type3) (const char_type *, value_type, value_type) |
Callback type used for functions taking a string and two values as arguments. | |
typedef value_type(* | mu::strfun_type4) (const char_type *, value_type, value_type, value_type) |
Callback type used for functions taking a string and a value as arguments. | |
typedef value_type(* | mu::strfun_type5) (const char_type *, value_type, value_type, value_type, value_type) |
Callback type used for functions taking a string and two values as arguments. | |
typedef int(* | mu::identfun_type) (const char_type *sExpr, int *nPos, value_type *fVal) |
Callback used for functions that identify values in a string. | |
typedef value_type *(* | mu::facfun_type) (const char_type *, void *) |
Callback used for variable creation factory functions. | |
Functions | |
std::ostream & | mu::console () |
Encapsulate cout. More... | |
std::istream & | mu::console_in () |
Encapsulate cin. More... | |
Variables | |
static const int | mu::MaxLenExpression = 5000 |
static const int | mu::MaxLenIdentifier = 100 |
static const string_type | mu::ParserVersion = string_type(_T("2.3.2")) |
static const string_type | mu::ParserVersionDate = string_type(_T("20200617")) |
This file contains standard definitions used by the parser.
Definition in file muParserDef.h.
#define _T | ( | x | ) | x |
Activate this option in order to compile with OpenMP support.
OpenMP is used only in the bulk mode it may increase the performance a bit.
!!! DO NOT ACTIVATE THIS MACRO HERE IF YOU USE CMAKE FOR BUILDING !!!
use the cmake option instead!
Definition at line 69 of file muParserDef.h.
Referenced by mu::ParserByteCode::AsciiDump(), mu::ParserBase::GetVersion(), mu::Parser::InitCharSets(), mu::Parser::InitConst(), mu::Parser::InitFun(), mu::ParserInt::InitFun(), mu::Parser::InitOprt(), mu::ParserInt::InitOprt(), mu::ParserError::ParserError(), and mu::ParserBase::SetExpr().
#define MUP_ASSERT | ( | COND | ) |
An assertion that does not kill the program.
Definition at line 77 of file muParserDef.h.
Referenced by mu::ParserByteCode::AddOp(), mu::ParserToken< value_type, string_type >::GetArgCount(), mu::ParserTokenReader::ParserTokenReader(), mu::ParserTokenReader::ReadNextToken(), mu::ParserToken< value_type, string_type >::Set(), mu::ParserBase::ValidInfixOprtChars(), mu::ParserBase::ValidNameChars(), and mu::ParserBase::ValidOprtChars().
#define MUP_BASETYPE double |
Define the base datatype for values.
This datatype must be a built in value type. You can not use custom classes. It should be working with all types except "int"!
Definition at line 48 of file muParserDef.h.