BasicRouter.hh (8257:7226aebb77b4) BasicRouter.hh (9274:ba635023d4bb)
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;

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

48 void print(std::ostream& out) const;
49
50 friend class Topology;
51
52 protected:
53 //
54 // ID in relation to other routers in the system
55 //
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;

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

48 void print(std::ostream& out) const;
49
50 friend class Topology;
51
52 protected:
53 //
54 // ID in relation to other routers in the system
55 //
56 int m_id;
56 uint32_t m_id;
57};
58
59inline std::ostream&
60operator<<(std::ostream& out, const BasicRouter& obj)
61{
62 obj.print(out);
63 out << std::flush;
64 return out;
65}
66
67#endif // __MEM_RUBY_NETWORK_BASIC_ROUTER_HH__
57};
58
59inline std::ostream&
60operator<<(std::ostream& out, const BasicRouter& obj)
61{
62 obj.print(out);
63 out << std::flush;
64 return out;
65}
66
67#endif // __MEM_RUBY_NETWORK_BASIC_ROUTER_HH__