Dune::Copasi
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::Copasi::MuParser Class Referencefinal

#include <mu.hh>

Inheritance diagram for Dune::Copasi::MuParser:
Inheritance graph
[legend]
Collaboration diagram for Dune::Copasi::MuParser:
Collaboration graph
[legend]

Public Types

using RangeField = typename Parser::RangeField
 
using Function0D = typename Parser::Function0D
 
using Function1D = typename Parser::Function1D
 
using Function2D = typename Parser::Function2D
 
using Function3D = typename Parser::Function3D
 
- Public Types inherited from Dune::Copasi::Parser
using RangeField = double
 
using Function0D = fu2::unique_function<RangeField() const>
 
using Function1D = fu2::unique_function<RangeField(RangeField) const>
 
using Function2D = fu2::unique_function<RangeField(RangeField, RangeField) const>
 
using Function3D = fu2::unique_function<RangeField(RangeField, RangeField, RangeField) const>
 
using Function4D = fu2::unique_function<RangeField(RangeField, RangeField, RangeField, RangeField) const>
 

Public Member Functions

 MuParser ()
 
 MuParser (const MuParser &)=delete
 
 MuParser (MuParser &&)=default
 
MuParseroperator= (const MuParser &)=delete
 
MuParseroperator= (MuParser &&)=default
 
 ~MuParser () override final
 
void define_constant (const std::string &symbol, const RangeField &value) final
 
void define_function (const std::string &symbol, Function0D &&function) final
 
void define_function (const std::string &symbol, Function1D &&function) final
 
void define_function (const std::string &symbol, Function2D &&function) final
 
void define_function (const std::string &symbol, Function3D &&function) final
 
void define_function (const std::string &symbol, Function4D &&function) final
 
void compile () final
 
RangeField operator() () const noexcept final
 
- Public Member Functions inherited from Dune::Copasi::Parser
 Parser ()=default
 
 Parser (const Parser &)=delete
 
 Parser (Parser &&)=default
 
Parseroperator= (const Parser &)=delete
 
Parseroperator= (Parser &&)=default
 
virtual ~Parser ()=default
 
virtual void set_expression (const std::string &expression)
 
std::string expression () const
 
virtual void define_variable (const std::string &symbol, RangeField const *value)
 
bool compiled () const
 

Additional Inherited Members

- Protected Attributes inherited from Dune::Copasi::Parser
bool _compiled = false
 
std::string _expression
 
std::vector< std::string > _symbols
 
std::vector< RangeField const * > _variables
 

Member Typedef Documentation

◆ Function0D

◆ Function1D

◆ Function2D

◆ Function3D

◆ RangeField

Constructor & Destructor Documentation

◆ MuParser() [1/3]

Dune::Copasi::MuParser::MuParser ( )

◆ MuParser() [2/3]

Dune::Copasi::MuParser::MuParser ( const MuParser & )
delete

◆ MuParser() [3/3]

Dune::Copasi::MuParser::MuParser ( MuParser && )
default

◆ ~MuParser()

Dune::Copasi::MuParser::~MuParser ( )
finaloverride

Member Function Documentation

◆ compile()

void Dune::Copasi::MuParser::compile ( )
finalvirtual

Implements Dune::Copasi::Parser.

◆ define_constant()

void Dune::Copasi::MuParser::define_constant ( const std::string & symbol,
const RangeField & value )
finalvirtual

Implements Dune::Copasi::Parser.

◆ define_function() [1/5]

void Dune::Copasi::MuParser::define_function ( const std::string & symbol,
Function0D && function )
finalvirtual

Implements Dune::Copasi::Parser.

◆ define_function() [2/5]

void Dune::Copasi::MuParser::define_function ( const std::string & symbol,
Function1D && function )
finalvirtual

Implements Dune::Copasi::Parser.

◆ define_function() [3/5]

void Dune::Copasi::MuParser::define_function ( const std::string & symbol,
Function2D && function )
finalvirtual

Implements Dune::Copasi::Parser.

◆ define_function() [4/5]

void Dune::Copasi::MuParser::define_function ( const std::string & symbol,
Function3D && function )
finalvirtual

Implements Dune::Copasi::Parser.

◆ define_function() [5/5]

void Dune::Copasi::MuParser::define_function ( const std::string & symbol,
Function4D && function )
finalvirtual

Implements Dune::Copasi::Parser.

◆ operator()()

RangeField Dune::Copasi::MuParser::operator() ( ) const
finalvirtualnoexcept

Implements Dune::Copasi::Parser.

◆ operator=() [1/2]

MuParser & Dune::Copasi::MuParser::operator= ( const MuParser & )
delete

◆ operator=() [2/2]

MuParser & Dune::Copasi::MuParser::operator= ( MuParser && )
default

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