15#ifndef LIEF_OBJC_PROTOCOL_H
16#define LIEF_OBJC_PROTOCOL_H
41 Protocol, std::ptrdiff_t, const Protocol*,
45 using iterator_facade_base::operator++;
46 using iterator_facade_base::operator--;
84 std::unique_ptr<details::ProtocolIt> impl_;
85 mutable std::unique_ptr<Protocol> cached_;
93 Protocol(std::unique_ptr<details::Protocol> impl);
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of ...
Definition iterators.hpp:750
Definition iterators.hpp:603
const Protocol & operator*() const
Iterator(Iterator &&) noexcept
Iterator(std::unique_ptr< details::ProtocolIt > impl)
const Protocol * operator->() const
Iterator(const Iterator &)
Iterator & operator=(const Iterator &)
std::unique_ptr< Protocol > yield()
Transfer ownership of the protocol at the current position to the caller. Returns nullptr if the iter...
details::ProtocolIt implementation
Definition Protocol.hpp:44
std::string to_decl(const DeclOpt &opt=DeclOpt()) const
Generate a header-like string for this specific protocol.
iterator_range< Iterator > protocols_it
Definition Protocol.hpp:91
protocols_it protocols() const
Iterator over the protocols adopted by this protocol (e.g. the <Bar, Baz> in @protocol Foo <Bar,...
methods_it optional_methods() const
Iterator over the methods that could be overridden.
methods_it required_methods() const
Iterator over the methods of this protocol that must be implemented.
properties_it properties() const
Iterator over the properties defined in this protocol.
Protocol(std::unique_ptr< details::Protocol > impl)
iterator_range< Method::Iterator > methods_it
Definition Protocol.hpp:89
std::string mangled_name() const
Mangled name of the protocol.
iterator_range< Property::Iterator > properties_it
Definition Protocol.hpp:90
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Definition Category.hpp:32
Namespace related to ObjC metadata.
Definition MachO/Binary.hpp:43
LIEF namespace.
Definition Abstract/Binary.hpp:41
This structure wraps options to tweak the generated output of functions like LIEF::objc::Metadata::to...
Definition DeclOpt.hpp:22
#define LIEF_API
Definition visibility.h:45