15#ifndef LIEF_DWARF_TYPE_STRUCTURE_H
16#define LIEF_DWARF_TYPE_STRUCTURE_H
35 template<
typename... Args,
36 typename =
typename std::
37 enable_if<std::is_constructible<
Type, Args&&...>::value>::type>
39 Type(std::forward<Args>(args)...) {}
44 Member(std::unique_ptr<details::Member> impl);
102 const auto kind = type->kind();
122 template<
typename... Args,
123 typename =
typename std::
124 enable_if<std::is_constructible<
ClassLike, Args&&...>::value>::type>
126 ClassLike(std::forward<Args>(args)...) {}
144 template<
typename... Args,
145 typename =
typename std::
146 enable_if<std::is_constructible<
ClassLike, Args&&...>::value>::type>
148 ClassLike(std::forward<Args>(args)...) {}
166 template<
typename... Args,
167 typename =
typename std::
168 enable_if<std::is_constructible<
ClassLike, Args&&...>::value>::type>
170 ClassLike(std::forward<Args>(args)...) {}
188 template<
typename... Args,
189 typename =
typename std::
190 enable_if<std::is_constructible<
ClassLike, Args&&...>::value>::type>
192 ClassLike(std::forward<Args>(args)...) {}
This class represents a DWARF function which can be associated with either: DW_TAG_subprogram or DW_T...
Definition DWARF/Function.hpp:45
Definition DWARF/Type.hpp:71
@ PACKED
Definition DWARF/Type.hpp:143
@ STRUCT
Definition DWARF/Type.hpp:135
@ CLASS
Definition DWARF/Type.hpp:132
@ UNION
Definition DWARF/Type.hpp:136
Type(std::unique_ptr< details::Type > impl)
This represents a class/struct/union attribute.
Definition DWARF/types/ClassLike.hpp:42
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
Member(const Member &)=delete
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.
Member & operator=(const Member &)=delete
iterator_range< Function::Iterator > functions_it
Definition DWARF/types/ClassLike.hpp:99
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.
ClassLike(Args &&... args)
Definition DWARF/types/ClassLike.hpp:38
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:101
Class(Args &&... args)
Definition DWARF/types/ClassLike.hpp:147
Class & operator=(const Class &)=delete
Class(Class &&) noexcept=default
Class(const Class &)=delete
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:156
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:200
Packed & operator=(const Packed &)=delete
Packed(Packed &&) noexcept=default
Packed(Args &&... args)
Definition DWARF/types/ClassLike.hpp:191
Packed(const Packed &)=delete
Structure(Args &&... args)
Definition DWARF/types/ClassLike.hpp:125
Structure(Structure &&) noexcept=default
Structure(const Structure &)=delete
Structure & operator=(const Structure &)=delete
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:134
Union(Union &&) noexcept=default
Union(const Union &)=delete
static bool classof(const Type *type)
Definition DWARF/types/ClassLike.hpp:178
Union & operator=(const Union &)=delete
Union(Args &&... args)
Definition DWARF/types/ClassLike.hpp:169
Definition iterators.hpp:601
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:78
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Definition DWARF/types/ClassLike.hpp:27
Definition DWARF/types/Array.hpp:24
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:30
LIEF namespace.
Definition Abstract/Binary.hpp:41
#define LIEF_API
Definition visibility.h:45