aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/Symbol/TypeMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Symbol/TypeMap.h')
-rw-r--r--include/lldb/Symbol/TypeMap.h91
1 files changed, 35 insertions, 56 deletions
diff --git a/include/lldb/Symbol/TypeMap.h b/include/lldb/Symbol/TypeMap.h
index 4398acd789ae..6bf9831c1389 100644
--- a/include/lldb/Symbol/TypeMap.h
+++ b/include/lldb/Symbol/TypeMap.h
@@ -10,89 +10,68 @@
#ifndef liblldb_TypeMap_h_
#define liblldb_TypeMap_h_
-#include "lldb/lldb-private.h"
#include "lldb/Symbol/Type.h"
#include "lldb/Utility/Iterable.h"
-#include <map>
+#include "lldb/lldb-private.h"
#include <functional>
+#include <map>
namespace lldb_private {
-class TypeMap
-{
+class TypeMap {
public:
- //------------------------------------------------------------------
- // Constructors and Destructors
- //------------------------------------------------------------------
- TypeMap();
+ //------------------------------------------------------------------
+ // Constructors and Destructors
+ //------------------------------------------------------------------
+ TypeMap();
+
+ virtual ~TypeMap();
+
+ void Clear();
- virtual
- ~TypeMap();
+ void Dump(Stream *s, bool show_context);
- void
- Clear();
+ TypeMap FindTypes(const ConstString &name);
- void
- Dump(Stream *s, bool show_context);
+ void Insert(const lldb::TypeSP &type);
- TypeMap
- FindTypes(const ConstString &name);
+ bool Empty() const;
- void
- Insert (const lldb::TypeSP& type);
+ bool InsertUnique(const lldb::TypeSP &type);
- bool
- Empty() const;
+ uint32_t GetSize() const;
- bool
- InsertUnique (const lldb::TypeSP& type);
+ lldb::TypeSP GetTypeAtIndex(uint32_t idx);
- uint32_t
- GetSize() const;
+ typedef std::multimap<lldb::user_id_t, lldb::TypeSP> collection;
+ typedef AdaptedIterable<collection, lldb::TypeSP, map_adapter> TypeIterable;
- lldb::TypeSP
- GetTypeAtIndex(uint32_t idx);
-
- typedef std::multimap<lldb::user_id_t, lldb::TypeSP> collection;
- typedef AdaptedIterable<collection, lldb::TypeSP, map_adapter> TypeIterable;
-
- TypeIterable
- Types ()
- {
- return TypeIterable(m_types);
- }
+ TypeIterable Types() { return TypeIterable(m_types); }
- void
- ForEach (std::function <bool(const lldb::TypeSP &type_sp)> const &callback) const;
+ void ForEach(
+ std::function<bool(const lldb::TypeSP &type_sp)> const &callback) const;
- void
- ForEach (std::function <bool(lldb::TypeSP &type_sp)> const &callback);
+ void ForEach(std::function<bool(lldb::TypeSP &type_sp)> const &callback);
- bool
- Remove (const lldb::TypeSP &type_sp);
+ bool Remove(const lldb::TypeSP &type_sp);
- void
- RemoveMismatchedTypes (const char *qualified_typename,
- bool exact_match);
+ void RemoveMismatchedTypes(const char *qualified_typename, bool exact_match);
- void
- RemoveMismatchedTypes (const std::string &type_scope,
- const std::string &type_basename,
- lldb::TypeClass type_class,
- bool exact_match);
+ void RemoveMismatchedTypes(const std::string &type_scope,
+ const std::string &type_basename,
+ lldb::TypeClass type_class, bool exact_match);
- void
- RemoveMismatchedTypes (lldb::TypeClass type_class);
+ void RemoveMismatchedTypes(lldb::TypeClass type_class);
private:
- typedef collection::iterator iterator;
- typedef collection::const_iterator const_iterator;
+ typedef collection::iterator iterator;
+ typedef collection::const_iterator const_iterator;
- collection m_types;
+ collection m_types;
- DISALLOW_COPY_AND_ASSIGN (TypeMap);
+ DISALLOW_COPY_AND_ASSIGN(TypeMap);
};
} // namespace lldb_private
-#endif // liblldb_TypeMap_h_
+#endif // liblldb_TypeMap_h_