Go to the documentation of this file.
29 #ifndef __MEM_RUBY_COMMON_MACHINEID_HH__
30 #define __MEM_RUBY_COMMON_MACHINEID_HH__
36 #include "mem/ruby/protocol/MachineType.hh"
42 :
type(mach_type),
num(node_id) { }
55 return csprintf(
"%s_%d", MachineType_to_string(machine.
type), machine.
num);
74 size_t hval = MachineType_base_level(
id.
type) << 16 |
id.num;
86 if ((obj.
type < MachineType_NUM) && (obj.
type >= MachineType_FIRST)) {
87 out << MachineType_to_string(obj.
type);
97 #endif // __MEM_RUBY_COMMON_MACHINEID_HH__
size_t operator()(const MachineID &id) const
MachineType getType() const
bool operator!=(const MachineID &obj1, const MachineID &obj2)
MachineID(MachineType mach_type, NodeID node_id)
Overload hash function for BasicBlockRange type.
NodeID num
range: 0 ... number of this machine's components in system - 1
std::ostream & operator<<(std::ostream &out, const MachineID &obj)
std::string MachineIDToString(MachineID machine)
bool operator==(const MachineID &obj1, const MachineID &obj2)
std::string csprintf(const char *format, const Args &...args)
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17