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"
18 namespace lldb_private {
23 //------------------------------------------------------------------
24 // Constructors and Destructors
25 //------------------------------------------------------------------
35 Dump(Stream *s, bool show_context);
38 // FindType(lldb::user_id_t uid);
41 FindTypes(const ConstString &name);
44 Insert (const lldb::TypeSP& type);
47 InsertUnique (const lldb::TypeSP& type);
53 GetTypeAtIndex(uint32_t idx);
56 ForEach (std::function <bool(const lldb::TypeSP &type_sp)> const &callback) const;
59 ForEach (std::function <bool(lldb::TypeSP &type_sp)> const &callback);
62 RemoveTypeWithUID (lldb::user_id_t uid);
65 RemoveMismatchedTypes (const char *qualified_typename,
69 RemoveMismatchedTypes (const std::string &type_scope,
70 const std::string &type_basename,
71 lldb::TypeClass type_class,
75 RemoveMismatchedTypes (lldb::TypeClass type_class);
78 typedef std::multimap<lldb::user_id_t, lldb::TypeSP> collection;
79 typedef collection::iterator iterator;
80 typedef collection::const_iterator const_iterator;
84 DISALLOW_COPY_AND_ASSIGN (TypeList);
87 } // namespace lldb_private
89 #endif // liblldb_TypeList_h_