DUNE-ACFEM (2.5.1)

Dune::ACFem::ExpressionStorage< SomeThing > Struct Template Reference

An ExpressionStorage object stores either a copy or a reference of an object. More...

#include <dune/acfem/expressions/expressionoperations.hh>

Detailed Description

template<class SomeThing>
struct Dune::ACFem::ExpressionStorage< SomeThing >

An ExpressionStorage object stores either a copy or a reference of an object.

The default is to store copies for something which inherits from ExpressionTemplate<SomeThing> and otherwise to store references. In order to be stored as copy (thus allowing for copying temporaries in expressions) one can either inherit from ExpressionTemplate<Impl> or specialize the ExpressionStorage class for the particular object.

This way "real" non-expression objects like discrete functions etc. are stored as references, anything which claims to be an expression is copied.


The documentation for this struct was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 4, 22:30, 2024)