|
LIEF: Library to Instrument Executable Formats Version 2.0.0
|
This class materializes a scope in which Function, Variable, Type, ... can be defined. More...
#include <Scope.hpp>
Public Types | |
| enum class | TYPE : uint32_t { UNKNOWN = 0 , UNION , CLASS , STRUCT , NAMESPACE , FUNCTION , COMPILATION_UNIT } |
Public Member Functions | |
| Scope (std::unique_ptr< details::Scope > impl) | |
| std::string_view | name () const |
| Name of the scope. For instance namespace's name or function's name. | |
| std::unique_ptr< Scope > | parent () const |
| Parent scope (if any). | |
| TYPE | type () const |
| The current scope type. | |
| std::string | chained (std::string_view sep="::") const |
| Represent the whole chain of all (parent) scopes using the provided separator. E.g. ns1::ns2::Class1::Struct2::Type. | |
| ~Scope () | |
|
strong |
| LIEF::dwarf::Scope::Scope | ( | std::unique_ptr< details::Scope > | impl | ) |
| LIEF::dwarf::Scope::~Scope | ( | ) |
References Scope().
| std::string LIEF::dwarf::Scope::chained | ( | std::string_view | sep = "::" | ) | const |
| std::string_view LIEF::dwarf::Scope::name | ( | ) | const |
Name of the scope. For instance namespace's name or function's name.
References LIEF_LIFETIMEBOUND.
| std::unique_ptr< Scope > LIEF::dwarf::Scope::parent | ( | ) | const |
Parent scope (if any).
References LIEF_LIFETIMEBOUND, parent(), and Scope().
Referenced by parent().
| TYPE LIEF::dwarf::Scope::type | ( | ) | const |