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

#include <exprtk.hh>

Inheritance diagram for Dune::Copasi::ExprTkParser:
Inheritance graph
[legend]
Collaboration diagram for Dune::Copasi::ExprTkParser:
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
 
using Function4D = typename Parser::Function4D
 
- 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

 ExprTkParser ()
 
 ExprTkParser (const ExprTkParser &)=delete
 
 ExprTkParser (ExprTkParser &&)=default
 
ExprTkParseroperator= (const ExprTkParser &)=delete
 
ExprTkParseroperator= (ExprTkParser &&)=default
 
 ~ExprTkParser () override final
 
void define_constant (const std::string &symbol, const RangeField &value) override final
 
void define_function (const std::string &symbol, Function0D &&function) override final
 
void define_function (const std::string &symbol, Function1D &&function) override final
 
void define_function (const std::string &symbol, Function2D &&function) override final
 
void define_function (const std::string &symbol, Function3D &&function) override final
 
void define_function (const std::string &symbol, Function4D &&function) override final
 
void compile () override final
 
RangeField operator() () const noexcept override 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

◆ Function4D

◆ RangeField

Constructor & Destructor Documentation

◆ ExprTkParser() [1/3]

Dune::Copasi::ExprTkParser::ExprTkParser ( )

◆ ExprTkParser() [2/3]

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

◆ ExprTkParser() [3/3]

Dune::Copasi::ExprTkParser::ExprTkParser ( ExprTkParser && )
default

◆ ~ExprTkParser()

Dune::Copasi::ExprTkParser::~ExprTkParser ( )
finaloverride

Member Function Documentation

◆ compile()

void Dune::Copasi::ExprTkParser::compile ( )
finaloverridevirtual

Implements Dune::Copasi::Parser.

◆ define_constant()

void Dune::Copasi::ExprTkParser::define_constant ( const std::string & symbol,
const RangeField & value )
finaloverridevirtual

Implements Dune::Copasi::Parser.

◆ define_function() [1/5]

void Dune::Copasi::ExprTkParser::define_function ( const std::string & symbol,
Function0D && function )
finaloverridevirtual

Implements Dune::Copasi::Parser.

◆ define_function() [2/5]

void Dune::Copasi::ExprTkParser::define_function ( const std::string & symbol,
Function1D && function )
finaloverridevirtual

Implements Dune::Copasi::Parser.

◆ define_function() [3/5]

void Dune::Copasi::ExprTkParser::define_function ( const std::string & symbol,
Function2D && function )
finaloverridevirtual

Implements Dune::Copasi::Parser.

◆ define_function() [4/5]

void Dune::Copasi::ExprTkParser::define_function ( const std::string & symbol,
Function3D && function )
finaloverridevirtual

Implements Dune::Copasi::Parser.

◆ define_function() [5/5]

void Dune::Copasi::ExprTkParser::define_function ( const std::string & symbol,
Function4D && function )
finaloverridevirtual

Implements Dune::Copasi::Parser.

◆ operator()()

RangeField Dune::Copasi::ExprTkParser::operator() ( ) const
finaloverridevirtualnoexcept

Implements Dune::Copasi::Parser.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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