Switch.hh (9274:ba635023d4bb) Switch.hh (9302:c2e70a9bc340)
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;

--- 60 unchanged lines hidden (view full) ---

69 void clearBuffers();
70 void reconfigureOutPort(const NetDest& routing_table_entry);
71
72 void printStats(std::ostream& out) const;
73 void clearStats();
74 void print(std::ostream& out) const;
75 void init_net_ptr(SimpleNetwork* net_ptr) { m_network_ptr = net_ptr; }
76
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;

--- 60 unchanged lines hidden (view full) ---

69 void clearBuffers();
70 void reconfigureOutPort(const NetDest& routing_table_entry);
71
72 void printStats(std::ostream& out) const;
73 void clearStats();
74 void print(std::ostream& out) const;
75 void init_net_ptr(SimpleNetwork* net_ptr) { m_network_ptr = net_ptr; }
76
77 bool functionalRead(Packet *);
78 uint32_t functionalWrite(Packet *);
79
77 private:
78 // Private copy constructor and assignment operator
79 Switch(const Switch& obj);
80 Switch& operator=(const Switch& obj);
81
82 PerfectSwitch* m_perfect_switch_ptr;
83 SimpleNetwork* m_network_ptr;
84 std::vector<Throttle*> m_throttles;

--- 12 unchanged lines hidden ---
80 private:
81 // Private copy constructor and assignment operator
82 Switch(const Switch& obj);
83 Switch& operator=(const Switch& obj);
84
85 PerfectSwitch* m_perfect_switch_ptr;
86 SimpleNetwork* m_network_ptr;
87 std::vector<Throttle*> m_throttles;

--- 12 unchanged lines hidden ---