1 //==- NativeEnumModules.h - Native Module Enumerator impl --------*- C++ -*-==// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMMODULES_H 11 #define LLVM_DEBUGINFO_PDB_NATIVE_NATIVEENUMMODULES_H 12 13 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h" 14 #include "llvm/DebugInfo/PDB/Native/DbiModuleDescriptor.h" 15 #include "llvm/DebugInfo/PDB/PDBSymbol.h" 16 namespace llvm { 17 namespace pdb { 18 19 class DbiModuleList; 20 class NativeSession; 21 22 class NativeEnumModules : public IPDBEnumChildren<PDBSymbol> { 23 public: 24 NativeEnumModules(NativeSession &Session, const DbiModuleList &Modules, 25 uint32_t Index = 0); 26 27 uint32_t getChildCount() const override; 28 std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override; 29 std::unique_ptr<PDBSymbol> getNext() override; 30 void reset() override; 31 NativeEnumModules *clone() const override; 32 33 private: 34 NativeSession &Session; 35 const DbiModuleList &Modules; 36 uint32_t Index; 37 }; 38 } 39 } 40 41 #endif 42