16#ifndef LIEF_MACHO_BINDING_INFO_IT_H
17#define LIEF_MACHO_BINDING_INFO_IT_H
29 public iterator_facade_base<BindingInfoIterator,
30 std::random_access_iterator_tag,
38 enum class ORIGIN : uint8_t {
45 BindingInfoIterator&
operator=(
const BindingInfoIterator&) =
default;
49 BindingInfoIterator&
operator=(BindingInfoIterator&&) =
default;
54 origin_(ORIGIN::DYLD),
55 dyld_info_(&dyld_info)
60 origin_(ORIGIN::CHAINED_FIXUPS),
61 chained_fixups_(&fixups)
66 origin_(ORIGIN::INDIRECT),
70 bool operator<(
const BindingInfoIterator& rhs)
const {
71 return pos_ < rhs.pos_;
74 std::ptrdiff_t
operator-(
const BindingInfoIterator& R)
const {
88 friend bool operator==(
const BindingInfoIterator& LHS,
const BindingInfoIterator& RHS) {
89 return LHS.pos_ == RHS.pos_;
97 ORIGIN origin_ = ORIGIN::NONE;
99 const DyldInfo* dyld_info_ =
nullptr;
100 const DyldChainedFixups* chained_fixups_;
101 const Binary* binary_;
Class which represents a MachO binary.
Definition MachO/Binary.hpp:86
Definition BindingInfoIterator.hpp:36
BindingInfoIterator(BindingInfoIterator &&)=default
BindingInfoIterator(const DyldChainedFixups &fixups, size_t pos)
Definition BindingInfoIterator.hpp:58
BindingInfoIterator & operator=(BindingInfoIterator &&)=default
BindingInfoIterator(const DyldInfo &dyld_info, size_t pos)
Definition BindingInfoIterator.hpp:52
BindingInfoIterator(const Binary &binary, size_t pos)
Definition BindingInfoIterator.hpp:64
bool operator<(const BindingInfoIterator &rhs) const
Definition BindingInfoIterator.hpp:70
friend bool operator==(const BindingInfoIterator &LHS, const BindingInfoIterator &RHS)
Definition BindingInfoIterator.hpp:88
BindingInfoIterator & operator+=(std::ptrdiff_t n)
Definition BindingInfoIterator.hpp:78
BindingInfoIterator & operator-=(std::ptrdiff_t n)
Definition BindingInfoIterator.hpp:83
BindingInfoIterator(const BindingInfoIterator &)=default
~BindingInfoIterator()=default
const BindingInfo & operator*() const
BindingInfoIterator & operator=(const BindingInfoIterator &)=default
std::ptrdiff_t operator-(const BindingInfoIterator &R) const
Definition BindingInfoIterator.hpp:74
Class that represents the LC_DYLD_CHAINED_FIXUPS command.
Definition DyldChainedFixups.hpp:49
Class that represents the LC_DYLD_INFO and LC_DYLD_INFO_ONLY commands.
Definition DyldInfo.hpp:50
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41
#define LIEF_LOCAL
Definition visibility.h:42