Go to the documentation of this file.
15#ifndef LIEF_PDB_COMPILATION_UNIT_H
16#define LIEF_PDB_COMPILATION_UNIT_H
31class CompilationUnitIt;
39 using iterator_category = std::bidirectional_iterator_tag;
40 using value_type = std::unique_ptr<CompilationUnit>;
41 using difference_type = std::ptrdiff_t;
42 using pointer = CompilationUnit*;
43 using reference = CompilationUnit&;
44 using implementation = details::CompilationUnitIt;
48 friend class Iterator;
55 template <
typename RefT>
56 PointerProxy(RefT &&R) : R(std::forward<RefT>(R)) {}
61 Iterator(std::unique_ptr<details::CompilationUnitIt> impl);
73 Iterator tmp = *
static_cast<Iterator*
>(
this);
74 --*
static_cast<Iterator *
>(
this);
79 Iterator tmp = *
static_cast<Iterator*
>(
this);
80 ++*
static_cast<Iterator *
>(
this);
87 return static_cast<const Iterator*
>(
this)->
operator*();
91 std::unique_ptr<details::CompilationUnitIt> impl_;
93 using sources_iterator = iterator_range<std::vector<std::string>::const_iterator>;
97 using function_iterator = iterator_range<Function::Iterator>;
110 sources_iterator
sources()
const;
121 std::unique_ptr<details::CompilationUnit> impl_;
pointer operator->() const
Definition PDB/CompilationUnit.hpp:50
Iterator operator--(int)
Definition PDB/CompilationUnit.hpp:72
Iterator operator++(int)
Definition PDB/CompilationUnit.hpp:78
PointerProxy operator->() const
Definition PDB/CompilationUnit.hpp:86
friend bool operator==(const Iterator &LHS, const Iterator &RHS)
Iterator(std::unique_ptr< details::CompilationUnitIt > impl)
std::unique_ptr< CompilationUnit > operator*() const
Iterator(const Iterator &)
friend bool operator!=(const Iterator &LHS, const Iterator &RHS)
Definition PDB/CompilationUnit.hpp:65
This class represents a CompilationUnit (or Module) in a PDB file.
Definition PDB/CompilationUnit.hpp:35
sources_iterator sources() const
Iterator over the sources files that compose this compilation unit. These files also include headers ...
CompilationUnit(std::unique_ptr< details::CompilationUnit > impl)
std::string object_filename() const
Name of path to the original binary object (COFF, Archive) in which the compilation unit was located ...
std::string module_name() const
Name (or path) to the COFF object (.obj) associated with this compilation unit (e....
function_iterator functions() const
Return an iterator over the function defined in this compilation unit. If the PDB does not contain or...
Definition PDB/CompilationUnit.hpp:29
Definition PDB/CompilationUnit.hpp:27
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41