|
LIEF: Library to Instrument Executable Formats Version 2.0.0
|
This class represents a DWARF Type which includes: More...
#include <Type.hpp>

Classes | |
| class | Iterator |
Public Types | |
| enum class | KIND { UNKNOWN = 0 , UNSPECIFIED , BASE , CONST_KIND , CLASS , ARRAY , POINTER , STRUCT , UNION , TYPEDEF , REF , SET_TYPE , STRING , SUBROUTINE , POINTER_MEMBER , PACKED , FILE , THROWN , VOLATILE , RESTRICT , INTERFACE , SHARED , RVALREF , TEMPLATE_ALIAS , COARRAY , DYNAMIC , ATOMIC , IMMUTABLE , ENUM } |
Public Member Functions | |
| Type (std::unique_ptr< details::Type > impl) | |
| Type (details::Type &impl) | |
| Type (const Type &)=delete | |
| Type & | operator= (const Type &)=delete |
| Type (Type &&) noexcept | |
| Type & | operator= (Type &&) noexcept |
| virtual | ~Type () |
| KIND | kind () const |
| bool | is_unspecified () const |
| Whether this type is a DW_TAG_unspecified_type. | |
| result< std::string_view > | 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. | |
| debug_location_t | location () const |
| Return the debug location where this type is defined. | |
| std::unique_ptr< Scope > | scope () const |
| Return the scope in which this type is defined. | |
| std::string | to_decl (const DeclOpt &opt=DeclOpt()) const |
| Generates a C/C++ definition for this type. | |
| template<class T> | |
| const T * | as () const |
Static Public Member Functions | |
| static std::unique_ptr< Type > | create (std::unique_ptr< details::Type > impl) |
This class represents a DWARF Type which includes:
|
strong |
| LIEF::dwarf::Type::Type | ( | std::unique_ptr< details::Type > | impl | ) |
References LIEF_LOCAL, and Type().
Referenced by LIEF::dwarf::Type::Iterator::operator*(), LIEF::dwarf::Type::Iterator::operator->(), operator=(), operator=(), Type(), Type(), Type(), Type(), LIEF::dwarf::Type::Iterator::yield(), and ~Type().
| LIEF::dwarf::Type::Type | ( | details::Type & | impl | ) |
References LIEF_LOCAL, and Type().
|
delete |
References Type().
|
noexcept |
References Type().
|
virtual |
References Type().
|
inline |
References as(), and LIEF_LIFETIMEBOUND.
Referenced by as().
|
static |
References LIEF_LIFETIMEBOUND.
|
inline |
Whether this type is a DW_TAG_unspecified_type.
References kind(), and UNSPECIFIED.
| KIND LIEF::dwarf::Type::kind | ( | ) | const |
| debug_location_t LIEF::dwarf::Type::location | ( | ) | const |
Return the debug location where this type is defined.
References location().
Referenced by location().
| result< std::string_view > LIEF::dwarf::Type::name | ( | ) | const |
Return the type's name using either DW_AT_name or DW_AT_picture_string (if any).
References LIEF_LIFETIMEBOUND.
| std::unique_ptr< Scope > LIEF::dwarf::Type::scope | ( | ) | const |
Return the scope in which this type is defined.
References LIEF_LIFETIMEBOUND, and scope().
Referenced by scope().
| result< uint64_t > LIEF::dwarf::Type::size | ( | ) | const |