Go to the documentation of this file.
15#ifndef LIEF_DWARF_EDITOR_STRUCT_TYPE_H
16#define LIEF_DWARF_EDITOR_STRUCT_TYPE_H
41 enum class TYPE : uint32_t {
51 Member(std::unique_ptr<details::StructMember> impl);
55 std::unique_ptr<details::StructMember> impl_;
63 std::unique_ptr<Member>
add_member(
const std::string& name,
const Type& type,
Member(std::unique_ptr< details::StructMember > impl)
This class represents a struct-like type which can be:
Definition StructType.hpp:37
~StructType() override=default
std::unique_ptr< Member > add_member(const std::string &name, const Type &type, int64_t offset=-1)
Add a member to the current struct-like.
static bool classof(const Type *type)
StructType & set_size(uint64_t size)
Define the overall size which is equivalent to the sizeof of the current type.
This class is the base class for any types created when editing DWARF debug info.
Definition DWARF/editor/Type.hpp:36
Definition DWARF/editor/CompilationUnit.hpp:36
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:39
#define LIEF_API
Definition visibility.h:41