View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
vistle::PortTracker Class Reference

#include <core/porttracker.h>

Collaboration diagram for vistle::PortTracker:
Collaboration graph
[legend]

Public Types

typedef std::vector< const Port * > ConnectionList
 

Public Member Functions

 PortTracker ()
 
virtual ~PortTracker ()
 
void setTracker (StateTracker *tracker)
 
StateTrackertracker () const
 
const PortaddPort (const int moduleID, const std::string &name, const std::string &description, const Port::Type type, int flags=0)
 
const PortaddPort (const Port &port)
 
virtual std::vector< message::BufferremovePort (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::ConstPortSetgetConnectionList (const Port *port) const
 
const Port::ConstPortSetgetConnectionList (const int moduleID, const std::string &name) const
 
virtual const PortgetPort (const int moduleID, const std::string &name)
 
PortfindPort (const Port &p) const
 
PortfindPort (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::BufferremoveModule (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

StateTrackerm_stateTracker
 
ModulePortMap m_ports
 
std::map< int, PortOrder * > m_portOrders
 

Member Typedef Documentation

◆ ConnectionList

typedef std::vector<const Port *> vistle::PortTracker::ConnectionList

◆ ModulePortMap

typedef std::map<int, PortMap *> vistle::PortTracker::ModulePortMap
protected

◆ PortMap

typedef std::map<std::string, Port *> vistle::PortTracker::PortMap
protected

◆ PortOrder

typedef std::map<int, std::string> vistle::PortTracker::PortOrder
protected

Constructor & Destructor Documentation

◆ PortTracker()

vistle::PortTracker::PortTracker ( )

◆ ~PortTracker()

vistle::PortTracker::~PortTracker ( )
virtual

Member Function Documentation

◆ addConnection() [1/2]

bool vistle::PortTracker::addConnection ( const int  a,
const std::string &  na,
const int  b,
const std::string &  nb 
)

◆ addConnection() [2/2]

bool vistle::PortTracker::addConnection ( const Port out,
const Port in 
)

◆ addPort() [1/2]

const Port * vistle::PortTracker::addPort ( const int  moduleID,
const std::string &  name,
const std::string &  description,
const Port::Type  type,
int  flags = 0 
)

◆ addPort() [2/2]

const Port * vistle::PortTracker::addPort ( const Port port)

◆ check()

bool vistle::PortTracker::check ( ) const
protected

◆ findPort() [1/2]

Port * vistle::PortTracker::findPort ( const int  moduleID,
const std::string &  name 
) const

◆ findPort() [2/2]

Port * vistle::PortTracker::findPort ( const Port p) const

◆ getConnectedInputPorts()

std::vector< Port * > vistle::PortTracker::getConnectedInputPorts ( const int  moduleID) const

◆ getConnectedOutputPorts()

std::vector< Port * > vistle::PortTracker::getConnectedOutputPorts ( const int  moduleID) const

◆ getConnectionList() [1/2]

const Port::ConstPortSet * vistle::PortTracker::getConnectionList ( const int  moduleID,
const std::string &  name 
) const

◆ getConnectionList() [2/2]

const Port::ConstPortSet * vistle::PortTracker::getConnectionList ( const Port port) const

◆ getInputPortNames()

std::vector< std::string > vistle::PortTracker::getInputPortNames ( const int  moduleID) const

◆ getInputPorts()

std::vector< Port * > vistle::PortTracker::getInputPorts ( const int  moduleID) const

◆ getOutputPortNames()

std::vector< std::string > vistle::PortTracker::getOutputPortNames ( const int  moduleID) const

◆ getOutputPorts()

std::vector< Port * > vistle::PortTracker::getOutputPorts ( const int  moduleID) const

◆ getPort()

const Port * vistle::PortTracker::getPort ( const int  moduleID,
const std::string &  name 
)
virtual

◆ getPortNames()

std::vector< std::string > vistle::PortTracker::getPortNames ( const int  moduleID,
Port::Type  type 
) const

◆ getPorts()

std::vector< Port * > vistle::PortTracker::getPorts ( const int  moduleID,
Port::Type  type,
bool  connectedOnly = false 
) const

◆ removeConnection() [1/2]

bool vistle::PortTracker::removeConnection ( const int  a,
const std::string &  na,
const int  b,
const std::string &  nb 
)

◆ removeConnection() [2/2]

bool vistle::PortTracker::removeConnection ( const Port from,
const Port to 
)

◆ removeModule()

std::vector< message::Buffer > vistle::PortTracker::removeModule ( int  moduleId)
virtual

◆ removePort()

std::vector< message::Buffer > vistle::PortTracker::removePort ( const Port port)
virtual

◆ setTracker()

void vistle::PortTracker::setTracker ( StateTracker tracker)

◆ tracker()

StateTracker * vistle::PortTracker::tracker ( ) const

Member Data Documentation

◆ m_portOrders

std::map<int, PortOrder *> vistle::PortTracker::m_portOrders
protected

◆ m_ports

ModulePortMap vistle::PortTracker::m_ports
protected

◆ m_stateTracker

StateTracker* vistle::PortTracker::m_stateTracker
protected

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