PerfectSwitch.hh (9274:ba635023d4bb) | PerfectSwitch.hh (9465:4ae4f3f4b870) |
---|---|
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; --- 49 unchanged lines hidden (view full) --- 58 public: 59 PerfectSwitch(SwitchID sid, Switch *, uint32_t); 60 ~PerfectSwitch(); 61 62 std::string name() 63 { return csprintf("PerfectSwitch-%i", m_switch_id); } 64 65 void init(SimpleNetwork *); | 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; --- 49 unchanged lines hidden (view full) --- 58 public: 59 PerfectSwitch(SwitchID sid, Switch *, uint32_t); 60 ~PerfectSwitch(); 61 62 std::string name() 63 { return csprintf("PerfectSwitch-%i", m_switch_id); } 64 65 void init(SimpleNetwork *); |
66 void addInPort(const std::vector | 66 void addInPort(const std::vector<MessageBuffer*>& in, Switch *); |
67 void addOutPort(const std::vector<MessageBuffer*>& out, 68 const NetDest& routing_table_entry); 69 void clearRoutingTables(); 70 void clearBuffers(); 71 void reconfigureOutPort(const NetDest& routing_table_entry); 72 int getInLinks() const { return m_in.size(); } 73 int getOutLinks() const { return m_out.size(); } 74 --- 37 unchanged lines hidden --- | 67 void addOutPort(const std::vector<MessageBuffer*>& out, 68 const NetDest& routing_table_entry); 69 void clearRoutingTables(); 70 void clearBuffers(); 71 void reconfigureOutPort(const NetDest& routing_table_entry); 72 int getInLinks() const { return m_in.size(); } 73 int getOutLinks() const { return m_out.size(); } 74 --- 37 unchanged lines hidden --- |