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#include "llvm/DebugInfo/PDB/IPDBLineNumber.h"
16
17namespace llvm {
18namespace pdb {
19class IPDBLineNumber;
20
21class DIAEnumLineNumbers : public IPDBEnumChildren<IPDBLineNumber> {
22public:
23  explicit DIAEnumLineNumbers(CComPtr<IDiaEnumLineNumbers> DiaEnumerator);
24
25  uint32_t getChildCount() const override;
26  ChildTypePtr getChildAtIndex(uint32_t Index) const override;
27  ChildTypePtr getNext() override;
28  void reset() override;
29  DIAEnumLineNumbers *clone() const override;
30
31private:
32  CComPtr<IDiaEnumLineNumbers> Enumerator;
33};
34}
35}
36
37#endif
38