X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5954f11308de69ea37c6f6fdd993925f90749984..9692d43fa911bdc2d6d0263a3cb3e22d5e3167fe:/src/mc/Type.hpp diff --git a/src/mc/Type.hpp b/src/mc/Type.hpp index 972b08de26..5551e23278 100644 --- a/src/mc/Type.hpp +++ b/src/mc/Type.hpp @@ -29,10 +29,14 @@ namespace mc { */ class Member { public: + typedef int flags_type; + static constexpr flags_type INHERITANCE_FLAG = 1; + static constexpr flags_type VIRTUAL_POINTER_FLAG = 2; + Member() {} /** Whether this member represent some inherited part of the object */ - bool inheritance = false; + flags_type flags = 0; /** Name of the member (if any) */ std::string name; @@ -45,6 +49,15 @@ public: unsigned type_id = 0; simgrid::mc::Type* type = nullptr; + bool isInheritance() const + { + return this->flags & INHERITANCE_FLAG; + } + bool isVirtualPointer() const + { + return this->flags & VIRTUAL_POINTER_FLAG; + } + /** Whether the member is at a fixed offset from the base address */ bool has_offset_location() const {