ReFRACtor
|
This is an observer of IterativeSolver that writes out the state vector values in a nicely formated way on each accepted iteration. More...
#include <solver_iteration_log.h>
Public Member Functions | |
SolverIterationLog (const boost::shared_ptr< StateVector > &Sv) | |
virtual void | notify_add (IterativeSolver &Observed_object) |
Called when an object is added to an Observable. More... | |
virtual void | notify_add () |
virtual void | notify_remove (IterativeSolver &Observed_object) |
Called when an object is removed from an Observable. More... | |
virtual void | notify_remove () |
void | notify_update (const IterativeSolver &solver) |
Called when the Observed object is updated. More... | |
virtual void | print (std::ostream &Os) const |
std::string | print_to_string () const |
Print to string. More... | |
Static Public Attributes | |
static const int | SV_PRINT_WIDTH = 17 |
This is an observer of IterativeSolver that writes out the state vector values in a nicely formated way on each accepted iteration.
For this to work it must be registered as an Observer of the instantiated IterativeSolver.
Definition at line 18 of file solver_iteration_log.h.
|
inline |
Definition at line 22 of file solver_iteration_log.h.
|
inlinevirtualinherited |
Called when an object is added to an Observable.
Default is to do nothing.
Definition at line 47 of file observer.h.
|
inlinevirtualinherited |
Definition at line 48 of file observer.h.
|
inlinevirtualinherited |
Called when an object is removed from an Observable.
Default is to do nothing.
Definition at line 55 of file observer.h.
|
inlinevirtualinherited |
Definition at line 56 of file observer.h.
|
virtual |
Called when the Observed object is updated.
Reimplemented from FullPhysics::Observer< IterativeSolver >.
Definition at line 6 of file solver_iteration_log.cc.
|
inlinevirtual |
Definition at line 26 of file solver_iteration_log.h.
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.
|
static |
Definition at line 20 of file solver_iteration_log.h.