1 //===-- DWARFDIECollection.h ------------------------------------*- 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 SymbolFileDWARF_DWARFDIECollection_h_
11 #define SymbolFileDWARF_DWARFDIECollection_h_
16 class DWARFDIECollection {
18 DWARFDIECollection() : m_dies() {}
19 ~DWARFDIECollection() {}
21 void Append(const DWARFDIE &die);
23 void Dump(lldb_private::Stream *s, const char *title) const;
26 GetDIEAtIndex(uint32_t idx) const;
31 typedef std::vector<DWARFDIE> collection;
32 typedef collection::iterator iterator;
33 typedef collection::const_iterator const_iterator;
35 collection m_dies; // Ordered list of die offsets
38 #endif // SymbolFileDWARF_DWARFDIECollection_h_