Dune::Copasi
Loading...
Searching...
No Matches
mu.hh
Go to the documentation of this file.
1#ifndef DUNE_COPASI_MU_PARSER_HH
2#define DUNE_COPASI_MU_PARSER_HH
3
5
6#include <memory>
7#include <string>
8
9namespace Dune::Copasi {
10
11class MuParser final : public Parser
12{
13public:
15
16 MuParser(const MuParser&) = delete;
17 MuParser(MuParser&&) = default;
18
19 MuParser& operator=(const MuParser&) = delete;
21
23
25
30
31 void define_constant(const std::string& symbol, const RangeField& value) final;
37
38 void compile() final;
39
41
43 void register_functions();
44
45 void unregister_functions();
46 using Parser::_compiled;
47 using Parser::_expression;
48 using Parser::_symbols;
49 using Parser::_variables;
50
51 std::shared_ptr<void> _parser;
52};
53
54} // namespace Dune::Copasi
55
56#endif // DUNE_COPASI_MU_PARSER_HH
Definition mu.hh:12
typename Parser::Function2D Function2D
Definition mu.hh:28
~MuParser() override final
MuParser & operator=(MuParser &&)=default
void define_constant(const std::string &symbol, const RangeField &value) final
typename Parser::Function3D Function3D
Definition mu.hh:29
MuParser(MuParser &&)=default
void define_function(const std::string &symbol, Function0D &&function) final
typename Parser::Function0D Function0D
Definition mu.hh:26
typename Parser::Function1D Function1D
Definition mu.hh:27
typename Parser::RangeField RangeField
Definition mu.hh:24
MuParser(const MuParser &)=delete
MuParser & operator=(const MuParser &)=delete
Definition parser.hh:16
fu2::unique_function< RangeField(RangeField, RangeField, RangeField, RangeField) const > Function4D
Definition parser.hh:35
Definition axis_names.hh:7
constexpr bool is_bitflags_v
Alias for Bitflag indicator.
Definition bit_flags.hh:24