SimpleNetwork.hh (11113:5a2e1b1b5c43) | SimpleNetwork.hh (11124:5d38dc2f7d66) |
---|---|
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; --- 73 unchanged lines hidden (view full) --- 82 83 // Private copy constructor and assignment operator 84 SimpleNetwork(const SimpleNetwork& obj); 85 SimpleNetwork& operator=(const SimpleNetwork& obj); 86 87 std::vector<Switch*> m_switches; 88 std::vector<MessageBuffer*> m_int_link_buffers; 89 int m_num_connected_buffers; | 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; --- 73 unchanged lines hidden (view full) --- 82 83 // Private copy constructor and assignment operator 84 SimpleNetwork(const SimpleNetwork& obj); 85 SimpleNetwork& operator=(const SimpleNetwork& obj); 86 87 std::vector<Switch*> m_switches; 88 std::vector<MessageBuffer*> m_int_link_buffers; 89 int m_num_connected_buffers; |
90 std::vector<Switch*> m_endpoint_switches; | 90 const int m_buffer_size; 91 const int m_endpoint_bandwidth; 92 const bool m_adaptive_routing; |
91 | 93 |
92 int m_buffer_size; 93 int m_endpoint_bandwidth; 94 bool m_adaptive_routing; 95 | |
96 //Statistical variables 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 SimpleNetwork& obj) 103{ 104 obj.print(out); 105 out << std::flush; 106 return out; 107} 108 109#endif // __MEM_RUBY_NETWORK_SIMPLE_SIMPLENETWORK_HH__ | 94 //Statistical variables 95 Stats::Formula m_msg_counts[MessageSizeType_NUM]; 96 Stats::Formula m_msg_bytes[MessageSizeType_NUM]; 97}; 98 99inline std::ostream& 100operator<<(std::ostream& out, const SimpleNetwork& obj) 101{ 102 obj.print(out); 103 out << std::flush; 104 return out; 105} 106 107#endif // __MEM_RUBY_NETWORK_SIMPLE_SIMPLENETWORK_HH__ |