DUNE-ACFEM (2.5.1)
Dune::ACFem::ExpressionTemplate< ExpressionImp > Struct Template Reference
Provide up-cast functionality for expression templates. More...
#include <dune/acfem/expressions/expressionoperations.hh>
Public Types | |
typedef ExpressionImp | ExpressionType |
The type of the underlying expression. | |
Public Member Functions | |
const ExpressionType & | expression () const |
Return a const reference to the underlying expression. | |
ExpressionType & | expression () |
Return a mutable reference to the underlying expression. | |
ExpressionType | operator* () const |
Return a copy from of the underlying expression. | |
Detailed Description
template<class ExpressionImp>
struct Dune::ACFem::ExpressionTemplate< ExpressionImp >
struct Dune::ACFem::ExpressionTemplate< ExpressionImp >
Provide up-cast functionality for expression templates.
Some expression (like the IdentityOperation) should avoid double-wrapping of existing expression templates. To ease this task, expression templates can inherit from this structure. See gridfunctionexpressions.hh for an example.
Also, any class inheriting directly or indirectly form this class is stored as a copy inside expression templates in order to allow forming expressions from temporaries without having to worry about dangling references.
The documentation for this struct was generated from the following file:
- dune/acfem/expressions/expressionoperations.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)