Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] OOPify/C++ify Type
[simgrid.git] / src / mc / mc_object_info.cpp
index e040769..67e4d35 100644 (file)
 namespace simgrid {
 namespace mc {
 
+// Type
+
+Type::Type()
+{
+  this->type = 0;
+  this->id = 0;
+  this->name = std::string();
+  this->byte_size = 0;
+  this->element_count = 0;
+  this->members = nullptr;
+  this->is_pointer_type = 0;
+  this->location = {0, 0, 0, 0};
+  this->offset = 0;
+  this->subtype = nullptr;
+  this->full_type = nullptr;
+}
+
+Type::~Type()
+{
+  xbt_dynar_free(&this->members);
+  mc_dwarf_expression_clear(&this->location);
+}
+
+// ObjectInformations
+
 dw_frame_t ObjectInformation::find_function(const void *ip) const
 {
   xbt_dynar_t dynar = this->functions_index;