15#ifndef LIEF_DWARF_LEXICAL_BLOCK_H
16#define LIEF_DWARF_LEXICAL_BLOCK_H
40 LexicalBlock, std::ptrdiff_t,
41 const LexicalBlock*, const LexicalBlock&> {
44 using iterator_facade_base::operator++;
45 using iterator_facade_base::operator--;
82 std::unique_ptr<details::LexicalBlockIt> impl_;
83 mutable std::unique_ptr<LexicalBlock> cached_;
125 LIEF_LOCAL static std::unique_ptr<LexicalBlock>
126 create(std::unique_ptr<details::LexicalBlock> impl);
129 std::unique_ptr<details::LexicalBlock> impl_;
details::LexicalBlockIt implementation
Definition LexicalBlock.hpp:43
const LexicalBlock * operator->() const
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:86
LexicalBlock & operator=(const LexicalBlock &)=delete
LexicalBlock(const LexicalBlock &)=delete
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
Definition DWARF/CompilationUnit.hpp:30
Namespace for the DWARF debug format.
Definition DWARF/CompilationUnit.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:40
#define LIEF_API
Definition visibility.h:45
#define LIEF_LOCAL
Definition visibility.h:46