LLVM  5.0.0
DIAEnumSymbols.h
Go to the documentation of this file.
1 //==- DIAEnumSymbols.h - DIA Symbol 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_DIA_DIAENUMSYMBOLS_H
11 #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMSYMBOLS_H
12 
13 #include "DIASupport.h"
16 
17 namespace llvm {
18 namespace pdb {
19 class DIASession;
20 
21 class DIAEnumSymbols : public IPDBEnumChildren<PDBSymbol> {
22 public:
23  explicit DIAEnumSymbols(const DIASession &Session,
24  CComPtr<IDiaEnumSymbols> DiaEnumerator);
25 
26  uint32_t getChildCount() const override;
27  std::unique_ptr<PDBSymbol> getChildAtIndex(uint32_t Index) const override;
28  std::unique_ptr<PDBSymbol> getNext() override;
29  void reset() override;
30  DIAEnumSymbols *clone() const override;
31 
32 private:
33  const DIASession &Session;
34  CComPtr<IDiaEnumSymbols> Enumerator;
35 };
36 }
37 }
38 
39 #endif
DIAEnumSymbols * clone() const override
DIAEnumSymbols(const DIASession &Session, CComPtr< IDiaEnumSymbols > DiaEnumerator)
uint32_t getChildCount() const override
std::unique_ptr< PDBSymbol > getChildAtIndex(uint32_t Index) const override
std::unique_ptr< PDBSymbol > getNext() override