OpcUaCanOpen
CANopen OPC-UA server
example1.cpp File Reference
#include "muParserTest.h"
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <string>
#include <iostream>
#include <locale>
#include <limits>
#include <ios>
#include <iomanip>
#include <numeric>
#include "muParser.h"

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
 This macro will enable mathematical constants like M_PI. More...
 

Functions

void CalcBulk ()
 
static value_type Mega (value_type a_fVal)
 
static value_type Milli (value_type a_fVal)
 
static value_type Rnd (value_type v)
 
static value_type Not (value_type v)
 
static value_type Add (value_type v1, value_type v2)
 
static value_type Mul (value_type v1, value_type v2)
 
static value_type ThrowAnException (value_type)
 
static value_type BulkFun1 (int nBulkIdx, int nThreadIdx, value_type v1)
 
static value_type Ping ()
 
static value_type StrFun0 (const char_type *szMsg)
 
static value_type StrFun2 (const char_type *v1, value_type v2, value_type v3)
 
static value_type Debug (mu::value_type v1, mu::value_type v2)
 
static value_typeAddVariable (const char_type *a_szName, void *a_pUserData)
 
static int IsHexValue (const char_type *a_szExpr, int *a_iPos, value_type *a_fVal)
 
static void Splash ()
 
static value_type SelfTest ()
 
static value_type Help ()
 
static void ListVar (const mu::ParserBase &parser)
 
static void ListConst (const mu::ParserBase &parser)
 
static void ListExprVar (const mu::ParserBase &parser)
 
static int CheckKeywords (const mu::char_type *a_szLine, mu::Parser &a_Parser)
 Check for external keywords. More...
 
static void Calc ()
 
int main (int, char **)
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

This macro will enable mathematical constants like M_PI.

Definition at line 31 of file example1.cpp.

Function Documentation

◆ Add()

static value_type Add ( value_type  v1,
value_type  v2 
)
static

Definition at line 73 of file example1.cpp.

◆ AddVariable()

static value_type* AddVariable ( const char_type a_szName,
void *  a_pUserData 
)
static

Definition at line 124 of file example1.cpp.

◆ BulkFun1()

static value_type BulkFun1 ( int  nBulkIdx,
int  nThreadIdx,
value_type  v1 
)
static

Definition at line 83 of file example1.cpp.

◆ Calc()

static void Calc ( )
static

Definition at line 449 of file example1.cpp.

◆ CalcBulk()

void CalcBulk ( )

Definition at line 409 of file example1.cpp.

◆ CheckKeywords()

static int CheckKeywords ( const mu::char_type a_szLine,
mu::Parser a_Parser 
)
static

Check for external keywords.

Definition at line 341 of file example1.cpp.

◆ Debug()

static value_type Debug ( mu::value_type  v1,
mu::value_type  v2 
)
static

Definition at line 114 of file example1.cpp.

◆ Help()

static value_type Help ( )
static

Definition at line 204 of file example1.cpp.

◆ IsHexValue()

static int IsHexValue ( const char_type a_szExpr,
int *  a_iPos,
value_type a_fVal 
)
static

Definition at line 148 of file example1.cpp.

◆ ListConst()

static void ListConst ( const mu::ParserBase parser)
static

Definition at line 291 of file example1.cpp.

◆ ListExprVar()

static void ListExprVar ( const mu::ParserBase parser)
static

Definition at line 310 of file example1.cpp.

◆ ListVar()

static void ListVar ( const mu::ParserBase parser)
static

Definition at line 275 of file example1.cpp.

◆ main()

int main ( int  ,
char **   
)

Definition at line 562 of file example1.cpp.

◆ Mega()

static value_type Mega ( value_type  a_fVal)
static

Definition at line 69 of file example1.cpp.

◆ Milli()

static value_type Milli ( value_type  a_fVal)
static

Definition at line 70 of file example1.cpp.

◆ Mul()

static value_type Mul ( value_type  v1,
value_type  v2 
)
static

Definition at line 74 of file example1.cpp.

◆ Not()

static value_type Not ( value_type  v)
static

Definition at line 72 of file example1.cpp.

◆ Ping()

static value_type Ping ( )
static

Definition at line 91 of file example1.cpp.

◆ Rnd()

static value_type Rnd ( value_type  v)
static

Definition at line 71 of file example1.cpp.

◆ SelfTest()

static value_type SelfTest ( )
static

Definition at line 184 of file example1.cpp.

◆ Splash()

static void Splash ( )
static

Definition at line 171 of file example1.cpp.

◆ StrFun0()

static value_type StrFun0 ( const char_type szMsg)
static

Definition at line 98 of file example1.cpp.

◆ StrFun2()

static value_type StrFun2 ( const char_type v1,
value_type  v2,
value_type  v3 
)
static

Definition at line 107 of file example1.cpp.

◆ ThrowAnException()

static value_type ThrowAnException ( value_type  )
static

Definition at line 77 of file example1.cpp.