KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
Viewing_recorder< Recorder, Updater > Class Template Reference

#include <sample_recorder.h>

Public Types

typedef Recorder::Value_type Value_type
 
typedef Recorder::Model_type Model_type
 
typedef Updater::Update_type Update_type
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((ModelRecorder< Recorder >))
 
 BOOST_CONCEPT_ASSERT ((Updatable< Updater >))
 
 Viewing_recorder (const Recorder &r, Updater &u)
 
void operator() (const Model_type &model, const Step_log< Model_type > &step_log)
 
const Value_typeget () const
 

Detailed Description

template<class Recorder, class Updater>
class Viewing_recorder< Recorder, Updater >

A wrapping recorder that connects a recorder to another class that has an updatable view of the recorded item.

Template Parameters
ModelA type implemeting the BaseModel concept
RecorderA type implementing the ModelRecorder concept.
UpdaterA type implementing the Updatable concept, whose ::update_type is same as Recorder's ::value_type

Member Typedef Documentation

template<class Recorder , class Updater >
typedef Recorder::Model_type Viewing_recorder< Recorder, Updater >::Model_type
template<class Recorder , class Updater >
typedef Updater::Update_type Viewing_recorder< Recorder, Updater >::Update_type
template<class Recorder , class Updater >
typedef Recorder::Value_type Viewing_recorder< Recorder, Updater >::Value_type

Constructor & Destructor Documentation

template<class Recorder , class Updater >
Viewing_recorder< Recorder, Updater >::Viewing_recorder ( const Recorder &  r,
Updater &  u 
)
inline

Member Function Documentation

template<class Recorder , class Updater >
Viewing_recorder< Recorder, Updater >::BOOST_CONCEPT_ASSERT ( (ModelRecorder< Recorder >)  )
template<class Recorder , class Updater >
Viewing_recorder< Recorder, Updater >::BOOST_CONCEPT_ASSERT ( (Updatable< Updater >)  )
template<class Recorder , class Updater >
const Value_type& Viewing_recorder< Recorder, Updater >::get ( ) const
inline
template<class Recorder , class Updater >
void Viewing_recorder< Recorder, Updater >::operator() ( const Model_type model,
const Step_log< Model_type > &  step_log 
)
inline

The documentation for this class was generated from the following file: