Go to the documentation of this file.
15#ifndef LIEF_PDB_TYPE_METHOD_H
16#define LIEF_PDB_TYPE_METHOD_H
39 using iterator_category = std::forward_iterator_tag;
40 using value_type = std::unique_ptr<Method>;
41 using difference_type = std::ptrdiff_t;
42 using pointer = Method*;
43 using reference = Method&;
44 using implementation = details::MethodIt;
48 friend class Iterator;
55 template <
typename RefT>
56 PointerProxy(RefT &&R) : R(std::forward<RefT>(R)) {}
60 Iterator(std::unique_ptr<details::MethodIt> impl);
63 friend
LIEF_API bool operator==(const Iterator& LHS, const Iterator& RHS);
65 friend
LIEF_API bool operator!=(const Iterator& LHS, const Iterator& RHS) {
72 Iterator tmp = *
static_cast<Iterator*
>(
this);
73 ++*
static_cast<Iterator *
>(
this);
80 return static_cast<const Iterator*
>(
this)->
operator*();
84 std::unique_ptr<details::MethodIt> impl_;
87 Method(std::unique_ptr<details::Method> impl);
88 std::string
name()
const;
95 std::unique_ptr<details::Method> impl_;
This is the base class for any PDB type.
Definition PDB/Type.hpp:30
pointer operator->() const
Definition PDB/types/Method.hpp:50
PointerProxy operator->() const
Definition PDB/types/Method.hpp:79
std::unique_ptr< Method > operator*() const
Iterator(Iterator &&) noexcept
Iterator operator++(int)
Definition PDB/types/Method.hpp:71
Iterator(const Iterator &)
This class represents a Method (LF_ONEMETHOD) that can be defined in ClassLike PDB type.
Definition PDB/types/Method.hpp:35
Method(std::unique_ptr< details::Method > impl)
std::string name() const
Name of the method.
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