iCub-main
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iCub::learningmachine::IEvent Class Referenceabstract

#include <IEvent.h>

+ Inheritance diagram for iCub::learningmachine::IEvent:

Public Member Functions

virtual std::string toString ()=0
 Returns a string representation of the Event.
 
virtual void visit (IEventListener &listener)=0
 Causes the Event to visit an EventListener.
 

Detailed Description

Definition at line 36 of file IEvent.h.

Member Function Documentation

◆ toString()

virtual std::string iCub::learningmachine::IEvent::toString ( )
pure virtual

Returns a string representation of the Event.

Returns
string the string representation

Implemented in iCub::learningmachine::PredictEvent, and iCub::learningmachine::TrainEvent.

◆ visit()

virtual void iCub::learningmachine::IEvent::visit ( IEventListener listener)
pure virtual

Causes the Event to visit an EventListener.

This method is part of the double dispatch mechanism. Child classes need to override this function.

Parameters
listenerthe listener

Implemented in iCub::learningmachine::PredictEvent, and iCub::learningmachine::TrainEvent.


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