![]() |
User Manual, Developers Guide and API Documentation |
![]() |
ldk::fun::Sub is a FUN that can be placed within another FUN. Group is a FU wrapping such a Sub FUN. More...
#include <ldk/Group.hpp>


Public Member Functions | |
| fun::Sub * | getSubFUN () const |
| Group (const Group &other) | |
| Group (fun::FUN *fuNet, const pyconfig::View &_config) | |
| virtual void | onFUNCreated () |
| Resolve inter-FU dependencies. | |
| virtual void | setName (std::string _name) |
| Set the name of the FU. | |
| ~Group () | |
Private Member Functions | |
| virtual bool | doIsAccepting (const CompoundPtr &compound) const |
| virtual void | doOnData (const CompoundPtr &compound) |
| virtual void | doSendData (const CompoundPtr &compound) |
| virtual void | doWakeup () |
Private Attributes | |
| pyconfig::View | config |
| logger::Logger | logger |
| fun::Sub * | sub |
Definition at line 64 of file Group.hpp.
| Group::Group | ( | fun::FUN * | fuNet, | |
| const pyconfig::View & | _config | |||
| ) |
| bool Group::doIsAccepting | ( | const CompoundPtr & | compound | ) | const [private, virtual] |
| void Group::doOnData | ( | const CompoundPtr & | compound | ) | [private, virtual] |
| void Group::doSendData | ( | const CompoundPtr & | compound | ) | [private, virtual] |
| void Group::onFUNCreated | ( | ) | [virtual] |
Often FunctionalUnits require the collaboration with other FunctionalUnits to accomplish their task. For the collaboration between FunctionalUnits we coined the term "friendship".
The onFUNCreated method is a hook being called after the complete FUN has been set up. FunctionalUnits requiring the collaboration with other FunctionalUnits should resolve these dependencies by implementing this hook accordingly.
Finding friends is usually done calling wns::ldk::fun::FUN::findFriend.
When building reconfigurable FUNs, this method may get called multiple times (e.g., after each FUN reconfiguration). Keep that in mind when allocating resources in your onFUNCreated implementation.
Reimplemented from wns::ldk::FunctionalUnit.
| void Group::setName | ( | std::string | _name | ) | [virtual] |
pyconfig::View wns::ldk::Group::config [private] |
logger::Logger wns::ldk::Group::logger [private] |
fun::Sub* wns::ldk::Group::sub [private] |
1.5.5