tfel
Loading...
Searching...
No Matches
tfel::math::parser::EvaluatorFunctionNV< N > Struct Template Referencefinal
Inheritance diagram for tfel::math::parser::EvaluatorFunctionNV< N >:
tfel::math::parser::EvaluatorFunctionBase tfel::math::parser::Expr

Public Member Functions

 EvaluatorFunctionNV (typename EvaluatorFunctionWrapper< N >::type, const std::vector< std::shared_ptr< Expr > > &)
EvaluatorFunctionNV & operator= (const EvaluatorFunctionNV &)=delete
EvaluatorFunctionNV & operator= (EvaluatorFunctionNV &&)=delete
bool isConstant () const override
 return if the expression is constant
bool dependsOnVariable (const std::vector< double >::size_type) const override
double getValue () const override
std::shared_ptr< Expr > resolveDependencies (const std::vector< double > &) const override
std::shared_ptr< Expr > clone (const std::vector< double > &) const override
std::shared_ptr< Expr > createFunctionByChangingParametersIntoVariables (const std::vector< double > &, const std::vector< std::string > &, const std::map< std::string, std::vector< double >::size_type > &) const override
void checkCyclicDependency (std::vector< std::string > &) const override
 check if the expression does not lead to a cyclic dependency
void getParametersNames (std::set< std::string > &) const override
Public Member Functions inherited from tfel::math::parser::EvaluatorFunctionBase
 EvaluatorFunctionBase ()
 constructor
std::string getCxxFormula (const std::vector< std::string > &) const override
std::shared_ptr< Expr > differentiate (const std::vector< double >::size_type, const std::vector< double > &) const override
 ~EvaluatorFunctionBase () override
 destructor
Public Member Functions inherited from tfel::math::parser::Expr
virtual ~Expr ()
 destructor

Protected Attributes

EvaluatorFunctionWrapper< N >::type f
const std::vector< std::shared_ptr< Expr > > args

Member Function Documentation

◆ checkCyclicDependency()

template<unsigned short N>
void tfel::math::parser::EvaluatorFunctionNV< N >::checkCyclicDependency ( std::vector< std::string > & ) const
overridevirtual

check if the expression does not lead to a cyclic dependency

Implements tfel::math::parser::Expr.

◆ clone()

template<unsigned short N>
std::shared_ptr< Expr > tfel::math::parser::EvaluatorFunctionNV< N >::clone ( const std::vector< double > & v) const
nodiscardoverridevirtual

◆ createFunctionByChangingParametersIntoVariables()

template<unsigned short N>
std::shared_ptr< Expr > tfel::math::parser::EvaluatorFunctionNV< N >::createFunctionByChangingParametersIntoVariables ( const std::vector< double > & v,
const std::vector< std::string > & params,
const std::map< std::string, std::vector< double >::size_type > & pos ) const
nodiscardoverridevirtual

◆ dependsOnVariable()

template<unsigned short N>
bool tfel::math::parser::EvaluatorFunctionNV< N >::dependsOnVariable ( const std::vector< double >::size_type ) const
nodiscardoverridevirtual
Returns
if the expression depends of the variable associated with the given position
Parameters
[in]pposition

Implements tfel::math::parser::Expr.

◆ getParametersNames()

template<unsigned short N>
void tfel::math::parser::EvaluatorFunctionNV< N >::getParametersNames ( std::set< std::string > & p) const
overridevirtual

◆ getValue()

template<unsigned short N>
double tfel::math::parser::EvaluatorFunctionNV< N >::getValue ( ) const
nodiscardoverridevirtual
Returns
the result of the evaluation of the expression

Implements tfel::math::parser::Expr.

◆ isConstant()

template<unsigned short N>
bool tfel::math::parser::EvaluatorFunctionNV< N >::isConstant ( ) const
nodiscardoverridevirtual

return if the expression is constant

Implements tfel::math::parser::Expr.

◆ resolveDependencies()

template<unsigned short N>
std::shared_ptr< Expr > tfel::math::parser::EvaluatorFunctionNV< N >::resolveDependencies ( const std::vector< double > & v) const
nodiscardoverridevirtual

The documentation for this struct was generated from the following files: