CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
A struct that can be used to convert member functions into ceps::Function pointer specialization.
Definition at line 177 of file CepsFunction.hpp.
#include <CepsFunction.hpp>
Public Member Functions | |
MemberFunction (_Class *obj, _Res(_Class::*pmf)(_Args...)) | |
Constructor with member function ptr. More... | |
MemberFunction (const MemberFunction &that) | |
Copy constructor. More... | |
~MemberFunction () override | |
Destructor. More... | |
_Res | eval (_Args... args) final |
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 | |
_Class * | m_obj |
The instance of the method. More... | |
_Res(_Class::* | m_pmf )(_Args...) |
Function pointer. 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... | |
|
inline |
Constructor with member function ptr.
Definition at line 184 of file CepsFunction.hpp.
|
inline |
Copy constructor.
Definition at line 190 of file CepsFunction.hpp.
|
inlineoverride |
Destructor.
Definition at line 196 of file CepsFunction.hpp.
|
inlinefinalvirtual |
Call operator.
Implements ceps::Function< _Res(_Args...)>.
Definition at line 201 of file CepsFunction.hpp.
_Class* ceps::MemberFunction< _Class *, _Res(_Class::*)(_Args...)>::m_obj |
The instance of the method.
Definition at line 180 of file CepsFunction.hpp.
_Res(_Class::* ceps::MemberFunction< _Class *, _Res(_Class::*)(_Args...)>::m_pmf) (_Args...) |
Function pointer.
Definition at line 181 of file CepsFunction.hpp.