15#ifndef LIEF_PDB_TYPE_H
16#define LIEF_PDB_TYPE_H
57 template<
typename RefT>
59 R(
std::forward<RefT>(R)) {
85 return static_cast<const Iterator*
>(
this)->
operator*();
89 std::unique_ptr<details::TypeIt> impl_;
120 const T*
as()
const {
121 if (T::classof(
this)) {
122 return static_cast<const T*
>(
this);
127 static std::unique_ptr<Type>
create(std::unique_ptr<details::Type> impl);
132 Type(std::unique_ptr<details::Type> impl);
133 std::unique_ptr<details::Type> impl_;
Definition optional.hpp:23
Definition PDB/Type.hpp:45
pointer operator->() const
Definition PDB/Type.hpp:50
friend class Iterator
Definition PDB/Type.hpp:47
Iterator(const Iterator &)
Iterator(Iterator &&) noexcept
PointerProxy operator->() const
Definition PDB/Type.hpp:84
Type * pointer
Definition PDB/Type.hpp:41
std::unique_ptr< Type > value_type
Definition PDB/Type.hpp:39
Type & reference
Definition PDB/Type.hpp:42
std::forward_iterator_tag iterator_category
Definition PDB/Type.hpp:38
std::unique_ptr< Type > operator*() const
details::TypeIt implementation
Definition PDB/Type.hpp:43
std::ptrdiff_t difference_type
Definition PDB/Type.hpp:40
Iterator operator++(int)
Definition PDB/Type.hpp:76
const T * as() const
Definition PDB/Type.hpp:120
std::string to_decl(const DeclOpt &opt=DeclOpt()) const
Generates a C/C++ definition for this type.
KIND
Definition PDB/Type.hpp:92
static std::unique_ptr< Type > create(std::unique_ptr< details::Type > impl)
optional< uint64_t > size() const
Size of the type. This size should match the value of sizeof(...) applied to this type.
optional< std::string > name() const
Type's name (if present).
Definition BuildMetadata.hpp:26
Definition BuildMetadata.hpp:24
LIEF namespace.
Definition Abstract/Binary.hpp:40
Configuration options for generated code from debug info.
Definition DebugDeclOpt.hpp:25
#define LIEF_API
Definition visibility.h:43