24 : Matches(),
Index(0), Session(PDBSession), Kind(Kind) {
25 for (
auto Index = Types.
getFirst(); Index;
26 Index = Types.
getNext(Index.getValue())) {
27 if (Types.
getType(Index.getValue()).kind() == Kind)
28 Matches.push_back(Index.getValue());
33 NativeSession &PDBSession,
const std::vector<codeview::TypeIndex> &Matches,
35 : Matches(Matches), Index(0), Session(PDBSession), Kind(Kind) {}
38 return static_cast<uint32_t>(Matches.size());
41 std::unique_ptr<PDBSymbol>
43 if (Index < Matches.size())
Compute iterated dominance frontiers using a linear time algorithm.
TypeLeafKind
Duplicate copy of the above enum, but using the official CV names.
Optional< TypeIndex > getNext(TypeIndex Prev) override
CVType getType(TypeIndex Index) override
std::unique_ptr< PDBSymbolTypeEnum > createEnumSymbol(codeview::TypeIndex Index)
NativeEnumTypes * clone() const override
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
std::unique_ptr< PDBSymbol > getNext() override
NativeEnumTypes(NativeSession &Session, codeview::LazyRandomTypeCollection &TypeCollection, codeview::TypeLeafKind Kind)
uint32_t getChildCount() const override
Optional< TypeIndex > getFirst() override
Provides amortized O(1) random access to a CodeView type stream.