1 //===-- TypeList.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 liblldb_TypeList_h_
11 #define liblldb_TypeList_h_
13 #include "lldb/lldb-private.h"
14 #include "lldb/Symbol/Type.h"
17 namespace lldb_private {
22 //------------------------------------------------------------------
23 // Constructors and Destructors
24 //------------------------------------------------------------------
34 Dump(Stream *s, bool show_context);
37 // FindType(lldb::user_id_t uid);
40 FindTypes(const ConstString &name);
43 Insert (const lldb::TypeSP& type);
46 InsertUnique (const lldb::TypeSP& type);
52 GetTypeAtIndex(uint32_t idx);
55 ForEach (std::function <bool(const lldb::TypeSP &type_sp)> const &callback) const;
58 ForEach (std::function <bool(lldb::TypeSP &type_sp)> const &callback);
61 RemoveTypeWithUID (lldb::user_id_t uid);
64 RemoveMismatchedTypes (const char *qualified_typename,
68 RemoveMismatchedTypes (const std::string &type_scope,
69 const std::string &type_basename,
70 lldb::TypeClass type_class,
74 RemoveMismatchedTypes (lldb::TypeClass type_class);
77 typedef std::multimap<lldb::user_id_t, lldb::TypeSP> collection;
78 typedef collection::iterator iterator;
79 typedef collection::const_iterator const_iterator;
83 DISALLOW_COPY_AND_ASSIGN (TypeList);
86 } // namespace lldb_private
88 #endif // liblldb_TypeList_h_