19 CComPtr<IDiaEnumSymbols> DiaEnumerator)
20 : Session(PDBSession),
Enumerator(DiaEnumerator) {}
24 return (S_OK == Enumerator->get_Count(&Count)) ? Count : 0;
27 std::unique_ptr<PDBSymbol>
29 CComPtr<IDiaSymbol> Item;
30 if (S_OK != Enumerator->Item(Index, &Item))
33 std::unique_ptr<DIARawSymbol> RawSymbol(
new DIARawSymbol(Session, Item));
34 return std::unique_ptr<PDBSymbol>(
PDBSymbol::create(Session, std::move(RawSymbol)));
38 CComPtr<IDiaSymbol> Item;
40 if (S_OK != Enumerator->Next(1, &Item, &NumFetched))
43 std::unique_ptr<DIARawSymbol> RawSymbol(
new DIARawSymbol(Session, Item));
44 return std::unique_ptr<PDBSymbol>(
This class represents lattice values for constants.
DIAEnumSymbols(const DIASession &Session, CComPtr< IDiaEnumSymbols > DiaEnumerator)
uint32_t getChildCount() const override
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
static std::unique_ptr< PDBSymbol > create(const IPDBSession &PDBSession, std::unique_ptr< IPDBRawSymbol > RawSymbol)
std::unique_ptr< PDBSymbol > getNext() override