INMOST
A toolkit for distributed mathematical modeling
INMOST::etype_branch_variable< A, B > Class Template Reference

This class makes possible to evaluate different expressions on different element types. More...

#include <inmost_variable.h>

Inheritance diagram for INMOST::etype_branch_variable< A, B >:
Collaboration diagram for INMOST::etype_branch_variable< A, B >:

Public Member Functions

 etype_branch_variable (ElementType _types_true, const A &_ArgA, const B &_ArgB)
 Constructor. Used by etype_branch function.
 
 etype_branch_variable (const etype_branch_variable &other)
 Copy constructor.
 
etype_branch_variableoperator= (etype_branch_variable const &other)
 Assignment operator.
 
INMOST_DATA_REAL_TYPE Value (const Storage &e) const
 Get value of variable expression on provided element e.
 
multivar_expression Variable (const Storage &e) const
 Get value with derivatives of variable expression on provided element e. More...
 
multivar_expression operator[] (const Storage &e) const
 Build an expression associated with variable expression on provided element e.
 
void GetVariation (const Storage &e, Sparse::Row &r) const
 Retrieve first derivatives of variable expression on provided element e, default approach.
 
void GetVariation (const Storage &e, Sparse::RowMerger &r) const
 Retrieve first derivatives of variable expression on provided element e, with supplimentary structure Sparse::RowMerger.
 
abstract_dynamic_variableCopy () const
 Make a copy of this class, used to reproduce and store a tree of variable expressions.
 
- Public Member Functions inherited from INMOST::shell_dynamic_variable< multivar_expression, etype_branch_variable< A, B > >
virtual multivar_expression operator() (const Storage &e) const
 
 operator etype_branch_variable< A, B > & ()
 
 operator const etype_branch_variable< A, B > & () const
 

Additional Inherited Members

- Public Types inherited from INMOST::shell_dynamic_variable< multivar_expression, etype_branch_variable< A, B > >
typedef multivar_expression Var
 
- Public Types inherited from INMOST::basic_dynamic_variable< VariableType >
typedef VariableType Var
 

Detailed Description

template<class A, class B>
class INMOST::etype_branch_variable< A, B >

This class makes possible to evaluate different expressions on different element types.

See etype_branch function.

Definition at line 507 of file inmost_variable.h.

Member Function Documentation

◆ Variable()

template<class A , class B >
multivar_expression INMOST::etype_branch_variable< A, B >::Variable ( const Storage e) const
inlinevirtual

Get value with derivatives of variable expression on provided element e.

This function collapses associated expression tree into multivar_expression.

Implements INMOST::basic_dynamic_variable< VariableType >.

Definition at line 530 of file inmost_variable.h.


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