OpcUaCanOpen
CANopen OPC-UA server
exprtk::function_compositor< T > Class Template Reference

#include <exprtk.hpp>

Classes

struct  base_func
 
struct  func_0param
 
struct  func_1param
 
struct  func_2param
 
struct  func_3param
 
struct  func_4param
 
struct  func_5param
 
struct  func_6param
 
struct  function
 
struct  scoped_bft
 

Public Types

typedef exprtk::expression< T > expression_t
 
typedef exprtk::symbol_table< T > symbol_table_t
 
typedef exprtk::parser< T > parser_t
 
typedef parser_t::settings_store settings_t
 

Public Member Functions

 function_compositor ()
 
 function_compositor (const symbol_table_t &st)
 
 ~function_compositor ()
 
symbol_table_tsymbol_table ()
 
void add_auxiliary_symtab (symbol_table_t &symtab)
 
void clear ()
 
bool add (const function &f, const bool override=false)
 

Private Types

typedef std::map< std::string, base_func * > funcparam_t
 
typedef const T & type
 

Private Member Functions

 def_fp_retval (0) def_fp_retval(1) def_fp_retval(2) def_fp_retval(3) def_fp_retval(4) def_fp_retval(5) def_fp_retval(6) template< typename Allocator
 
template<typename , typename >
class Sequence inline bool add (const std::string &name, const std::string &expression, const Sequence< std::string, Allocator > &var_list, const bool override=false)
 
template<typename Allocator , template< typename, typename > class Sequence>
bool compile_expression (const std::string &name, const std::string &expression, const Sequence< std::string, Allocator > &input_var_list, bool return_present=false)
 
bool symbol_used (const std::string &symbol) const
 
bool valid (const std::string &name, const std::size_t &arg_count) const
 
bool forward (const std::string &name, const std::size_t &arg_count, symbol_table_t &sym_table, const bool ret_present=false)
 
void remove (const std::string &name, const std::size_t &arg_count)
 

Static Private Member Functions

static T return_value (expression_t &e)
 

Private Attributes

symbol_table_t symbol_table_
 
parser_t parser_
 
std::map< std::string, expression_texpr_map_
 
std::vector< funcparam_tfp_map_
 
std::vector< symbol_table_t * > auxiliary_symtab_list_
 

Detailed Description

template<typename T>
class exprtk::function_compositor< T >

Definition at line 17744 of file exprtk.hpp.

Member Typedef Documentation

◆ expression_t

template<typename T >
typedef exprtk::expression<T> exprtk::function_compositor< T >::expression_t

Definition at line 36039 of file exprtk.hpp.

◆ funcparam_t

template<typename T >
typedef std::map<std::string,base_func*> exprtk::function_compositor< T >::funcparam_t
private

Definition at line 36351 of file exprtk.hpp.

◆ parser_t

template<typename T >
typedef exprtk::parser<T> exprtk::function_compositor< T >::parser_t

Definition at line 36041 of file exprtk.hpp.

◆ settings_t

Definition at line 36042 of file exprtk.hpp.

◆ symbol_table_t

template<typename T >
typedef exprtk::symbol_table<T> exprtk::function_compositor< T >::symbol_table_t

Definition at line 36040 of file exprtk.hpp.

◆ type

template<typename T >
typedef const T& exprtk::function_compositor< T >::type
private

Definition at line 36365 of file exprtk.hpp.

Constructor & Destructor Documentation

◆ function_compositor() [1/2]

template<typename T >
exprtk::function_compositor< T >::function_compositor ( )
inline

Definition at line 36542 of file exprtk.hpp.

◆ function_compositor() [2/2]

template<typename T >
exprtk::function_compositor< T >::function_compositor ( const symbol_table_t st)
inline

Definition at line 36548 of file exprtk.hpp.

◆ ~function_compositor()

template<typename T >
exprtk::function_compositor< T >::~function_compositor ( )
inline

Definition at line 36555 of file exprtk.hpp.

Member Function Documentation

◆ add() [1/2]

template<typename T >
template<typename , typename >
class Sequence inline bool exprtk::function_compositor< T >::add ( const std::string &  name,
const std::string &  expression,
const Sequence< std::string, Allocator > &  var_list,
const bool  override = false 
)
inlineprivate

Definition at line 36503 of file exprtk.hpp.

◆ add() [2/2]

template<typename T >
bool exprtk::function_compositor< T >::add ( const function f,
const bool  override = false 
)
inline

Definition at line 36590 of file exprtk.hpp.

◆ add_auxiliary_symtab()

template<typename T >
void exprtk::function_compositor< T >::add_auxiliary_symtab ( symbol_table_t symtab)
inline

Definition at line 36565 of file exprtk.hpp.

◆ clear()

template<typename T >
void exprtk::function_compositor< T >::clear ( )
inline

Definition at line 36570 of file exprtk.hpp.

◆ compile_expression()

template<typename T >
template<typename Allocator , template< typename, typename > class Sequence>
bool exprtk::function_compositor< T >::compile_expression ( const std::string &  name,
const std::string &  expression,
const Sequence< std::string, Allocator > &  input_var_list,
bool  return_present = false 
)
inlineprivate

Definition at line 36599 of file exprtk.hpp.

◆ def_fp_retval()

template<typename T >
exprtk::function_compositor< T >::def_fp_retval ( )
private

◆ forward()

template<typename T >
bool exprtk::function_compositor< T >::forward ( const std::string &  name,
const std::size_t &  arg_count,
symbol_table_t sym_table,
const bool  ret_present = false 
)
inlineprivate

Definition at line 36719 of file exprtk.hpp.

◆ remove()

template<typename T >
void exprtk::function_compositor< T >::remove ( const std::string &  name,
const std::size_t &  arg_count 
)
inlineprivate

Definition at line 36745 of file exprtk.hpp.

◆ return_value()

template<typename T >
static T exprtk::function_compositor< T >::return_value ( expression_t e)
inlinestaticprivate

Definition at line 36465 of file exprtk.hpp.

◆ symbol_table()

template<typename T >
symbol_table_t& exprtk::function_compositor< T >::symbol_table ( )
inline

Definition at line 36560 of file exprtk.hpp.

◆ symbol_used()

template<typename T >
bool exprtk::function_compositor< T >::symbol_used ( const std::string &  symbol) const
inlineprivate

Definition at line 36695 of file exprtk.hpp.

◆ valid()

template<typename T >
bool exprtk::function_compositor< T >::valid ( const std::string &  name,
const std::size_t &  arg_count 
) const
inlineprivate

Definition at line 36706 of file exprtk.hpp.

Member Data Documentation

◆ auxiliary_symtab_list_

template<typename T >
std::vector<symbol_table_t*> exprtk::function_compositor< T >::auxiliary_symtab_list_
private

Definition at line 36774 of file exprtk.hpp.

◆ expr_map_

template<typename T >
std::map<std::string,expression_t> exprtk::function_compositor< T >::expr_map_
private

Definition at line 36772 of file exprtk.hpp.

◆ fp_map_

template<typename T >
std::vector<funcparam_t> exprtk::function_compositor< T >::fp_map_
private

Definition at line 36773 of file exprtk.hpp.

◆ parser_

template<typename T >
parser_t exprtk::function_compositor< T >::parser_
private

Definition at line 36771 of file exprtk.hpp.

◆ symbol_table_

template<typename T >
symbol_table_t exprtk::function_compositor< T >::symbol_table_
private

Definition at line 36770 of file exprtk.hpp.


The documentation for this class was generated from the following file: