dune-common 2.9.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::VirtualFunction< DomainType, RangeType > Class Template Referenceabstract

Virtual base class template for function classes. More...

#include <dune/common/function.hh>

Inheritance diagram for Dune::VirtualFunction< DomainType, RangeType >:
Inheritance graph

Public Types

typedef Function< constDomainType &, RangeType & >::Traits Traits
 
typedef RawRangeType RangeType
 Raw type of input variable with removed reference and constness.
 
typedef RawDomainType DomainType
 Raw type of output variable with removed reference and constness.
 

Public Member Functions

virtual ~VirtualFunction ()
 
virtual void evaluate (const typename Traits::DomainType &x, typename Traits::RangeType &y) const =0
 Function evaluation.
 

Detailed Description

template<class DomainType, class RangeType>
class Dune::VirtualFunction< DomainType, RangeType >

Virtual base class template for function classes.

See also
makeVirtualFunction for a helper to convert lambda functions to VirtualFunction objects.
Template Parameters
DomainTypeThe type of the input variable is 'const DomainType &'
RangeTypeThe type of the output variable is 'RangeType &'

Member Typedef Documentation

◆ DomainType

typedef RawDomainType Dune::Function< const DomainType & , RangeType & >::DomainType
inherited

Raw type of output variable with removed reference and constness.

◆ RangeType

typedef RawRangeType Dune::Function< const DomainType & , RangeType & >::RangeType
inherited

Raw type of input variable with removed reference and constness.

◆ Traits

template<class DomainType , class RangeType >
typedef Function<constDomainType&,RangeType&>::Traits Dune::VirtualFunction< DomainType, RangeType >::Traits

Constructor & Destructor Documentation

◆ ~VirtualFunction()

template<class DomainType , class RangeType >
virtual Dune::VirtualFunction< DomainType, RangeType >::~VirtualFunction ( )
inlinevirtual

Member Function Documentation

◆ evaluate()

template<class DomainType , class RangeType >
virtual void Dune::VirtualFunction< DomainType, RangeType >::evaluate ( const typename Traits::DomainType x,
typename Traits::RangeType y 
) const
pure virtual

Function evaluation.

Parameters
xArgument for function evaluation.
yResult of function evaluation.

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