Sacado
Development
|
A base class for scalar parameter values. More...
#include <Sacado_ScalarParameterEntry.hpp>
Public Types | |
typedef EvalTypeTraits::template apply < EvalType >::type | ScalarT |
Public Member Functions | |
ScalarParameterEntry () | |
Default constructor. | |
virtual | ~ScalarParameterEntry () |
Destructor. | |
virtual void | setValue (const ScalarT &value)=0 |
Set parameter this object represents to value. More... | |
virtual const ScalarT & | getValue () const =0 |
Get parameter value this object represents. | |
virtual double | getRealValue () const |
Get real parameter value. More... | |
virtual void | print (std::ostream &os) const |
Print entry. More... | |
Public Member Functions inherited from Sacado::AbstractScalarParameterEntry | |
AbstractScalarParameterEntry () | |
Default contructor. | |
virtual | ~AbstractScalarParameterEntry () |
Destructor. | |
virtual void | setRealValue (double value)=0 |
Set real parameter value. | |
A base class for scalar parameter values.
|
inlinevirtual |
Get real parameter value.
Default implementation should work in most cases.
Implements Sacado::AbstractScalarParameterEntry.
References Sacado::ScalarParameterEntry< EvalType, EvalTypeTraits >::getValue().
|
inlinevirtual |
Print entry.
Default implementation should work in most cases.
Implements Sacado::AbstractScalarParameterEntry.
References Sacado::ScalarParameterEntry< EvalType, EvalTypeTraits >::getValue().
|
pure virtual |
Set parameter this object represents to value.
Treat the set parameter as an independent for derivative computations (use setRealValue() otherwise).
Implemented in Sacado::ParameterRegistration< EvalType, EvalTypeTraits >.