Go to the documentation of this file.
15#ifndef LIEF_OBJC_PROPERTY_H
16#define LIEF_OBJC_PROPERTY_H
35 using iterator_category = std::bidirectional_iterator_tag;
36 using value_type = std::unique_ptr<Property>;
37 using difference_type = std::ptrdiff_t;
38 using pointer = Property*;
39 using reference = std::unique_ptr<Property>&;
40 using implementation = details::PropertyIt;
44 friend class Iterator;
51 template <
typename RefT>
52 PointerProxy(RefT &&R) : R(std::forward<RefT>(R)) {}
57 Iterator(std::unique_ptr<details::PropertyIt> impl);
60 friend
LIEF_API bool operator==(const Iterator& LHS, const Iterator& RHS);
62 friend
LIEF_API bool operator!=(const Iterator& LHS, const Iterator& RHS) {
70 Iterator tmp = *
static_cast<Iterator*
>(
this);
71 --*
static_cast<Iterator *
>(
this);
76 Iterator tmp = *
static_cast<Iterator*
>(
this);
77 ++*
static_cast<Iterator *
>(
this);
84 return static_cast<const Iterator*
>(
this)->
operator*();
88 std::unique_ptr<details::PropertyIt> impl_;
92 Property(std::unique_ptr<details::Property> impl);
93 std::string
name()
const;
102 std::unique_ptr<details::Property> impl_;
pointer operator->() const
Definition Property.hpp:46
Iterator(const Iterator &)
PointerProxy operator->() const
Definition Property.hpp:83
Iterator operator++(int)
Definition Property.hpp:75
std::unique_ptr< Property > operator*() const
Iterator operator--(int)
Definition Property.hpp:69
Iterator(Iterator &&) noexcept
This class represents a @property in Objective-C.
Definition Property.hpp:31
std::string attribute() const
(raw) property's attributes (e.g. T@"NSString",C,D,N)
std::string name() const
Name of the property.
Property(std::unique_ptr< details::Property > impl)
Definition ObjC/Class.hpp:32
Namespace related to ObjC metadata.
Definition MachO/Binary.hpp:41
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41