15#ifndef LIEF_PDB_TYPE_CLASS_H
16#define LIEF_PDB_TYPE_CLASS_H
59 static bool classof(
const T*,
typename std::enable_if<std::is_base_of<ClassLike, T>::value>::type* = 0)
71 using ClassLike::ClassLike;
74 return type->
kind() == Type::KIND::STRUCTURE;
83 using ClassLike::ClassLike;
86 return type->
kind() == Type::KIND::CLASS;
95 using ClassLike::ClassLike;
98 return type->
kind() == Type::KIND::INTERFACE;
Definition iterators.hpp:485
This is the base class for any PDB type.
Definition PDB/Type.hpp:30
This class abstracts the following PDB types: LF_STRUCTURE, LF_INTERFACE, LF_CLASS or LF_UNION.
Definition PDB/types/ClassLike.hpp:32
uint64_t size() const
Size of the the type including all its attributes. This size should match the sizeof(....
methods_iterator methods() const
Iterator over the different methods implemented in this class-type type.
static bool classof(const T *, typename std::enable_if< std::is_base_of< ClassLike, T >::value >::type *=0)
Definition PDB/types/ClassLike.hpp:59
std::string unique_name() const
Mangled type name.
attributes_iterator attributes() const
Iterator over the different attributes defined in this class-like type.
std::string name() const
Demangled type name.
Interface for the LF_CLASS PDB type.
Definition PDB/types/ClassLike.hpp:81
static bool classof(const Type *type)
Definition PDB/types/ClassLike.hpp:85
Interface for the LF_INTERFACE PDB type.
Definition PDB/types/ClassLike.hpp:93
static bool classof(const Type *type)
Definition PDB/types/ClassLike.hpp:97
Interface for the LF_STRUCTURE PDB type.
Definition PDB/types/ClassLike.hpp:69
static bool classof(const Type *type)
Definition PDB/types/ClassLike.hpp:73
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41