#include #include #include #include #include #include #include Processor_t *new_Processor(ParseXML_t *XML_interface) { return TO(Processor_t, new Processor(TO(ParseXML, XML_interface))); } void delete_Processor(Processor_t *self) { delete TO(Processor, self); } Core_t *Processor_cores(Processor_t *self, int i) { return TO(Core_t, TO(Processor, self)->cores[i]); } SharedCache_t *Processor_l3array(Processor_t *self, int i) { return TO(SharedCache_t, TO(Processor, self)->l3array[i]); } Component_t *Processor_l3(Processor_t *self) { return TO(Component_t, &TO(Processor, self)->l3); } int Processor_numCore(Processor_t *self) { return TO(Processor, self)->numCore; } int Processor_numL2(Processor_t *self) { return TO(Processor, self)->numL2; } int Processor_numL3(Processor_t *self) { return TO(Processor, self)->numL3; } int Processor_numNOC(Processor_t *self) { return TO(Processor, self)->numNOC; } int Processor_numL1Dir(Processor_t *self) { return TO(Processor, self)->numL1Dir; } int Processor_numL2Dir(Processor_t *self) { return TO(Processor, self)->numL2Dir; }