tfel
Loading...
Searching...
No Matches
tfel::math::parser::GeneralPowerFunction Struct 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::GeneralPowerFunction:
tfel::math::parser::Function tfel::math::parser::Expr

Public Member Functions

 GeneralPowerFunction (const std::shared_ptr< Expr >, const int) noexcept
 constructor
GeneralPowerFunction & operator= (const GeneralPowerFunction &)=delete
GeneralPowerFunction & operator= (GeneralPowerFunction &&)=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
 ~GeneralPowerFunction () 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

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

Constructor & Destructor Documentation

◆ GeneralPowerFunction()

tfel::math::parser::GeneralPowerFunction::GeneralPowerFunction ( const std::shared_ptr< Expr > ,
const int  )
noexcept

constructor

Parameters
[in]eexpression
[in]nexponent

Member Function Documentation

◆ clone()

std::shared_ptr< Expr > tfel::math::parser::GeneralPowerFunction::clone ( const std::vector< double > & ) const
nodiscardoverridevirtual

◆ createFunctionByChangingParametersIntoVariables()

std::shared_ptr< Expr > tfel::math::parser::GeneralPowerFunction::createFunctionByChangingParametersIntoVariables ( const std::vector< double > & ,
const std::vector< std::string > & ,
const std::map< std::string, std::vector< double >::size_type > &  ) const
nodiscardoverridevirtual

◆ differentiate()

std::shared_ptr< Expr > tfel::math::parser::GeneralPowerFunction::differentiate ( const std::vector< double >::size_type ,
const std::vector< double > &  ) const
nodiscardoverridevirtual

◆ getCxxFormula()

std::string tfel::math::parser::GeneralPowerFunction::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()

double tfel::math::parser::GeneralPowerFunction::getValue ( ) const
nodiscardoverridevirtual
Returns
the result of the evaluation of the expression

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

◆ resolveDependencies()

std::shared_ptr< Expr > tfel::math::parser::GeneralPowerFunction::resolveDependencies ( const std::vector< double > & ) const
nodiscardoverridevirtual

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