iCub-main
Public Member Functions | Protected Attributes | List of all members
iCub::learningmachine::merge::CompositeSelector Class Reference

The composite selector groups other data selectors. More...

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

Public Member Functions

 CompositeSelector (Bottle &format)
 Default constructor. More...
 
 ~CompositeSelector ()
 Default destructor. More...
 
 CompositeSelector (const CompositeSelector &other)
 Copy constructor. More...
 
CompositeSelectoroperator= (const CompositeSelector &other)
 Assignment operator. More...
 
void addChild (DataSelector *ds)
 
void loadFormat (Bottle &format)
 Loads the format of this composite selector from a Bottle. More...
 
std::string toString (int indent=0)
 Returns a string specification of the data selector. More...
 
virtual void declareSources (SourceList &sl)
 Declares the required sources for this data selector to the source list. More...
 
virtual void select (Bottle &bot, SourceList &sl)
 Selectively adds data from the source list to an output bottle. More...
 

Protected Attributes

std::vector< DataSelector * > children
 

Detailed Description

The composite selector groups other data selectors.

Definition at line 564 of file merge.cpp.

Constructor & Destructor Documentation

◆ CompositeSelector() [1/2]

iCub::learningmachine::merge::CompositeSelector::CompositeSelector ( Bottle &  format)
inline

Default constructor.

Definition at line 571 of file merge.cpp.

◆ ~CompositeSelector()

iCub::learningmachine::merge::CompositeSelector::~CompositeSelector ( )
inline

Default destructor.

Definition at line 578 of file merge.cpp.

◆ CompositeSelector() [2/2]

iCub::learningmachine::merge::CompositeSelector::CompositeSelector ( const CompositeSelector other)

Copy constructor.

Member Function Documentation

◆ addChild()

void iCub::learningmachine::merge::CompositeSelector::addChild ( DataSelector ds)
inline

Definition at line 597 of file merge.cpp.

◆ declareSources()

virtual void iCub::learningmachine::merge::CompositeSelector::declareSources ( SourceList sl)
inlinevirtual

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

Parameters
slthe source list

Implements iCub::learningmachine::merge::DataSelector.

Definition at line 641 of file merge.cpp.

◆ loadFormat()

void iCub::learningmachine::merge::CompositeSelector::loadFormat ( Bottle &  format)
inline

Loads the format of this composite selector from a Bottle.

Parameters
formatthe bottle specifying the format
Exceptions
aruntime error if parsing fails

Definition at line 607 of file merge.cpp.

◆ operator=()

CompositeSelector& iCub::learningmachine::merge::CompositeSelector::operator= ( const CompositeSelector other)

Assignment operator.

◆ select()

virtual void iCub::learningmachine::merge::CompositeSelector::select ( Bottle &  bot,
SourceList sl 
)
inlinevirtual

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

Parameters
bota reference to the output Bottle
slthe source list

Implements iCub::learningmachine::merge::DataSelector.

Reimplemented in iCub::learningmachine::merge::RootSelector.

Definition at line 650 of file merge.cpp.

◆ toString()

std::string iCub::learningmachine::merge::CompositeSelector::toString ( int  indent = 0)
inlinevirtual

Returns a string specification of the data selector.

Parameters
indenta number of spaces of indentation

Implements iCub::learningmachine::merge::DataSelector.

Definition at line 628 of file merge.cpp.

Member Data Documentation

◆ children

std::vector<DataSelector*> iCub::learningmachine::merge::CompositeSelector::children
protected

Definition at line 566 of file merge.cpp.


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