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 const int m_buffer_size;
91 const int m_endpoint_bandwidth;
92 const bool m_adaptive_routing;
93
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__