Public Member Functions | Protected Member Functions
mets::observer< observed_subject > Class Template Reference

Template base class for the observers of some observed_subject. More...

#include <observer.hh>

List of all members.

Public Member Functions

virtual void update (observed_subject *)=0
 This method is automatically called when this observer is attached to a "notified" subject.
virtual ~observer ()

Protected Member Functions

 observer ()

Detailed Description

template<typename observed_subject>
class mets::observer< observed_subject >

Template base class for the observers of some observed_subject.

You should declare a new observer type of some my_subject this way:

class my_observer : public observer<my_subject>

Every time notify() is called on the subject every attached observer is updated.

Definition at line 126 of file observer.hh.


Constructor & Destructor Documentation

template<typename observed_subject>
virtual mets::observer< observed_subject >::~observer ( ) [inline, virtual]

Definition at line 130 of file observer.hh.

template<typename observed_subject>
mets::observer< observed_subject >::observer ( ) [inline, protected]

Definition at line 139 of file observer.hh.


Member Function Documentation

template<typename observed_subject>
virtual void mets::observer< observed_subject >::update ( observed_subject *  ) [pure virtual]

This method is automatically called when this observer is attached to a "notified" subject.

Parameters:
subject,:The subject that was notified and that called our update method.

Implemented in mets::improvement_logger< neighborhood_t >, and mets::iteration_logger< neighborhood_t >.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:54