29 #ifndef __MEM_RUBY_SYSTEM_MACHINEID_HH__
30 #define __MEM_RUBY_SYSTEM_MACHINEID_HH__
36 #include "mem/protocol/MachineType.hh"
42 :
type(mach_type),
num(node_id) { }
55 return csprintf(
"%s_%d", MachineType_to_string(machine.
type), machine.
num);
76 if ((obj.
type < MachineType_NUM) && (obj.
type >= MachineType_FIRST)) {
77 out << MachineType_to_string(obj.
type);
87 #endif // __MEM_RUBY_SYSTEM_MACHINEID_HH__
bool operator!=(const MachineID &obj1, const MachineID &obj2)
MachineID(MachineType mach_type, NodeID node_id)
MachineType getType() const
bool operator==(const MachineID &obj1, const MachineID &obj2)
std::string csprintf(const char *format, const Args &...args)
NodeID num
range: 0 ... number of this machine's components in system - 1
std::string MachineIDToString(MachineID machine)
std::ostream & operator<<(std::ostream &out, const MachineID &obj)