KASKADE 7 development version
|
Class that represents a quantity that can be logged during the course of an algortihm. More...
#include <algorithm_base.hh>
Class that represents a quantity that can be logged during the course of an algortihm.
Useful as a member of IterationParameters or a derived class Supports a vaildity check and an assertion which returns the name of the quantity Examples of use: e.g. GuardedCovariantNewtonParameters
Definition at line 29 of file algorithm_base.hh.
Public Member Functions | |
void | doAction (LQAction::ToDo td, std::string const &name_="noName") |
void | reset (std::string const &name_) |
Delete any information contained in this class, on exit: state like freshly constructed. More... | |
LoggedQuantity (std::string const &name_) | |
LoggedQuantity () | |
void | logValue () |
Insert current value into log buffer. More... | |
void | logValue (int i) |
Insert current value into log buffer at a certain number i (used seldomly) More... | |
LoggedQuantity< T > & | operator= (T const &rvalue) |
Set current value. More... | |
int | size () |
Get size of log buffer. More... | |
bool | isValid () |
Returns true, iff there is a valid current value. More... | |
void | devalidate () |
devalidate current value More... | |
bool | isLogged () |
returns true, iff current value is already logged More... | |
T const & | operator[] (int i) |
Return value from log buffer (used seldomly) More... | |
operator T& () | |
Directly access current value (may fail in special cases due to type non-uniqueness issues) More... | |
T & | value_nonconst () |
T const & | value () const |
void | print (std::ostream &s) |
print log-buffer into a stream, to be used for analysis of an algorithm More... | |
|
inline |
Definition at line 54 of file algorithm_base.hh.
|
inline |
Definition at line 55 of file algorithm_base.hh.
|
inline |
devalidate current value
Definition at line 77 of file algorithm_base.hh.
Referenced by Kaskade::LoggedQuantity< T >::doAction().
|
inline |
Definition at line 32 of file algorithm_base.hh.
Referenced by Kaskade::InteriorPointParameters::doForAll(), Kaskade::InteriorPointParametersSqrt::doForAll(), Kaskade::HypIPParameters::doForAll(), Kaskade::NewtonParameters::doForAll(), Kaskade::GuardedCovariantNewtonParameters::doForAll(), Kaskade::DampedCovariantNewtonParameters::doForAll(), and Kaskade::ModifiedCovariantNewtonParameters::doForAll().
|
inline |
returns true, iff current value is already logged
Definition at line 80 of file algorithm_base.hh.
|
inline |
Returns true, iff there is a valid current value.
Definition at line 74 of file algorithm_base.hh.
Referenced by Kaskade::ScalarModelFunction::fixUpdate(), Kaskade::InteriorPointSqrtModel::lengthOfPath(), and Kaskade::InteriorPointSlopeEstimate::lengthOfPath().
|
inline |
Insert current value into log buffer.
Definition at line 58 of file algorithm_base.hh.
Referenced by Kaskade::LoggedQuantity< T >::doAction(), Kaskade::ScalarModelFunction::fixUpdate(), and Kaskade::AdaptiveParameters::logStep().
|
inline |
Insert current value into log buffer at a certain number i (used seldomly)
Definition at line 65 of file algorithm_base.hh.
|
inline |
Directly access current value (may fail in special cases due to type non-uniqueness issues)
Definition at line 92 of file algorithm_base.hh.
|
inline |
Set current value.
Definition at line 68 of file algorithm_base.hh.
|
inline |
Return value from log buffer (used seldomly)
Definition at line 83 of file algorithm_base.hh.
|
inline |
print log-buffer into a stream, to be used for analysis of an algorithm
Definition at line 102 of file algorithm_base.hh.
|
inline |
Delete any information contained in this class, on exit: state like freshly constructed.
Definition at line 44 of file algorithm_base.hh.
Referenced by Kaskade::LoggedQuantity< T >::doAction(), and Kaskade::LoggedQuantity< T >::LoggedQuantity().
|
inline |
Get size of log buffer.
Definition at line 71 of file algorithm_base.hh.
Referenced by Kaskade::PolynomialModel::computeCoefficients(), Kaskade::JModel::getScaling(), and Kaskade::LoggedQuantity< T >::print().
|
inline |
Definition at line 99 of file algorithm_base.hh.
Referenced by Kaskade::JModel::getDataAbsc(), Kaskade::JModel::getDataVal(), and Kaskade::JModel::getScaling().
|
inline |
access current value via a function member: Use this if operator T&() fails
Definition at line 97 of file algorithm_base.hh.
Referenced by Kaskade::DampedCovariantNewtonMethod::dampingFactor().