Go to the documentation of this file.
41 #ifndef __MEM_RUBY_COMMON_MACHINEID_HH__
42 #define __MEM_RUBY_COMMON_MACHINEID_HH__
48 #include "mem/ruby/protocol/MachineType.hh"
54 :
type(mach_type),
num(node_id) { }
69 return csprintf(
"%s_%d", MachineType_to_string(machine.
type), machine.
num);
88 size_t hval = MachineType_base_level(
id.
type) << 16 |
id.num;
100 if ((obj.
type < MachineType_NUM) && (obj.
type >= MachineType_FIRST)) {
101 out << MachineType_to_string(obj.
type);
111 #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 Tue Jun 22 2021 15:28:29 for gem5 by doxygen 1.8.17