Topology.hh (9799:5aed42e54180) | Topology.hh (10005:8c2b0dc16ccd) |
---|---|
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; --- 45 unchanged lines hidden (view full) --- 54typedef std::vector<std::vector<int> > Matrix; 55 56struct LinkEntry 57{ 58 BasicLink *link; 59 LinkDirection direction; 60}; 61 | 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; --- 45 unchanged lines hidden (view full) --- 54typedef std::vector<std::vector<int> > Matrix; 55 56struct LinkEntry 57{ 58 BasicLink *link; 59 LinkDirection direction; 60}; 61 |
62typedef std::map<std::pair<int, int>, LinkEntry> LinkMap; | 62typedef std::map<std::pair<SwitchID, SwitchID>, LinkEntry> LinkMap; |
63 64class Topology 65{ 66 public: 67 Topology(uint32_t num_routers, std::vector<BasicExtLink *> ext_links, 68 std::vector<BasicIntLink *> int_links); 69 70 uint32_t numSwitches() const { return m_number_of_switches; } --- 30 unchanged lines hidden --- | 63 64class Topology 65{ 66 public: 67 Topology(uint32_t num_routers, std::vector<BasicExtLink *> ext_links, 68 std::vector<BasicIntLink *> int_links); 69 70 uint32_t numSwitches() const { return m_number_of_switches; } --- 30 unchanged lines hidden --- |