getId
LinkId_t getId();
Returns the unique ID assigned to the Link. LinkId_t is a uint32_t.
Parameters
- returns The ID assigned to the Link.
Example
// Configure a link connected to a port named 'port'
SST::Link* link = configureLink("port", new Event::Handler2<example,&example::handleEvent>(this));
Output* out = getSimulationOutput();
out->output("The link connected to 'port' has id %u\n", link->getId());
Header
#include <sst/core/link.h>