The MAUVE Toolchain
mauve::runtime::AbstractPort Class Referenceabstract

Abstract Port class. More...

#include <AbstractPort.hpp>

Inheritance diagram for mauve::runtime::AbstractPort:

Public Member Functions

 AbstractPort (std::string const &name)
 Constructor. More...
 
 AbstractPort (const AbstractPort &other)=delete
 Constructor. More...
 
virtual bool connect_service (Service *service)=0
 Connect the port to a service.
 
virtual std::vector< Service * > connected_services () const =0
 Get the list of connected services.
 
virtual std::size_t connections_size () const =0
 Get the number of connected services.
 
virtual bool disconnect ()=0
 Disconnect the port.
 
virtual Serviceget_connection (int index) const =0
 Get connected Service according to the index.
 
virtual connection_type get_type () const =0
 Get port type.
 
virtual bool is_connected () const =0
 Check if the port is connected.
 
virtual std::string type_name () const =0
 Get port type name.
 

Public Attributes

const std::string name
 Port name.
 

Detailed Description

Abstract Port class.

Constructor & Destructor Documentation

mauve::runtime::AbstractPort::AbstractPort ( std::string const &  name)

Constructor.

Parameters
nameport name
mauve::runtime::AbstractPort::AbstractPort ( const AbstractPort other)
delete

Constructor.

Parameters
othera port to construct from