SimpleNetwork.hh (9799:5aed42e54180) SimpleNetwork.hh (9858:f2417ecf5cc9)
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;

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

100 SimpleNetwork& operator=(const SimpleNetwork& obj);
101
102 // vector of queues from the components
103 std::vector<std::vector<MessageBuffer*> > m_toNetQueues;
104 std::vector<std::vector<MessageBuffer*> > m_fromNetQueues;
105
106 std::vector<bool> m_in_use;
107 std::vector<bool> m_ordered;
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;

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

100 SimpleNetwork& operator=(const SimpleNetwork& obj);
101
102 // vector of queues from the components
103 std::vector<std::vector<MessageBuffer*> > m_toNetQueues;
104 std::vector<std::vector<MessageBuffer*> > m_fromNetQueues;
105
106 std::vector<bool> m_in_use;
107 std::vector<bool> m_ordered;
108 std::vector<Switch*> m_switch_ptr_vector;
108 std::vector<Switch*> m_switches;
109 std::vector<MessageBuffer*> m_buffers_to_free;
110 std::vector<Switch*> m_endpoint_switches;
111
112 int m_buffer_size;
113 int m_endpoint_bandwidth;
114 bool m_adaptive_routing;
115};
116
117inline std::ostream&
118operator<<(std::ostream& out, const SimpleNetwork& obj)
119{
120 obj.print(out);
121 out << std::flush;
122 return out;
123}
124
125#endif // __MEM_RUBY_NETWORK_SIMPLE_SIMPLENETWORK_HH__
109 std::vector<MessageBuffer*> m_buffers_to_free;
110 std::vector<Switch*> m_endpoint_switches;
111
112 int m_buffer_size;
113 int m_endpoint_bandwidth;
114 bool m_adaptive_routing;
115};
116
117inline std::ostream&
118operator<<(std::ostream& out, const SimpleNetwork& obj)
119{
120 obj.print(out);
121 out << std::flush;
122 return out;
123}
124
125#endif // __MEM_RUBY_NETWORK_SIMPLE_SIMPLENETWORK_HH__