tfel
Loading...
Searching...
No Matches
tfel::math::parser::PowerFunction< N > Struct Template Referencefinal

build an expression which stands for the integer power of another expression. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/Parser/PowerFunction.hxx>

Inheritance diagram for tfel::math::parser::PowerFunction< N >:
tfel::math::parser::Function tfel::math::parser::Expr

Public Member Functions

 PowerFunction (const std::shared_ptr< Expr >) noexcept
 constructor
PowerFunction & operator= (const PowerFunction &)=delete
PowerFunction & operator= (PowerFunction &&)=delete
double getValue () const override
std::string getCxxFormula (const std::vector< std::string > &) const override
std::shared_ptr< Expr > resolveDependencies (const std::vector< double > &) const override
std::shared_ptr< Expr > differentiate (const std::vector< double >::size_type, 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
 ~PowerFunction () override
 destructor
Public Member Functions inherited from tfel::math::parser::Function
bool isConstant () const override
 return if the expression is constant
bool dependsOnVariable (const 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
 ~Function () override
 destructor
Public Member Functions inherited from tfel::math::parser::Expr
virtual ~Expr ()
 destructor

Additional Inherited Members

Protected Member Functions inherited from tfel::math::parser::Function
 Function (const std::shared_ptr< Expr >) noexcept
 constructor
Protected Attributes inherited from tfel::math::parser::Function
const std::shared_ptr< Expr > expr
 argument

Detailed Description

template<int N>
struct tfel::math::parser::PowerFunction< N >

build an expression which stands for the integer power of another expression.

Constructor & Destructor Documentation

◆ PowerFunction()

template<int N>
tfel::math::parser::PowerFunction< N >::PowerFunction ( const std::shared_ptr< Expr > e)
explicitnoexcept

constructor

Parameters
[in]eexpression

Member Function Documentation

◆ clone()

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

◆ createFunctionByChangingParametersIntoVariables()

template<int N>
std::shared_ptr< Expr > tfel::math::parser::PowerFunction< N >::createFunctionByChangingParametersIntoVariables ( const std::vector< double > & v,
const std::vector< std::string > & p,
const std::map< std::string, std::vector< double >::size_type > & pos ) const
nodiscardoverridevirtual

◆ differentiate()

template<int N>
std::shared_ptr< Expr > tfel::math::parser::PowerFunction< N >::differentiate ( const std::vector< double >::size_type pos,
const std::vector< double > & v ) const
nodiscardoverridevirtual

◆ getCxxFormula()

template<int N>
std::string tfel::math::parser::PowerFunction< N >::getCxxFormula ( const std::vector< std::string > & ) const
nodiscardoverridevirtual
Returns
a string representation of the evaluator suitable to be integrated in a C++ code.
Parameters
[in]ma map used to change the names of the variables

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

◆ getValue()

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

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

◆ resolveDependencies()

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

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