15#ifndef LIEF_DWARF_LEXICAL_BLOCK_H
16#define LIEF_DWARF_LEXICAL_BLOCK_H
56 template <
typename RefT>
88 return static_cast<const Iterator*
>(
this)->
operator*();
92 std::unique_ptr<details::LexicalBlockIt> impl_;
135 std::unique_ptr<LexicalBlock>
create(std::unique_ptr<details::LexicalBlock> impl);
138 std::unique_ptr<details::LexicalBlock> impl_;
Definition LexicalBlock.hpp:47
friend class Iterator
Definition LexicalBlock.hpp:49
pointer operator->() const
Definition LexicalBlock.hpp:51
details::LexicalBlockIt implementation
Definition LexicalBlock.hpp:45
std::unique_ptr< LexicalBlock > value_type
Definition LexicalBlock.hpp:41
std::unique_ptr< LexicalBlock > operator*() const
PointerProxy operator->() const
Definition LexicalBlock.hpp:87
LexicalBlock * pointer
Definition LexicalBlock.hpp:43
Iterator(const Iterator &)
Iterator operator++(int)
Definition LexicalBlock.hpp:79
std::unique_ptr< LexicalBlock > & reference
Definition LexicalBlock.hpp:44
std::ptrdiff_t difference_type
Definition LexicalBlock.hpp:42
Iterator(Iterator &&) noexcept
Iterator operator--(int)
Definition LexicalBlock.hpp:73
std::bidirectional_iterator_tag iterator_category
Definition LexicalBlock.hpp:40
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:95
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.
Definition iterators.hpp:486
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:41
#define LIEF_LOCAL
Definition visibility.h:42