SimpleNetwork.hh (9863:9483739f83ee) SimpleNetwork.hh (9866:94dac7d7bb88)
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;

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

106 std::vector<MessageBuffer*> m_buffers_to_free;
107 std::vector<Switch*> m_endpoint_switches;
108
109 int m_buffer_size;
110 int m_endpoint_bandwidth;
111 bool m_adaptive_routing;
112
113 //Statistical variables
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;

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

106 std::vector<MessageBuffer*> m_buffers_to_free;
107 std::vector<Switch*> m_endpoint_switches;
108
109 int m_buffer_size;
110 int m_endpoint_bandwidth;
111 bool m_adaptive_routing;
112
113 //Statistical variables
114 std::vector<Stats::Formula> m_msg_counts;
115 std::vector<Stats::Formula> m_msg_bytes;
114 Stats::Formula m_msg_counts[MessageSizeType_NUM];
115 Stats::Formula m_msg_bytes[MessageSizeType_NUM];
116};
117
118inline std::ostream&
119operator<<(std::ostream& out, const SimpleNetwork& obj)
120{
121 obj.print(out);
122 out << std::flush;
123 return out;
124}
125
126#endif // __MEM_RUBY_NETWORK_SIMPLE_SIMPLENETWORK_HH__
116};
117
118inline std::ostream&
119operator<<(std::ostream& out, const SimpleNetwork& obj)
120{
121 obj.print(out);
122 out << std::flush;
123 return out;
124}
125
126#endif // __MEM_RUBY_NETWORK_SIMPLE_SIMPLENETWORK_HH__