The SourceList manages a map of PortSource objects.
More...
The SourceList manages a map of PortSource objects.
Definition at line 189 of file merge.cpp.
◆ SourceMap
◆ SourceList() [1/2]
iCub::learningmachine::merge::SourceList::SourceList |
( |
std::string |
pp = "/lm/merge/source" | ) |
|
|
inline |
Default constructor.
Definition at line 208 of file merge.cpp.
◆ ~SourceList()
iCub::learningmachine::merge::SourceList::~SourceList |
( |
| ) |
|
|
inline |
Default destructor.
Definition at line 213 of file merge.cpp.
◆ SourceList() [2/2]
iCub::learningmachine::merge::SourceList::SourceList |
( |
const SourceList & |
other | ) |
|
◆ addSource()
virtual void iCub::learningmachine::merge::SourceList::addSource |
( |
std::string |
name | ) |
|
|
inlinevirtual |
Adds a source port for the given name.
It does nothing if a source port with the given name already exists.
- Parameters
-
Definition at line 253 of file merge.cpp.
◆ close()
virtual void iCub::learningmachine::merge::SourceList::close |
( |
void |
| ) |
|
|
inlinevirtual |
Recursively interrupt all sources.
Definition at line 285 of file merge.cpp.
◆ getPortPrefix()
virtual std::string iCub::learningmachine::merge::SourceList::getPortPrefix |
( |
| ) |
|
|
inlinevirtual |
Returns the prefix for the source ports.
- Returns
- the port prefix
Definition at line 295 of file merge.cpp.
◆ getSource()
virtual PortSource& iCub::learningmachine::merge::SourceList::getSource |
( |
std::string |
name | ) |
|
|
inlinevirtual |
Retrives the port source for a given name.
- Parameters
-
- Exceptions
-
a | runtime error if the name has not been registered |
Definition at line 266 of file merge.cpp.
◆ hasSource()
virtual bool iCub::learningmachine::merge::SourceList::hasSource |
( |
std::string |
name | ) |
|
|
inlinevirtual |
Returns true iff a PortSource has been registered for the given port name.
Definition at line 243 of file merge.cpp.
◆ interrupt()
virtual void iCub::learningmachine::merge::SourceList::interrupt |
( |
| ) |
|
|
inlinevirtual |
Recursively interrupt all sources.
Definition at line 276 of file merge.cpp.
◆ operator=()
◆ setPortPrefix()
virtual void iCub::learningmachine::merge::SourceList::setPortPrefix |
( |
std::string |
pp | ) |
|
|
inlinevirtual |
Sets the prefix for the source ports.
- Parameters
-
Definition at line 303 of file merge.cpp.
◆ update()
virtual void iCub::learningmachine::merge::SourceList::update |
( |
| ) |
|
|
inlinevirtual |
Updates each registered port with new data.
Definition at line 232 of file merge.cpp.
◆ portPrefix
std::string iCub::learningmachine::merge::SourceList::portPrefix |
|
protected |
◆ sourceMap
SourceMap iCub::learningmachine::merge::SourceList::sourceMap |
|
protected |
Map that links port names to the PortSource objects that are connected to them.
Definition at line 202 of file merge.cpp.
The documentation for this class was generated from the following file:
- icub-main/src/modules/learningMachine/src/bin/merge.cpp