15#ifndef LIEF_DWARF_TYPE_H
16#define LIEF_DWARF_TYPE_H
88 template<
typename RefT>
90 R(std::forward<RefT>(R)) {
101 return !(LHS == RHS);
122 return static_cast<const Iterator*
>(
this)->
operator*();
126 std::unique_ptr<details::TypeIt> impl_;
183 std::unique_ptr<Scope>
scope()
const;
189 const T*
as()
const {
190 if (T::classof(
this)) {
191 return static_cast<const T*
>(
this);
196 static std::unique_ptr<Type>
create(std::unique_ptr<details::Type> impl);
199 Type(std::unique_ptr<details::Type> impl);
200 Type(details::Type& impl);
Definition canbe_unique.hpp:22
This class materializes a scope in which Function, Variable, Type, ... can be defined.
Definition Scope.hpp:33
Definition DWARF/Type.hpp:76
pointer operator->() const
Definition DWARF/Type.hpp:81
friend class Iterator
Definition DWARF/Type.hpp:78
std::unique_ptr< Type > value_type
Definition DWARF/Type.hpp:70
PointerProxy operator->() const
Definition DWARF/Type.hpp:121
Iterator operator--(int)
Definition DWARF/Type.hpp:107
Iterator operator++(int)
Definition DWARF/Type.hpp:113
Type * pointer
Definition DWARF/Type.hpp:72
std::bidirectional_iterator_tag iterator_category
Definition DWARF/Type.hpp:69
Iterator(const Iterator &)
std::unique_ptr< Type > & reference
Definition DWARF/Type.hpp:73
Iterator(Iterator &&) noexcept
std::ptrdiff_t difference_type
Definition DWARF/Type.hpp:71
std::unique_ptr< Type > operator*() const
details::TypeIt implementation
Definition DWARF/Type.hpp:74
const T * as() const
Definition DWARF/Type.hpp:189
bool is_unspecified() const
Whether this type is a DW_TAG_unspecified_type.
Definition DWARF/Type.hpp:166
KIND
Definition DWARF/Type.hpp:131
@ UNSPECIFIED
Definition DWARF/Type.hpp:133
result< std::string > name() const
Return the type's name using either DW_AT_name or DW_AT_picture_string (if any).
result< uint64_t > size() const
Return the size of the type or an error if it can't be computed.
std::string to_decl(const DeclOpt &opt=DeclOpt()) const
Generates a C/C++ definition for this type.
debug_location_t location() const
Return the debug location where this type is defined.
static std::unique_ptr< Type > create(std::unique_ptr< details::Type > impl)
std::unique_ptr< Scope > scope() const
Return the scope in which this type is defined.
Wrapper that contains an Object (T) or an error.
Definition errors.hpp:77
Definition DWARF/CompilationUnit.hpp:30
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:40
Configuration options for generated code from debug info.
Definition DebugDeclOpt.hpp:25
This structure holds a debug location (source filename & line).
Definition debug_loc.hpp:23
#define LIEF_API
Definition visibility.h:45