Essentia
2.1-beta6-dev
|
#include <network.h>
Public Member Functions | |
NetworkNode (streaming::Algorithm *algo) | |
const std::vector< NetworkNode * > & | children () const |
void | setChildren (const std::vector< NetworkNode * > &children) |
void | addChild (NetworkNode *child) |
const streaming::Algorithm * | algorithm () const |
streaming::Algorithm * | algorithm () |
std::vector< NetworkNode * > | addVisibleDependencies (std::map< streaming::Algorithm *, NetworkNode * > &algoNodeMap) |
Protected Attributes | |
streaming::Algorithm * | _algo |
std::vector< NetworkNode * > | _children |
A NetworkNode is a structure used to represent an Algorithm in a Network of Execution. It points to a given Algorithm and also contains a list of algorithms which execution should come after this one's, hence forming the basis for a tree structure. TODO: rename dependencies to children?
|
inline |
|
inline |
References NetworkNode::_children, and essentia::contains().
std::vector<NetworkNode*> addVisibleDependencies | ( | std::map< streaming::Algorithm *, NetworkNode * > & | algoNodeMap | ) |
|
inline |
References NetworkNode::_algo.
|
inline |
References NetworkNode::_algo.
Referenced by essentia::scheduler::getIdentityAndName(), and essentia::scheduler::returnAlgorithm().
|
inline |
References NetworkNode::_children.
Referenced by NetworkNode::setChildren().
|
inline |
References NetworkNode::_children, and NetworkNode::children().
|
protected |
Algorithm that this node represents in the network.
Referenced by NetworkNode::algorithm().
|
protected |
Referenced by NetworkNode::addChild(), NetworkNode::children(), and NetworkNode::setChildren().