iCub-main
Public Member Functions | List of all members
iCub::learningmachine::merge::DataSelector Class Referenceabstract

The DataSelector is an interface for an object that selects data from one or more DataSources. More...

+ Inheritance diagram for iCub::learningmachine::merge::DataSelector:

Public Member Functions

virtual std::string toString (int indent=0)=0
 Returns a string specification of the data selector. More...
 
virtual void declareSources (SourceList &sl)=0
 Declares the required sources for this data selector to the source list. More...
 
virtual void select (Bottle &bot, SourceList &sl)=0
 Selectively adds data from the source list to an output bottle. More...
 

Detailed Description

The DataSelector is an interface for an object that selects data from one or more DataSources.

The structure of DataSelector and its subclasses follows the composite pattern.

Definition at line 314 of file merge.cpp.

Member Function Documentation

◆ declareSources()

virtual void iCub::learningmachine::merge::DataSelector::declareSources ( SourceList sl)
pure virtual

Declares the required sources for this data selector to the source list.

Parameters
slthe source list

Implemented in iCub::learningmachine::merge::CompositeSelector, and iCub::learningmachine::merge::IndexSelector.

◆ select()

virtual void iCub::learningmachine::merge::DataSelector::select ( Bottle &  bot,
SourceList sl 
)
pure virtual

Selectively adds data from the source list to an output bottle.

Parameters
bota reference to the output Bottle
slthe source list

Implemented in iCub::learningmachine::merge::RootSelector, iCub::learningmachine::merge::CompositeSelector, and iCub::learningmachine::merge::IndexSelector.

◆ toString()

virtual std::string iCub::learningmachine::merge::DataSelector::toString ( int  indent = 0)
pure virtual

Returns a string specification of the data selector.

Parameters
indenta number of spaces of indentation

Implemented in iCub::learningmachine::merge::CompositeSelector, and iCub::learningmachine::merge::IndexSelector.


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