tfel
Loading...
Searching...
No Matches
mtest::ConstantEvolution Struct Referencefinal

#include </home/runner/work/tfel/tfel/mtest/include/MTest/Evolution.hxx>

Inheritance diagram for mtest::ConstantEvolution:
mtest::Evolution

Public Member Functions

 ConstantEvolution (const real)
ConstantEvolution & operator= (const ConstantEvolution &)=delete
ConstantEvolution & operator= (ConstantEvolution &&)=delete
real operator() (const real) const override
bool isConstant () const override
void setValue (const real) override
 set the evolution value
void setValue (const real, const real) override
 set the evolution value for a given date
 ~ConstantEvolution () override
 destructor
Public Member Functions inherited from mtest::Evolution
virtual ~Evolution ()
 destructor

Protected Attributes

real value

Detailed Description

a constant evolution

Constructor & Destructor Documentation

◆ ConstantEvolution()

mtest::ConstantEvolution::ConstantEvolution ( const real )
explicit

constructor

Parameters
[in]v: value of the evolution

Member Function Documentation

◆ isConstant()

bool mtest::ConstantEvolution::isConstant ( ) const
nodiscardoverridevirtual
Returns
true if the evolution is constant

Implements mtest::Evolution.

◆ operator()()

real mtest::ConstantEvolution::operator() ( const real ) const
nodiscardoverridevirtual
Returns
the value of the evolution at the given time
Parameters
[in]ttime

Implements mtest::Evolution.

◆ setValue() [1/2]

void mtest::ConstantEvolution::setValue ( const real )
overridevirtual

set the evolution value

Note
most evolution will throw an exception (this method only makes sense for constant evolutions)
Parameters
[in]v: value

Implements mtest::Evolution.

◆ setValue() [2/2]

void mtest::ConstantEvolution::setValue ( const real ,
const real  )
overridevirtual

set the evolution value for a given date

Parameters
[in]ttime
[in]vvalue
Note
most evolution will throw an exception (for example, this method does not makes sense for constant evolutions)

Implements mtest::Evolution.


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