exprtk Namespace Reference

Namespaces

namespace  details
 
namespace  information
 
namespace  lexer
 
namespace  parser_error
 
namespace  rtl
 

Classes

class  expression
 
class  expression_helper
 
class  function_compositor
 
class  function_traits
 
class  ifunction
 
class  igeneric_function
 
class  ivararg_function
 
struct  loop_runtime_check
 
class  parser
 
class  polynomial
 
class  results_context
 
class  symbol_table
 
class  timer
 
struct  type_store
 
class  vector_view
 

Typedefs

typedef loop_runtime_checkloop_runtime_check_ptr
 

Functions

template<typename T >
vector_view< T > make_vector_view (T *data, const std::size_t size, const std::size_t offset=0)
 
template<typename T >
vector_view< T > make_vector_view (std::vector< T > &v, const std::size_t size, const std::size_t offset=0)
 
template<typename StringView >
std::string to_str (const StringView &view)
 
template<typename FunctionType >
void enable_zero_parameters (FunctionType &func)
 
template<typename FunctionType >
void disable_zero_parameters (FunctionType &func)
 
template<typename FunctionType >
void enable_has_side_effects (FunctionType &func)
 
template<typename FunctionType >
void disable_has_side_effects (FunctionType &func)
 
template<typename FunctionType >
void set_min_num_args (FunctionType &func, const std::size_t &num_args)
 
template<typename FunctionType >
void set_max_num_args (FunctionType &func, const std::size_t &num_args)
 
template<typename T >
bool is_valid (const expression< T > &expr)
 
template<typename Allocator , template< typename, typename > class Sequence>
bool collect_variables (const std::string &expression, Sequence< std::string, Allocator > &symbol_list)
 
template<typename T , typename Allocator , template< typename, typename > class Sequence>
bool collect_variables (const std::string &expression, exprtk::symbol_table< T > &extrnl_symbol_table, Sequence< std::string, Allocator > &symbol_list)
 
template<typename Allocator , template< typename, typename > class Sequence>
bool collect_functions (const std::string &expression, Sequence< std::string, Allocator > &symbol_list)
 
template<typename T , typename Allocator , template< typename, typename > class Sequence>
bool collect_functions (const std::string &expression, exprtk::symbol_table< T > &extrnl_symbol_table, Sequence< std::string, Allocator > &symbol_list)
 
template<typename T >
integrate (const expression< T > &e, T &x, const T &r0, const T &r1, const std::size_t number_of_intervals=1000000)
 
template<typename T >
integrate (const expression< T > &e, const std::string &variable_name, const T &r0, const T &r1, const std::size_t number_of_intervals=1000000)
 
template<typename T >
derivative (const expression< T > &e, T &x, const T &h=T(0.00000001))
 
template<typename T >
second_derivative (const expression< T > &e, T &x, const T &h=T(0.00001))
 
template<typename T >
third_derivative (const expression< T > &e, T &x, const T &h=T(0.0001))
 
template<typename T >
derivative (const expression< T > &e, const std::string &variable_name, const T &h=T(0.00000001))
 
template<typename T >
second_derivative (const expression< T > &e, const std::string &variable_name, const T &h=T(0.00001))
 
template<typename T >
third_derivative (const expression< T > &e, const std::string &variable_name, const T &h=T(0.0001))
 
template<typename T >
bool compute (const std::string &expression_string, T &result)
 
template<typename T >
bool compute (const std::string &expression_string, const T &x, T &result)
 
template<typename T >
bool compute (const std::string &expression_string, const T &x, const T &y, T &result)
 
template<typename T >
bool compute (const std::string &expression_string, const T &x, const T &y, const T &z, T &result)
 
template<typename T >
bool pgo_primer ()
 

Typedef Documentation

◆ loop_runtime_check_ptr

Function Documentation

◆ collect_functions() [1/2]

template<typename T , typename Allocator , template< typename, typename > class Sequence>
bool exprtk::collect_functions ( const std::string expression,
exprtk::symbol_table< T > &  extrnl_symbol_table,
Sequence< std::string, Allocator > &  symbol_list 
)
inline

◆ collect_functions() [2/2]

template<typename Allocator , template< typename, typename > class Sequence>
bool exprtk::collect_functions ( const std::string expression,
Sequence< std::string, Allocator > &  symbol_list 
)
inline

◆ collect_variables() [1/2]

template<typename T , typename Allocator , template< typename, typename > class Sequence>
bool exprtk::collect_variables ( const std::string expression,
exprtk::symbol_table< T > &  extrnl_symbol_table,
Sequence< std::string, Allocator > &  symbol_list 
)
inline

◆ collect_variables() [2/2]

template<typename Allocator , template< typename, typename > class Sequence>
bool exprtk::collect_variables ( const std::string expression,
Sequence< std::string, Allocator > &  symbol_list 
)
inline

◆ compute() [1/4]

template<typename T >
bool exprtk::compute ( const std::string expression_string,
const T &  x,
const T &  y,
const T &  z,
T &  result 
)
inline

◆ compute() [2/4]

◆ compute() [3/4]

◆ compute() [4/4]

template<typename T >
bool exprtk::compute ( const std::string expression_string,
T &  result 
)
inline

◆ derivative() [1/2]

template<typename T >
T exprtk::derivative ( const expression< T > &  e,
const std::string variable_name,
const T &  h = T(0.00000001) 
)
inline

◆ derivative() [2/2]

template<typename T >
T exprtk::derivative ( const expression< T > &  e,
T &  x,
const T &  h = T(0.00000001) 
)
inline

◆ disable_has_side_effects()

template<typename FunctionType >
void exprtk::disable_has_side_effects ( FunctionType &  func)

◆ disable_zero_parameters()

template<typename FunctionType >
void exprtk::disable_zero_parameters ( FunctionType &  func)

◆ enable_has_side_effects()

template<typename FunctionType >
void exprtk::enable_has_side_effects ( FunctionType &  func)

◆ enable_zero_parameters()

template<typename FunctionType >
void exprtk::enable_zero_parameters ( FunctionType &  func)

◆ integrate() [1/2]

template<typename T >
T exprtk::integrate ( const expression< T > &  e,
const std::string variable_name,
const T &  r0,
const T &  r1,
const std::size_t  number_of_intervals = 1000000 
)
inline

◆ integrate() [2/2]

template<typename T >
T exprtk::integrate ( const expression< T > &  e,
T &  x,
const T &  r0,
const T &  r1,
const std::size_t  number_of_intervals = 1000000 
)
inline

◆ is_valid()

template<typename T >
bool exprtk::is_valid ( const expression< T > &  expr)
inline

◆ make_vector_view() [1/2]

template<typename T >
vector_view< T > exprtk::make_vector_view ( std::vector< T > &  v,
const std::size_t  size,
const std::size_t  offset = 0 
)
inline

◆ make_vector_view() [2/2]

template<typename T >
vector_view< T > exprtk::make_vector_view ( T *  data,
const std::size_t  size,
const std::size_t  offset = 0 
)
inline

◆ pgo_primer()

◆ second_derivative() [1/2]

template<typename T >
T exprtk::second_derivative ( const expression< T > &  e,
const std::string variable_name,
const T &  h = T(0.00001) 
)
inline

◆ second_derivative() [2/2]

template<typename T >
T exprtk::second_derivative ( const expression< T > &  e,
T &  x,
const T &  h = T(0.00001) 
)
inline

◆ set_max_num_args()

template<typename FunctionType >
void exprtk::set_max_num_args ( FunctionType &  func,
const std::size_t &  num_args 
)

◆ set_min_num_args()

template<typename FunctionType >
void exprtk::set_min_num_args ( FunctionType &  func,
const std::size_t &  num_args 
)

◆ third_derivative() [1/2]

template<typename T >
T exprtk::third_derivative ( const expression< T > &  e,
const std::string variable_name,
const T &  h = T(0.0001) 
)
inline

◆ third_derivative() [2/2]

template<typename T >
T exprtk::third_derivative ( const expression< T > &  e,
T &  x,
const T &  h = T(0.0001) 
)
inline

◆ to_str()

template<typename StringView >
std::string exprtk::to_str ( const StringView &  view)
inline