Go to the documentation of this file.
15#ifndef LIEF_PDB_TYPE_ATTRIBUTE_H
16#define LIEF_PDB_TYPE_ATTRIBUTE_H
39 using iterator_category = std::forward_iterator_tag;
40 using value_type = std::unique_ptr<Attribute>;
41 using difference_type = std::ptrdiff_t;
42 using pointer = Attribute*;
43 using reference = Attribute&;
44 using implementation = details::AttributeIt;
48 friend class Iterator;
55 template <
typename RefT>
56 PointerProxy(RefT &&R) : R(std::forward<RefT>(R)) {}
60 Iterator(std::unique_ptr<details::AttributeIt> impl);
63 friend
LIEF_API bool operator==(const Iterator& LHS, const Iterator& RHS);
64 friend
LIEF_API bool operator!=(const Iterator& LHS, const Iterator& RHS) {
71 Iterator tmp = *
static_cast<Iterator*
>(
this);
72 ++*
static_cast<Iterator *
>(
this);
79 return static_cast<const Iterator*
>(
this)->
operator*();
83 std::unique_ptr<details::AttributeIt> impl_;
86 Attribute(std::unique_ptr<details::Attribute> impl);
87 std::string
name()
const;
90 std::unique_ptr<Type>
type()
const;
100 std::unique_ptr<details::Attribute> impl_;
This is the base class for any PDB type.
Definition PDB/Type.hpp:30
pointer operator->() const
Definition PDB/types/Attribute.hpp:50
std::unique_ptr< Attribute > operator*() const
Iterator(const Iterator &)
Iterator operator++(int)
Definition PDB/types/Attribute.hpp:70
Iterator(Iterator &&) noexcept
PointerProxy operator->() const
Definition PDB/types/Attribute.hpp:78
This class represents an attribute (LF_MEMBER) in an aggregate (class, struct, union,...
Definition PDB/types/Attribute.hpp:35
std::unique_ptr< Type > type() const
Type of this attribute.
std::string name() const
Name of the attribute.
Attribute(std::unique_ptr< details::Attribute > impl)
uint64_t field_offset() const
Offset of this attribute in the aggregate.
Definition PDB/types/Attribute.hpp:28
Definition PDB/types/Array.hpp:23
Definition PDB/CompilationUnit.hpp:27
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41