LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
15#ifndef LIEF_PDB_TYPE_CLASS_H
16#define LIEF_PDB_TYPE_CLASS_H
35 using attributes_iterator = iterator_range<Attribute::Iterator>;
38 using methods_iterator = iterator_range<Method::Iterator>;
44 std::string
name()
const;
50 methods_iterator
methods()
const;
53 uint64_t
size()
const;
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;
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 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
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