15#ifndef LIEF_DWARF_TYPE_STRUCTURE_H
16#define LIEF_DWARF_TYPE_STRUCTURE_H
39 Member(std::unique_ptr<details::Member> impl);
73 std::unique_ptr<Type>
type()
const;
82 std::unique_ptr<details::Member> impl_;
108 using ClassLike::ClassLike;
120 using ClassLike::ClassLike;
132 using ClassLike::ClassLike;
144 using ClassLike::ClassLike;
@ PACKED
Definition DWARF/Type.hpp:147
@ STRUCT
Definition DWARF/Type.hpp:139
@ CLASS
Definition DWARF/Type.hpp:136
@ UNION
Definition DWARF/Type.hpp:140
result< uint64_t > bit_size() const
If the current member is a bit-field, this function returns its size in bits.
Member(std::unique_ptr< details::Member > impl)
std::unique_ptr< Type > type() const
Type of the current member.
Member & operator=(Member &&other) noexcept
Member(Member &&other) noexcept
std::string name() const
Name of the member.
bool is_declaration() const
result< uint64_t > offset() const
Offset of the current member in the struct/union/class.
result< uint64_t > bit_offset() const
Offset of the current member in bits in the struct/union/class.
This class abstracts a DWARF aggregate: DW_TAG_structure_type, DW_TAG_class_type, DW_TAG_union_type.
Definition DWARF/types/ClassLike.hpp:32
iterator_range< Function::Iterator > functions_it
Definition DWARF/types/ClassLike.hpp:85
functions_it functions() const
Iterator over the functions defined by the class-like.
std::vector< Member > members() const
Return the list of all the attributes defined in this class-like type.
std::unique_ptr< Member > find_member(uint64_t offset) const
Try to find the attribute at the given offset.
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:87
This class represents a DWARF class type (DW_TAG_class_type).
Definition DWARF/types/ClassLike.hpp:118
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:122
This class represents a DWARF packed type (DW_TAG_packed_type).
Definition DWARF/types/ClassLike.hpp:142
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:146
This class represents a DWARF struct type (DW_TAG_structure_type).
Definition DWARF/types/ClassLike.hpp:106
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:110
This class represents a DWARF union type (DW_TAG_union_type).
Definition DWARF/types/ClassLike.hpp:130
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:134
Definition iterators.hpp:599
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:77
Definition DWARF/types/ClassLike.hpp:26
Definition DWARF/types/Array.hpp:23
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:40
#define LIEF_API
Definition visibility.h:45