18 const DIASession &PDBSession, CComPtr<IDiaEnumSourceFiles> DiaEnumerator)
19 : Session(PDBSession),
Enumerator(DiaEnumerator) {}
23 return (S_OK == Enumerator->get_Count(&Count)) ? Count : 0;
26 std::unique_ptr<IPDBSourceFile>
28 CComPtr<IDiaSourceFile> Item;
29 if (S_OK != Enumerator->Item(Index, &Item))
32 return std::unique_ptr<IPDBSourceFile>(
new DIASourceFile(Session, Item));
36 CComPtr<IDiaSourceFile> Item;
38 if (S_OK != Enumerator->Next(1, &Item, &NumFetched))
41 return std::unique_ptr<IPDBSourceFile>(
new DIASourceFile(Session, Item));
This class represents lattice values for constants.
DIAEnumSourceFiles(const DIASession &PDBSession, CComPtr< IDiaEnumSourceFiles > DiaEnumerator)
ChildTypePtr getNext() override
uint32_t getChildCount() const override
ChildTypePtr getChildAtIndex(uint32_t Index) const override