LIEF: Library to Instrument Executable Formats Version 0.16.0
Loading...
Searching...
No Matches
LIEF::dwarf::types::Base Class Reference

This class wraps the DW_TAG_base_type type which can be used – for instance – to represent integers or primitive types. More...

#include <Base.hpp>

Inheritance diagram for LIEF::dwarf::types::Base:
Collaboration diagram for LIEF::dwarf::types::Base:

Public Types

enum class  ENCODING {
  NONE = 0 , SIGNED , SIGNED_CHAR , UNSIGNED ,
  UNSIGNED_CHAR , FLOAT , BOOLEAN , ADDRESS
}
 
- Public Types inherited from LIEF::dwarf::Type
enum class  KIND {
  UNKNOWN = 0 , UNSPECIFIED , BASE , CONST_KIND ,
  CLASS , ARRAY , POINTER , STRUCT ,
  UNION
}
 

Public Member Functions

ENCODING encoding () const
 Describe how the base type is encoded and should be interpreted.
 
 ~Base () override
 
- Public Member Functions inherited from LIEF::dwarf::Type
virtual ~Type ()
 
KIND kind () const
 
bool is_unspecified () const
 Whether this type is a DW_TAG_unspecified_type
 
result< std::string > name () const
 Return the type's name (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< Scopescope () const
 Return the scope in which this type is defined.
 
template<class T >
const T * as () const
 

Static Public Member Functions

static bool classof (const Type *type)
 
- Static Public Member Functions inherited from LIEF::dwarf::Type
static std::unique_ptr< Typecreate (std::unique_ptr< details::Type > impl)
 

Detailed Description

This class wraps the DW_TAG_base_type type which can be used – for instance – to represent integers or primitive types.

Member Enumeration Documentation

◆ ENCODING

Enumerator
NONE 
SIGNED 

Mirror DW_ATE_signed

SIGNED_CHAR 

Mirror DW_ATE_signed_char

UNSIGNED 

Mirror DW_ATE_unsigned

UNSIGNED_CHAR 

Mirror DW_ATE_unsigned_char

FLOAT 

Mirror DW_ATE_float

BOOLEAN 

Mirror DW_ATE_boolean

ADDRESS 

Mirror DW_ATE_address

Constructor & Destructor Documentation

◆ ~Base()

LIEF::dwarf::types::Base::~Base ( )
override

Member Function Documentation

◆ classof()

static bool LIEF::dwarf::types::Base::classof ( const Type * type)
inlinestatic

◆ encoding()

ENCODING LIEF::dwarf::types::Base::encoding ( ) const

Describe how the base type is encoded and should be interpreted.


The documentation for this class was generated from the following file: