CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
Specialization of ceps::Function that returns constant values.
Definition at line 249 of file CepsFunction.hpp.
#include <CepsFunction.hpp>
Public Member Functions | |
ConstantFunction (const _Res &var) | |
Constructor with value. More... | |
ConstantFunction (const ConstantFunction &that) | |
Copy constructor. More... | |
~ConstantFunction () override | |
Destructor. More... | |
_Res | eval (_Args...) override |
Call operator. More... | |
Public Member Functions inherited from ceps::Function< _Res(_Args...)> | |
Function ()=default | |
Construct a new Function object. More... | |
Function (const Function &)=default | |
Copy constructor. More... | |
Function (Function &&) noexcept=default | |
Copy constructor. More... | |
Function & | operator= (const Function &)=default |
Assignment operator. More... | |
Function & | operator= (Function &&) noexcept=default |
Assignment operator. More... | |
virtual | ~Function ()=default |
Destroy the Function object. More... | |
virtual _Res | operator() (_Args... args) final |
Base operator for call. Cannot be overloaded, use eval instead. We do this as the It is used to select the correct evaluation of the derived classes, as C++ seems to not do the right thing. More... | |
Data Fields | |
const _Res & | m_var |
Returned value. More... | |
Additional Inherited Members | |
Public Types inherited from ceps::Function< _Res(_Args...)> | |
using | ReturnType = _Res |
Return type definition. More... | |
using | SignatureType = _Res(_Args...) |
signature type More... | |
|
inlineexplicit |
Constructor with value.
Definition at line 255 of file CepsFunction.hpp.
|
inline |
Copy constructor.
Definition at line 260 of file CepsFunction.hpp.
|
inlineoverride |
Destructor.
Definition at line 265 of file CepsFunction.hpp.
|
inlineoverridevirtual |
Call operator.
Implements ceps::Function< _Res(_Args...)>.
Definition at line 270 of file CepsFunction.hpp.
const _Res& ceps::ConstantFunction< _Res(_Args...)>::m_var |
Returned value.
Definition at line 252 of file CepsFunction.hpp.