iCub-main
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. More...
 
virtual void visit (IEventListener &listener)=0
 Causes the Event to visit an EventListener. More...
 

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::TrainEvent, and iCub::learningmachine::PredictEvent.

◆ 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::TrainEvent, and iCub::learningmachine::PredictEvent.


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