rgrl_command Class Reference

#include <rgrl_command.h>

Inheritance diagram for rgrl_command:

vbl_ref_count rgrl_debug_feature_iteration_print rgrl_debug_feature_iteration_save_matches List of all members.

Detailed Description

rgrl_command is an implementation of the command design pattern that is usedin callbacks.

rgrl_object implements the subject. When a subject needs to notify an observer, it does so using a rgrl_command. The execute(.) method is called to run the command.

Definition at line 18 of file rgrl_command.h.


Public Member Functions

 rgrl_command ()
 rgrl_command (rgrl_command const &)
virtual ~rgrl_command ()
virtual void execute (rgrl_object *caller, rgrl_event const &event)=0
 Abstract method that defines the action to be taken by the command.
virtual void execute (const rgrl_object *caller, rgrl_event const &event)=0
 Abstract method that defines the action to be taken by the command.
void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Constructor & Destructor Documentation

rgrl_command::rgrl_command (  )  [inline]

Definition at line 22 of file rgrl_command.h.

rgrl_command::rgrl_command ( rgrl_command const &   )  [inline]

Definition at line 25 of file rgrl_command.h.

virtual rgrl_command::~rgrl_command (  )  [inline, virtual]

Definition at line 28 of file rgrl_command.h.


Member Function Documentation

virtual void rgrl_command::execute ( rgrl_object caller,
rgrl_event const &  event 
) [pure virtual]

Abstract method that defines the action to be taken by the command.

Implemented in rgrl_debug_feature_iteration_print, and rgrl_debug_feature_iteration_save_matches.

virtual void rgrl_command::execute ( const rgrl_object caller,
rgrl_event const &  event 
) [pure virtual]

Abstract method that defines the action to be taken by the command.

This variant is expected to be used when requests come from a const rgrl_object

Implemented in rgrl_debug_feature_iteration_print, and rgrl_debug_feature_iteration_save_matches.


The documentation for this class was generated from the following file:
Generated on Mon Mar 8 05:27:40 2010 for contrib/rpl/rgrl by  doxygen 1.5.1