BasicRouter.hh (9465:4ae4f3f4b870) BasicRouter.hh (10082:70f350b13ec0)
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;

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

41 public:
42 typedef BasicRouterParams Params;
43 BasicRouter(const Params *p);
44 const Params *params() const { return (const Params *)_params; }
45
46 void init();
47
48 void print(std::ostream& out) const;
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;

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

41 public:
42 typedef BasicRouterParams Params;
43 BasicRouter(const Params *p);
44 const Params *params() const { return (const Params *)_params; }
45
46 void init();
47
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 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__
49 protected:
50 //
51 // ID in relation to other routers in the system
52 //
53 uint32_t m_id;
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__