OpcUaCanOpen
CANopen OPC-UA server
|
#include <cstdio>
#include <cmath>
#include <iostream>
#include <fstream>
#include <string>
#include <deque>
#include "exprtk.hpp"
Go to the source code of this file.
Classes | |
struct | native< T > |
struct | native< T > |
Functions | |
template<typename T , typename Allocator , template< typename, typename > class Sequence> | |
bool | load_expression (exprtk::symbol_table< T > &symbol_table, Sequence< exprtk::expression< T >, Allocator > &expr_seq) |
template<typename T > | |
void | run_exprtk_benchmark (T &x, T &y, exprtk::expression< T > &expression, const std::string &expr_string) |
template<typename T , typename NativeFunction > | |
void | run_native_benchmark (T &x, T &y, NativeFunction f, const std::string &expr_string) |
template<typename T > | |
bool | run_parse_benchmark (exprtk::symbol_table< T > &symbol_table) |
void | pgo_primer () |
void | perform_file_based_benchmark (const std::string &file_name, const std::size_t &rounds=100000) |
int | main (int argc, char *argv[]) |
std::size_t | load_expression_file (const std::string &file_name, std::deque< std::string > &expression_list) |
Variables | |
const std::string | global_expression_list [] |
const std::size_t | global_expression_list_size = sizeof(global_expression_list) / sizeof(std::string) |
static const double | global_lower_bound_x = -100.0 |
static const double | global_lower_bound_y = -100.0 |
static const double | global_upper_bound_x = +100.0 |
static const double | global_upper_bound_y = +100.0 |
static const double | global_delta = 0.0111 |
const double | pi = 3.141592653589793238462643383279502 |
bool load_expression | ( | exprtk::symbol_table< T > & | symbol_table, |
Sequence< exprtk::expression< T >, Allocator > & | expr_seq | ||
) |
Definition at line 62 of file exprtk_benchmark.cpp.
std::size_t load_expression_file | ( | const std::string & | file_name, |
std::deque< std::string > & | expression_list | ||
) |
Definition at line 399 of file exprtk_benchmark.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 294 of file exprtk_benchmark.cpp.
void perform_file_based_benchmark | ( | const std::string & | file_name, |
const std::size_t & | rounds = 100000 |
||
) |
Definition at line 423 of file exprtk_benchmark.cpp.
void pgo_primer | ( | ) |
Definition at line 362 of file exprtk_benchmark.cpp.
void run_exprtk_benchmark | ( | T & | x, |
T & | y, | ||
exprtk::expression< T > & | expression, | ||
const std::string & | expr_string | ||
) |
Definition at line 88 of file exprtk_benchmark.cpp.
void run_native_benchmark | ( | T & | x, |
T & | y, | ||
NativeFunction | f, | ||
const std::string & | expr_string | ||
) |
Definition at line 121 of file exprtk_benchmark.cpp.
bool run_parse_benchmark | ( | exprtk::symbol_table< T > & | symbol_table | ) |
Definition at line 150 of file exprtk_benchmark.cpp.
|
static |
Definition at line 56 of file exprtk_benchmark.cpp.
const std::string global_expression_list[] |
Definition at line 30 of file exprtk_benchmark.cpp.
const std::size_t global_expression_list_size = sizeof(global_expression_list) / sizeof(std::string) |
Definition at line 50 of file exprtk_benchmark.cpp.
|
static |
Definition at line 52 of file exprtk_benchmark.cpp.
|
static |
Definition at line 53 of file exprtk_benchmark.cpp.
|
static |
Definition at line 54 of file exprtk_benchmark.cpp.
|
static |
Definition at line 55 of file exprtk_benchmark.cpp.
const double pi = 3.141592653589793238462643383279502 |
Definition at line 186 of file exprtk_benchmark.cpp.