SST/macro
|
#include <connection.h>
Classes | |
struct | config |
Public Types | |
enum | config_type_t { RedundantConnection =0, WeightedConnection =1, FixedBandwidthConnection =2, FixedConnection =3, BasicConnection =4 } |
enum | connection_type_t { output, input } |
Public Member Functions | |
virtual std::string | to_string () const =0 |
virtual void | connect (int src_outport, int dst_inport, connection_type_t ty, connectable *mod, config *cfg)=0 |
connect More... | |
Static Public Member Functions | |
static const char * | str (connection_type_t ty) |
Static Public Attributes | |
static const int | any_port = -1 |
Definition at line 15 of file connection.h.
Definition at line 23 of file connection.h.
Enumerator | |
---|---|
output | |
input |
Definition at line 45 of file connection.h.
|
pure virtual |
connect
src_outport | The outgoing port at the source |
dst_inport | The incoming port at the destination |
ty | Whether we are configuring the input or output direction |
mod | The device currently being connected |
cfg | A struct with various special configuration options |
Implemented in sstmac::hw::packet_flow_netlink, sstmac::hw::node, sstmac::hw::packet_flow_nic, and sstmac::hw::simple_nic.
Referenced by str().
|
inlinestatic |
Definition at line 52 of file connection.h.
References connect(), connect_str_case, input, output, and sstmac::hw::connectable::config::ty.
|
pure virtual |
|
static |
Definition at line 21 of file connection.h.