Deleted Added
sdiff udiff text old ( 11113:5a2e1b1b5c43 ) new ( 11124:5d38dc2f7d66 )
full compact
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;
91
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__