15#ifndef LIEF_DWARF_LEXICAL_BLOCK_H
16#define LIEF_DWARF_LEXICAL_BLOCK_H
41 LexicalBlock, std::ptrdiff_t,
42 const LexicalBlock*, const LexicalBlock&> {
45 using iterator_facade_base::operator++;
46 using iterator_facade_base::operator--;
83 std::unique_ptr<
details::LexicalBlockIt> impl_;
Definition LexicalBlock.hpp:42
details::LexicalBlockIt implementation
Definition LexicalBlock.hpp:44
Iterator(const Iterator &)
const LexicalBlock & operator*() const
std::unique_ptr< LexicalBlock > yield()
Transfer ownership of the lexical block at the current position to the caller. Returns nullptr if the...
Iterator & operator=(const Iterator &)
Iterator(Iterator &&) noexcept
Iterator(std::unique_ptr< details::LexicalBlockIt > impl)
LexicalBlock(std::unique_ptr< details::LexicalBlock > impl)
optional< uint64_t > addr() const
Return the start address of this block.
std::vector< range_t > ranges() const
Return a list of address ranges owned by this block.
optional< uint64_t > high_pc() const
Return the highest virtual address owned by this block.
sub_blocks_it sub_blocks() const
Return an iterator over the sub-LexicalBlock owned by this block.
uint64_t size() const
Return the size of this block as the difference of the highest address and the lowest address.
iterator_range< Iterator > sub_blocks_it
Definition LexicalBlock.hpp:87
optional< uint64_t > low_pc() const
Return the lowest virtual address owned by this block.
static std::unique_ptr< LexicalBlock > create(std::unique_ptr< details::LexicalBlock > impl)
std::string description() const
Return the description associated with this lexical block or an empty string.
std::string name() const
Return the name associated with this lexical block or an empty string.
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of ...
Definition iterators.hpp:729
Definition iterators.hpp:601
Definition optional.hpp:23
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Definition DWARF/CompilationUnit.hpp:32
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:30
LIEF namespace.
Definition Abstract/Binary.hpp:41
#define LIEF_API
Definition visibility.h:45
#define LIEF_LOCAL
Definition visibility.h:46