PulseView  unreleased development snapshot
A Qt-based sigrok GUI
exprtk::function_compositor< T > Class Template Reference

#include <exprtk.hpp>

Collaboration diagram for exprtk::function_compositor< T >:

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 17760 of file exprtk.hpp.

Member Typedef Documentation

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

Definition at line 36175 of file exprtk.hpp.

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

Definition at line 36487 of file exprtk.hpp.

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

Definition at line 36177 of file exprtk.hpp.

Definition at line 36178 of file exprtk.hpp.

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

Definition at line 36176 of file exprtk.hpp.

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

Definition at line 36501 of file exprtk.hpp.

Constructor & Destructor Documentation

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

Definition at line 36678 of file exprtk.hpp.

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

Definition at line 36684 of file exprtk.hpp.

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

Definition at line 36691 of file exprtk.hpp.

Member Function Documentation

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 36639 of file exprtk.hpp.

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

Definition at line 36726 of file exprtk.hpp.

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

Definition at line 36701 of file exprtk.hpp.

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

Definition at line 36706 of file exprtk.hpp.

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 36735 of file exprtk.hpp.

Here is the call graph for this function:

template<typename T >
exprtk::function_compositor< T >::def_fp_retval ( )
private
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 36855 of file exprtk.hpp.

Here is the call graph for this function:

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

Definition at line 36881 of file exprtk.hpp.

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

Definition at line 36601 of file exprtk.hpp.

Here is the call graph for this function:

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

Definition at line 36696 of file exprtk.hpp.

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

Definition at line 36831 of file exprtk.hpp.

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

Definition at line 36842 of file exprtk.hpp.

Member Data Documentation

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

Definition at line 36910 of file exprtk.hpp.

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

Definition at line 36908 of file exprtk.hpp.

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

Definition at line 36909 of file exprtk.hpp.

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

Definition at line 36907 of file exprtk.hpp.

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

Definition at line 36906 of file exprtk.hpp.


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