VR-Vantage
Loading...
Searching...
No Matches
exprtk Namespace Reference

Namespaces

namespace  details
namespace  lexer
namespace  parser_error
namespace  rtl
namespace  information

Classes

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

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 &expr_str, Sequence< std::string, Allocator > &symbol_list)
template<typename T, typename Allocator, template< typename, typename > class Sequence>
bool collect_variables (const std::string &expr_str, 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 &expr_str, Sequence< std::string, Allocator > &symbol_list)
template<typename T, typename Allocator, template< typename, typename > class Sequence>
bool collect_functions (const std::string &expr_str, exprtk::symbol_table< T > &extrnl_symbol_table, Sequence< std::string, Allocator > &symbol_list)
template<typename T>
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>
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>
T derivative (const expression< T > &e, T &x, const T &h=T(0.00000001))
template<typename T>
T second_derivative (const expression< T > &e, T &x, const T &h=T(0.00001))
template<typename T>
T third_derivative (const expression< T > &e, T &x, const T &h=T(0.0001))
template<typename T>
T derivative (const expression< T > &e, const std::string &variable_name, const T &h=T(0.00000001))
template<typename T>
T second_derivative (const expression< T > &e, const std::string &variable_name, const T &h=T(0.00001))
template<typename T>
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 ()

Function Documentation

◆ make_vector_view() [1/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

◆ make_vector_view() [2/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

◆ to_str()

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

◆ enable_zero_parameters()

template<typename FunctionType>
void exprtk::enable_zero_parameters ( 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)

◆ disable_has_side_effects()

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

◆ set_min_num_args()

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

References set_min_num_args().

Referenced by set_min_num_args().

◆ set_max_num_args()

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

References set_max_num_args().

Referenced by set_max_num_args().

◆ is_valid()

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

◆ collect_variables() [1/2]

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

◆ collect_variables() [2/2]

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

◆ collect_functions() [1/2]

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

◆ collect_functions() [2/2]

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

◆ integrate() [1/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

References integrate().

Referenced by integrate(), and integrate().

◆ integrate() [2/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

◆ derivative() [1/2]

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

References derivative().

Referenced by derivative(), and derivative().

◆ second_derivative() [1/2]

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

◆ third_derivative() [1/2]

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

References third_derivative().

Referenced by third_derivative(), and third_derivative().

◆ derivative() [2/2]

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

◆ second_derivative() [2/2]

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

◆ third_derivative() [2/2]

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

◆ compute() [1/4]

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

◆ compute() [2/4]

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

◆ compute() [3/4]

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

◆ compute() [4/4]

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

◆ pgo_primer()