iCub-main
Loading...
Searching...
No Matches
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.
 
virtual void declareSources (SourceList &sl)=0
 Declares the required sources for this data selector to the source list.
 
virtual void select (Bottle &bot, SourceList &sl)=0
 Selectively adds data from the source list to an output bottle.
 

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::IndexSelector, and iCub::learningmachine::merge::CompositeSelector.

◆ 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::IndexSelector, iCub::learningmachine::merge::CompositeSelector, and iCub::learningmachine::merge::RootSelector.

◆ 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::IndexSelector, and iCub::learningmachine::merge::CompositeSelector.


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