Public Member Functions
rgrl_command Class Reference

rgrl_command is an implementation of the command design pattern that is used in callbacks. More...

#include <rgrl_command.h>

Inheritance diagram for rgrl_command:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

rgrl_command is an implementation of the command design pattern that is used in 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.


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_save_matches, and rgrl_debug_feature_iteration_print.

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_save_matches, and rgrl_debug_feature_iteration_print.


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