15#ifndef LIEF_PDB_TYPE_H
16#define LIEF_PDB_TYPE_H
54 template <
typename RefT>
80 return static_cast<const Iterator*
>(
this)->
operator*();
84 std::unique_ptr<details::TypeIt> impl_;
115 const T*
as()
const {
116 if (T::classof(
this)) {
117 return static_cast<const T*
>(
this);
122 static std::unique_ptr<Type>
create(std::unique_ptr<details::Type> impl);
127 Type(std::unique_ptr<details::Type> impl);
128 std::unique_ptr<details::Type> impl_;
Definition optional.hpp:23
Definition PDB/Type.hpp:45
pointer operator->() const
Definition PDB/Type.hpp:49
friend class Iterator
Definition PDB/Type.hpp:47
Iterator(const Iterator &)
Iterator(Iterator &&) noexcept
PointerProxy operator->() const
Definition PDB/Type.hpp:79
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:71
const T * as() const
Definition PDB/Type.hpp:115
std::string to_decl(const DeclOpt &opt=DeclOpt()) const
Generates a C/C++ definition for this type.
KIND
Definition PDB/Type.hpp:87
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:41