BasicRouter.hh (10082:70f350b13ec0) | BasicRouter.hh (11664:2365e9e396f7) |
---|---|
1/* 2 * Copyright (c) 2011 Advanced Micro Devices, Inc. 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; --- 37 unchanged lines hidden (view full) --- 46 void init(); 47 48 void print(std::ostream& out) const; 49 protected: 50 // 51 // ID in relation to other routers in the system 52 // 53 uint32_t m_id; | 1/* 2 * Copyright (c) 2011 Advanced Micro Devices, Inc. 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; --- 37 unchanged lines hidden (view full) --- 46 void init(); 47 48 void print(std::ostream& out) const; 49 protected: 50 // 51 // ID in relation to other routers in the system 52 // 53 uint32_t m_id; |
54 uint32_t m_latency; |
|
54}; 55 56inline std::ostream& 57operator<<(std::ostream& out, const BasicRouter& obj) 58{ 59 obj.print(out); 60 out << std::flush; 61 return out; 62} 63 64#endif // __MEM_RUBY_NETWORK_BASIC_ROUTER_HH__ | 55}; 56 57inline std::ostream& 58operator<<(std::ostream& out, const BasicRouter& obj) 59{ 60 obj.print(out); 61 out << std::flush; 62 return out; 63} 64 65#endif // __MEM_RUBY_NETWORK_BASIC_ROUTER_HH__ |