The MAUVE Toolchain
mauve::runtime::HasPort Class Reference
Inheritance diagram for mauve::runtime::HasPort:
Collaboration diagram for mauve::runtime::HasPort:

Public Member Functions

void disconnect ()
 
AbstractPortget_port (std::string const &name) const
 
AbstractPortget_port (int index) const
 
const std::vector< AbstractPort * > get_ports () const
 Get the ports of the shell. More...
 
std::size_t get_ports_size () const
 
- Public Member Functions inherited from mauve::runtime::Configurable
virtual void cleanup ()=0
 Cleanup the object.
 
virtual bool configure ()=0
 Configure the object.
 
virtual bool is_configured () const =0
 Get the configuration status of the configurable object. More...
 

Protected Member Functions

template<typename R , typename... P>
CallPort< R, P... > mk_call_port (std::string const &name, R default_value)
 
EventPortmk_event_port (std::string const &name)
 
template<typename PORT , typename... PARAM>
PORT & mk_port (std::string const &name, PARAM...parameters)
 Create a new port in this shell. More...
 
template<typename T >
ReadPort< T > & mk_read_port (std::string const &name, T default_value)
 
template<typename T >
WritePort< T > & mk_write_port (std::string const &name)
 

Member Function Documentation

const std::vector<AbstractPort*> mauve::runtime::HasPort::get_ports ( ) const

Get the ports of the shell.

Returns
a vector of ports
template<typename PORT , typename... PARAM>
PORT & mauve::runtime::HasPort::mk_port ( std::string const &  name,
PARAM...  parameters 
)
protected

Create a new port in this shell.

Template Parameters
PORTPort type
PARAMList of Port parameters types
Returns
a reference to a Port object
Parameters
namename of the port
parameterslist of port parameters