KJB
|
#include <sample_recorder.h>
Public Types | |
typedef Recorder::Model_type | Model_type |
typedef Recorder::Value_type | Value_type |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((ModelRecorder< Recorder >)) | |
Modulo_recorder (const Recorder &recorder, int interval, int start=0) | |
virtual void | operator() (const Model_type &m, const Step_log< Model_type > &step_log) |
const Value_type & | get () const |
"Wraps" and existing recorder, making it only record every Nth entry. Results are still obtained through the wrapped recorder, not this object.
Recorder | A type implemeting the ModelRecorder concept. |
typedef Recorder::Model_type Modulo_recorder< Recorder >::Model_type |
typedef Recorder::Value_type Modulo_recorder< Recorder >::Value_type |
|
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 |
interval | One in every interval entries will be recorded |
start | Where to start the counter. When counter % interval == 0, the entry will be recorded. By default, the first entry is recorded. |
Modulo_recorder< Recorder >::BOOST_CONCEPT_ASSERT | ( | (ModelRecorder< Recorder >) | ) |
|
inline |
|
inlinevirtual |