15#ifndef LIEF_OBJC_CLASS_H
16#define LIEF_OBJC_CLASS_H
42 std::ptrdiff_t, const Class*, const Class&> {
45 using iterator_facade_base::operator++;
46 using iterator_facade_base::operator--;
84 std::unique_ptr<details::ClassIt> impl_;
85 mutable std::unique_ptr<Class> cached_;
101 Class(std::unique_ptr<details::Class> impl);
134 std::unique_ptr<details::Class> impl_;
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
std::unique_ptr< Class > yield()
Transfer ownership of the class at the current position to the caller. Returns nullptr if the iterato...
const Class * operator->() const
details::ClassIt implementation
Definition ObjC/Class.hpp:44
const Class & operator*() const
Iterator(std::unique_ptr< details::ClassIt > impl)
Iterator(const Iterator &)
Iterator(Iterator &&) noexcept
Iterator & operator=(const Iterator &)
This class represents an Objective-C class (@interface).
Definition ObjC/Class.hpp:38
iterator_range< Method::Iterator > methods_t
Iterator for the class's methods.
Definition ObjC/Class.hpp:90
std::string name() const
Name of the class.
properties_t properties() const
Iterator over the properties of this class.
Class(std::unique_ptr< details::Class > impl)
std::string to_decl(const DeclOpt &opt=DeclOpt()) const
Generate a header-like string for this specific class.
std::unique_ptr< Class > super_class() const
Parent class in case of inheritance.
iterator_range< Property::Iterator > properties_t
Iterator for the properties declared by this class.
Definition ObjC/Class.hpp:96
ivars_t ivars() const
Iterator over the different instance variables defined in this class.
iterator_range< Protocol::Iterator > protocols_t
Iterator for the protocols implemented by this class.
Definition ObjC/Class.hpp:93
iterator_range< IVar::Iterator > ivars_t
Iterator for the instance variables defined by this class.
Definition ObjC/Class.hpp:99
methods_t methods() const
Iterator over the different methods defined by this class.
std::string demangled_name() const
Demangled name of the class.
protocols_t protocols() const
Iterator over the different protocols implemented by this class.
Definition ObjC/Class.hpp:32
Namespace related to ObjC metadata.
Definition MachO/Binary.hpp:42
LIEF namespace.
Definition Abstract/Binary.hpp:40
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