ReFRACtor
|
This is an observer of the ConnorSolver that writes out the state vector values in a nicely formated way on each iteration. More...
#include <connor_iteration_log.h>
Public Member Functions | |
ConnorIterationLog (const boost::shared_ptr< StateVector > &Sv) | |
virtual void | notify_add (ConnorSolver &Observed_object) |
Called when an object is added to an Observable. More... | |
virtual void | notify_add () |
virtual void | notify_remove (ConnorSolver &Observed_object) |
Called when an object is removed from an Observable. More... | |
virtual void | notify_remove () |
void | notify_update (const ConnorSolver &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 the ConnorSolver that writes out the state vector values in a nicely formated way on each iteration.
For this to work it must be registered as an Observer of the instantiated ConnorSolver.
When we support more solvers, this can be made more generic.
Definition at line 18 of file connor_iteration_log.h.
|
inline |
Definition at line 22 of file connor_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< ConnorSolver >.
Definition at line 18 of file connor_iteration_log.cc.
|
inlinevirtual |
Definition at line 26 of file connor_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 connor_iteration_log.h.