• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //==- DIAEnumLineNumbers.h - DIA Line Number 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_DIAENUMLINENUMBERS_H
11 #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMLINENUMBERS_H
12 
13 #include "DIASupport.h"
14 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
15 
16 namespace llvm {
17 namespace pdb {
18 class IPDBLineNumber;
19 
20 class DIAEnumLineNumbers : public IPDBEnumChildren<IPDBLineNumber> {
21 public:
22   explicit DIAEnumLineNumbers(CComPtr<IDiaEnumLineNumbers> DiaEnumerator);
23 
24   uint32_t getChildCount() const override;
25   ChildTypePtr getChildAtIndex(uint32_t Index) const override;
26   ChildTypePtr getNext() override;
27   void reset() override;
28   DIAEnumLineNumbers *clone() const override;
29 
30 private:
31   CComPtr<IDiaEnumLineNumbers> Enumerator;
32 };
33 }
34 }
35 
36 #endif
37