15#ifndef LIEF_PDB_COMPILATION_UNIT_H
16#define LIEF_PDB_COMPILATION_UNIT_H
33class CompilationUnitIt;
41 CompilationUnit, std::ptrdiff_t,
42 const CompilationUnit*, const CompilationUnit&> {
45 using iterator_facade_base::operator++;
46 using iterator_facade_base::operator--;
83 std::unique_ptr<details::CompilationUnitIt> impl_;
84 mutable std::unique_ptr<CompilationUnit> cached_;
128 std::unique_ptr<details::CompilationUnit> impl_;
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of ...
Definition iterators.hpp:729
Definition iterators.hpp:601
std::unique_ptr< CompilationUnit > yield()
Transfer ownership of the compilation unit at the current position to the caller. Returns nullptr if ...
details::CompilationUnitIt implementation
Definition PDB/CompilationUnit.hpp:44
Iterator(Iterator &&) noexcept
const CompilationUnit * operator->() const
Iterator(std::unique_ptr< details::CompilationUnitIt > impl)
Iterator(const Iterator &)
Iterator & operator=(const Iterator &)
const CompilationUnit & operator*() const
std::string to_string() const
iterator_range< std::vector< std::string >::const_iterator > sources_iterator
Iterator over the source files (std::string).
Definition PDB/CompilationUnit.hpp:88
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)
iterator_range< Function::Iterator > function_iterator
Definition PDB/CompilationUnit.hpp:91
friend std::ostream & operator<<(std::ostream &os, const CompilationUnit &CU)
Definition PDB/CompilationUnit.hpp:121
std::string object_filename() const
Name or path to the original binary object (COFF, Archive) in which the compilation unit was located ...
std::unique_ptr< BuildMetadata > build_metadata() const
Return build metadata such as the version of the compiler or the original source language of this com...
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 BuildMetadata.hpp:26
Definition BuildMetadata.hpp:24
LIEF namespace.
Definition Abstract/Binary.hpp:40
#define LIEF_API
Definition visibility.h:45