Jpp
18.0.0-rc.2
the software that should make you happy
|
Template implementation of function object in one dimension returning a constant value. More...
#include <JConstantFunction1D.hh>
Public Types | |
typedef JFunction1D < JArgument_t, JResult_t > | function_type |
typedef function_type::argument_type | argument_type |
typedef function_type::result_type | result_type |
enum | { NUMBER_OF_DIMENSIONS = 1 } |
typedef JFunctional < JArgument_t, JResult_t > | functional_type |
typedef JSupervisor | supervisor_type |
Public Member Functions | |
JConstantFunction1D () | |
Default constructor. More... | |
JConstantFunction1D (const result_type y) | |
Constructor. More... | |
JConstantFunction1D (const JMATH::JZero &y) | |
Constructor. More... | |
JConstantFunction1D & | add (typename JLANG::JClass< result_type >::argument_type value) |
Add offset. More... | |
JConstantFunction1D & | sub (typename JLANG::JClass< result_type >::argument_type value) |
Subtract offset. More... | |
JConstantFunction1D & | mul (const double value) |
Scale contents. More... | |
JConstantFunction1D & | div (const double value) |
Scale contents. More... | |
JConstantFunction1D & | add (const JConstantFunction1D &function) |
Add function. More... | |
JConstantFunction1D & | sub (const JConstantFunction1D &function) |
Subtract function. More... | |
result_type | getY () const |
Function value. More... | |
virtual result_type | evaluate (const argument_type *pX) const override |
Function value evaluation. More... | |
result_type | operator() (const argument_type x) const |
Function value evaluation. More... | |
JSupervisor | getSupervisor () const |
Get supervisor. More... | |
const JExceptionHandler & | getExceptionHandler () const |
Get exception handler. More... | |
void | setExceptionHandler (const JSupervisor &supervisor) |
Set the supervisor for handling of exceptions. More... | |
Static Public Member Functions | |
static result_type | getValue (const JFunctional &function, const argument_type *pX) |
Recursive function value evaluation. More... | |
static JClass< result_type > ::argument_type | getValue (typename JClass< result_type >::argument_type value, const argument_type *pX) |
Termination of recursive function value evaluation. More... | |
Protected Member Functions | |
virtual void | do_compile () override |
Function compilation. More... | |
Protected Attributes | |
JSupervisor | supervisor |
Private Attributes | |
result_type | __y |
Friends | |
JReader & | operator>> (JReader &in, JConstantFunction1D &function) |
Read function from input. More... | |
JWriter & | operator<< (JWriter &out, const JConstantFunction1D &function) |
Write function to output. More... | |
Template implementation of function object in one dimension returning a constant value.
This class implements the JFunction1D interface.
Definition at line 26 of file JConstantFunction1D.hh.
typedef JFunction1D<JArgument_t, JResult_t> JTOOLS::JConstantFunction1D< JArgument_t, JResult_t >::function_type |
Definition at line 31 of file JConstantFunction1D.hh.
typedef function_type::argument_type JTOOLS::JConstantFunction1D< JArgument_t, JResult_t >::argument_type |
Definition at line 32 of file JConstantFunction1D.hh.
typedef function_type::result_type JTOOLS::JConstantFunction1D< JArgument_t, JResult_t >::result_type |
Definition at line 33 of file JConstantFunction1D.hh.
|
inherited |
Definition at line 322 of file JFunctional.hh.
|
inherited |
Definition at line 89 of file JFunctional.hh.
|
inherited |
|
inline |
Default constructor.
Definition at line 39 of file JConstantFunction1D.hh.
|
inline |
Constructor.
y | value |
Definition at line 50 of file JConstantFunction1D.hh.
|
inline |
Constructor.
y | zero |
Definition at line 61 of file JConstantFunction1D.hh.
|
inline |
|
inline |
|
inline |
Scale contents.
value | multiplication factor |
Definition at line 98 of file JConstantFunction1D.hh.
|
inline |
Scale contents.
value | division factor |
Definition at line 111 of file JConstantFunction1D.hh.
|
inline |
|
inline |
Subtract function.
function | function |
Definition at line 137 of file JConstantFunction1D.hh.
|
inline |
|
inlineoverridevirtual |
Function value evaluation.
pX | pointer to abscissa values |
Implements JTOOLS::JFunctional< JArgument_t, JResult_t >.
Definition at line 162 of file JConstantFunction1D.hh.
|
inlineoverrideprotectedvirtual |
|
inlineinherited |
Function value evaluation.
x | argument value |
Definition at line 333 of file JFunctional.hh.
|
inlinestaticinherited |
Recursive function value evaluation.
function | function |
pX | pointer to abscissa values |
Definition at line 107 of file JFunctional.hh.
|
inlinestaticinherited |
Termination of recursive function value evaluation.
value | result |
pX | pointer to abscissa values |
Definition at line 121 of file JFunctional.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set the supervisor for handling of exceptions.
supervisor | supervisor |
Definition at line 288 of file JFunctional.hh.
|
friend |
Read function from input.
in | reader |
function | function |
Definition at line 175 of file JConstantFunction1D.hh.
|
friend |
Write function to output.
out | writer |
function | function |
Definition at line 188 of file JConstantFunction1D.hh.
|
private |
Definition at line 202 of file JConstantFunction1D.hh.
|
protectedinherited |
Definition at line 295 of file JFunctional.hh.