Maps port names to the Links that are connected to it. More...
#include <linkMap.h>
Public Member Functions | |
void | setAllowedPorts (const std::vector< std::string > *p) |
Set the list of allowed port names from the ElementInfoPort. | |
void | addSelfPort (std::string &name) |
Add a port name to the list of allowed ports. | |
bool | isSelfPort (const std::string &name) const |
void | insertLink (std::string name, Link *link) |
Inserts a new pair of name and link into the map. | |
Link * | getLink (std::string name) |
Returns a Link pointer for a given name. | |
bool | empty () |
Checks to see if LinkMap is empty. | |
std::map< std::string, Link * > & | getLinkMap () |
Return a reference to the internal map. | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Serialize LinkMap. | |
Friends | |
class | boost::serialization::access |
Maps port names to the Links that are connected to it.
void SST::LinkMap::addSelfPort | ( | std::string & | name | ) | [inline] |
Add a port name to the list of allowed ports.
Used by SelfLinks, as these are undocumented.
bool SST::LinkMap::empty | ( | ) | [inline] |
Checks to see if LinkMap is empty.
Referenced by SST::Simulation::performWireUp().