1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 43 unchanged lines hidden (view full) --- 52class Network; 53 54typedef std::vector<std::vector<int> > Matrix; 55typedef std::string PortDirection; 56 57struct LinkEntry 58{ 59 BasicLink *link; |
60 PortDirection src_outport_dirn; 61 PortDirection dst_inport_dirn; 62}; 63 64typedef std::map<std::pair<SwitchID, SwitchID>, LinkEntry> LinkMap; 65 66class Topology 67{ --- 46 unchanged lines hidden --- |