1 //===- IPDBEnumChildren.h - base interface for child enumerator -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_IPDBENUMCHILDREN_H
11 #define LLVM_DEBUGINFO_PDB_IPDBENUMCHILDREN_H
18 template <typename ChildType> class IPDBEnumChildren {
20 typedef std::unique_ptr<ChildType> ChildTypePtr;
21 typedef IPDBEnumChildren<ChildType> MyType;
23 virtual ~IPDBEnumChildren() {}
25 virtual uint32_t getChildCount() const = 0;
26 virtual ChildTypePtr getChildAtIndex(uint32_t Index) const = 0;
27 virtual ChildTypePtr getNext() = 0;
28 virtual void reset() = 0;
29 virtual MyType *clone() const = 0;