#include <core/porttracker.h>
Public Types | |
typedef std::vector< const Port * > | ConnectionList |
Public Member Functions | |
PortTracker () | |
virtual | ~PortTracker () |
void | setTracker (StateTracker *tracker) |
StateTracker * | tracker () const |
const Port * | addPort (const int moduleID, const std::string &name, const std::string &description, const Port::Type type, int flags=0) |
const Port * | addPort (const Port &port) |
virtual std::vector< message::Buffer > | removePort (const Port &port) |
bool | addConnection (const Port &out, const Port &in) |
bool | addConnection (const int a, const std::string &na, const int b, const std::string &nb) |
bool | removeConnection (const Port &from, const Port &to) |
bool | removeConnection (const int a, const std::string &na, const int b, const std::string &nb) |
const Port::ConstPortSet * | getConnectionList (const Port *port) const |
const Port::ConstPortSet * | getConnectionList (const int moduleID, const std::string &name) const |
virtual const Port * | getPort (const int moduleID, const std::string &name) |
Port * | findPort (const Port &p) const |
Port * | findPort (const int moduleID, const std::string &name) const |
std::vector< std::string > | getPortNames (const int moduleID, Port::Type type) const |
std::vector< std::string > | getInputPortNames (const int moduleID) const |
std::vector< std::string > | getOutputPortNames (const int moduleID) const |
std::vector< Port * > | getPorts (const int moduleID, Port::Type type, bool connectedOnly=false) const |
std::vector< Port * > | getInputPorts (const int moduleID) const |
std::vector< Port * > | getConnectedInputPorts (const int moduleID) const |
std::vector< Port * > | getOutputPorts (const int moduleID) const |
std::vector< Port * > | getConnectedOutputPorts (const int moduleID) const |
virtual std::vector< message::Buffer > | removeModule (int moduleId) |
Protected Types | |
typedef std::map< std::string, Port * > | PortMap |
typedef std::map< int, PortMap * > | ModulePortMap |
typedef std::map< int, std::string > | PortOrder |
Protected Member Functions | |
bool | check () const |
Protected Attributes | |
StateTracker * | m_stateTracker |
ModulePortMap | m_ports |
std::map< int, PortOrder * > | m_portOrders |
typedef std::vector<const Port *> vistle::PortTracker::ConnectionList |
|
protected |
|
protected |
|
protected |
vistle::PortTracker::PortTracker | ( | ) |
|
virtual |
bool vistle::PortTracker::addConnection | ( | const int | a, |
const std::string & | na, | ||
const int | b, | ||
const std::string & | nb | ||
) |
const Port * vistle::PortTracker::addPort | ( | const int | moduleID, |
const std::string & | name, | ||
const std::string & | description, | ||
const Port::Type | type, | ||
int | flags = 0 |
||
) |
|
protected |
Port * vistle::PortTracker::findPort | ( | const int | moduleID, |
const std::string & | name | ||
) | const |
std::vector< Port * > vistle::PortTracker::getConnectedInputPorts | ( | const int | moduleID | ) | const |
std::vector< Port * > vistle::PortTracker::getConnectedOutputPorts | ( | const int | moduleID | ) | const |
const Port::ConstPortSet * vistle::PortTracker::getConnectionList | ( | const int | moduleID, |
const std::string & | name | ||
) | const |
const Port::ConstPortSet * vistle::PortTracker::getConnectionList | ( | const Port * | port | ) | const |
std::vector< std::string > vistle::PortTracker::getInputPortNames | ( | const int | moduleID | ) | const |
std::vector< Port * > vistle::PortTracker::getInputPorts | ( | const int | moduleID | ) | const |
std::vector< std::string > vistle::PortTracker::getOutputPortNames | ( | const int | moduleID | ) | const |
std::vector< Port * > vistle::PortTracker::getOutputPorts | ( | const int | moduleID | ) | const |
|
virtual |
std::vector< std::string > vistle::PortTracker::getPortNames | ( | const int | moduleID, |
Port::Type | type | ||
) | const |
std::vector< Port * > vistle::PortTracker::getPorts | ( | const int | moduleID, |
Port::Type | type, | ||
bool | connectedOnly = false |
||
) | const |
bool vistle::PortTracker::removeConnection | ( | const int | a, |
const std::string & | na, | ||
const int | b, | ||
const std::string & | nb | ||
) |
|
virtual |
|
virtual |
void vistle::PortTracker::setTracker | ( | StateTracker * | tracker | ) |
StateTracker * vistle::PortTracker::tracker | ( | ) | const |
|
protected |
|
protected |
|
protected |