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

This class makes possible to evaluate different expressions depending on the markers. More...

#include <inmost_variable.h>

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

Public Member Functions

 marker_branch_variable (MarkerType _marker, const A &_ArgA, const B &_ArgB)
 Constructor. Used by marker_branch function.
 
 marker_branch_variable (const marker_branch_variable &other)
 Copy constructor.
 
marker_branch_variableoperator= (marker_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, marker_branch_variable< A, B > >
virtual multivar_expression operator() (const Storage &e) const
 
 operator marker_branch_variable< A, B > & ()
 
 operator const marker_branch_variable< A, B > & () const
 

Additional Inherited Members

- Public Types inherited from INMOST::shell_dynamic_variable< multivar_expression, marker_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::marker_branch_variable< A, B >

This class makes possible to evaluate different expressions depending on the markers.

Works similarly for shared and private markers. See marker_branch function.

Definition at line 550 of file inmost_variable.h.

Member Function Documentation

◆ Variable()

template<class A , class B >
multivar_expression INMOST::marker_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 573 of file inmost_variable.h.


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