KJB
|
#include <sample_recorder.h>
Public Types | |
typedef Recorder::Model_type | Model_type |
typedef Recorder::Value_type | Value_type |
typedef boost::function2 < std::ostream &, std::ostream &, const Value_type & > | Write_function |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((ModelRecorder< Recorder >)) | |
Ostream_recorder (const Recorder &recorder, std::ostream &os, const std::string &separator="\n", const Write_function &write_func=Ostream_recorder::default_write) | |
virtual void | operator() (const Model_type &m, const Step_log< Model_type > &step_log) |
const Value_type & | get () const |
Static Public Member Functions | |
static std::ostream & | default_write (std::ostream &ost, const Value_type &v) |
"Wraps" and existing recorder, making it output the recorded value to the given stream.
Recorder | A type implemeting the ModelRecorder concept. |
typedef Recorder::Model_type Ostream_recorder< Recorder >::Model_type |
typedef Recorder::Value_type Ostream_recorder< Recorder >::Value_type |
typedef boost::function2<std::ostream&, std::ostream&, const Value_type&> Ostream_recorder< Recorder >::Write_function |
|
inline |
recorder | The recorder to wrap. This will be stored be value, so the caller is responsible for making sure the recorder remains in scope |
os | ostream to output. |
recorder | The recorder to wrap. This will be stored be value, so the caller is responsible for making sure the recorder remains in scope |
os | ostream to output. |
write_func | The write function to call (alternative to operator>>, with same signature) |
Ostream_recorder< Recorder >::BOOST_CONCEPT_ASSERT | ( | (ModelRecorder< Recorder >) | ) |
|
inlinestatic |
|
inline |
|
inlinevirtual |