The MAUVE Toolchain
mauve::runtime::Port< S > Class Template Reference
Inheritance diagram for mauve::runtime::Port< S >:
Collaboration diagram for mauve::runtime::Port< S >:

Public Member Functions

 Port (HasPort *container, std::string const &name)
 
bool connect (S &service)
 
bool connect_service (Service *service) overridefinal
 Connect the port to a service.
 
std::vector< Service * > connected_services () const overridefinal
 Get the list of connected services.
 
std::size_t connections_size () const override
 Get the number of connected services.
 
bool disconnect () overridefinal
 Disconnect the port.
 
bool disconnect (S &service)
 
Serviceget_connection (int index) const override
 Get connected Service according to the index.
 
bool is_connected () const overridefinal
 Check if the port is connected.
 
bool is_connected_to (S &service) const
 
- Public Member Functions inherited from mauve::runtime::AbstractPort
 AbstractPort (std::string const &name)
 Constructor. More...
 
 AbstractPort (const AbstractPort &other)=delete
 Constructor. More...
 
virtual connection_type get_type () const =0
 Get port type.
 
virtual std::string type_name () const =0
 Get port type name.
 

Protected Member Functions

 Port (const Port< S > &other)=delete
 

Protected Attributes

const HasPortcontainer
 
std::vector< S * > services
 

Additional Inherited Members

- Public Attributes inherited from mauve::runtime::AbstractPort
const std::string name
 Port name.