SyDEVS
v0.7
Simulation-based analysis of complex systems involving people, devices, physical elements, and dynamic environments.
|
A base class template for all port classes. More...
#include <port.h>
Inherited by sydevs::systems::port< dmode, dgoal, T >.
Public Member Functions | |
port_base (const port_base &)=delete | |
No copy constructor. More... | |
port_base & | operator= (const port_base &)=delete |
No copy assignment. More... | |
port_base (port_base &&)=default | |
Move constructor. More... | |
port_base & | operator= (port_base &&)=default |
Move assignment. More... | |
virtual | ~port_base ()=default |
Destructor. More... | |
const std::string & | port_name () const |
Returns the name of the port. More... | |
int64 | port_index () const |
Returns the index of the port within the encompassing node_interface object. More... | |
int64 | node_index () const |
Returns the index of the node within the encompassing node_structure object. More... | |
const node_interface & | external_interface () const |
Returns the encomassing node_interface object. More... | |
Protected Member Functions | |
port_base (const std::string &port_name, int64 port_index, node_interface &external_interface) | |
A base class template for all port classes.
port_base
contains indices and references common to all types of ports.
|
delete |
No copy constructor.
|
default |
Move constructor.
|
virtualdefault |
Destructor.
|
protected |
const node_interface & sydevs::systems::port_base< dmode, dgoal, T >::external_interface |
Returns the encomassing node_interface
object.
int64 sydevs::systems::port_base< dmode, dgoal, T >::node_index |
Returns the index of the node within the encompassing node_structure
object.
|
delete |
No copy assignment.
|
default |
Move assignment.
int64 sydevs::systems::port_base< dmode, dgoal, T >::port_index |
Returns the index of the port within the encompassing node_interface
object.
const std::string & sydevs::systems::port_base< dmode, dgoal, T >::port_name |
Returns the name of the port.