Switch.hh (10370:4466307b8a2a) Switch.hh (11021:e8a6637afa4c)
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;

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

84 private:
85 // Private copy constructor and assignment operator
86 Switch(const Switch& obj);
87 Switch& operator=(const Switch& obj);
88
89 PerfectSwitch* m_perfect_switch;
90 SimpleNetwork* m_network_ptr;
91 std::vector<Throttle*> m_throttles;
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;

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

84 private:
85 // Private copy constructor and assignment operator
86 Switch(const Switch& obj);
87 Switch& operator=(const Switch& obj);
88
89 PerfectSwitch* m_perfect_switch;
90 SimpleNetwork* m_network_ptr;
91 std::vector<Throttle*> m_throttles;
92 std::vector<MessageBuffer*> m_buffers_to_free;
92 std::vector<MessageBuffer*> m_port_buffers;
93 unsigned m_num_connected_buffers;
93
94 // Statistical variables
95 Stats::Formula m_avg_utilization;
96 Stats::Formula m_msg_counts[MessageSizeType_NUM];
97 Stats::Formula m_msg_bytes[MessageSizeType_NUM];
98};
99
100inline std::ostream&
101operator<<(std::ostream& out, const Switch& obj)
102{
103 obj.print(out);
104 out << std::flush;
105 return out;
106}
107
108#endif // __MEM_RUBY_NETWORK_SIMPLE_SWITCH_HH__
94
95 // Statistical variables
96 Stats::Formula m_avg_utilization;
97 Stats::Formula m_msg_counts[MessageSizeType_NUM];
98 Stats::Formula m_msg_bytes[MessageSizeType_NUM];
99};
100
101inline std::ostream&
102operator<<(std::ostream& out, const Switch& obj)
103{
104 obj.print(out);
105 out << std::flush;
106 return out;
107}
108
109#endif // __MEM_RUBY_NETWORK_SIMPLE_SWITCH_HH__