aboutsummaryrefslogtreecommitdiff
path: root/include/lldb/Symbol/TypeList.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lldb/Symbol/TypeList.h')
-rw-r--r--include/lldb/Symbol/TypeList.h86
1 files changed, 34 insertions, 52 deletions
diff --git a/include/lldb/Symbol/TypeList.h b/include/lldb/Symbol/TypeList.h
index f3642576ddcb..b6a4e41ff301 100644
--- a/include/lldb/Symbol/TypeList.h
+++ b/include/lldb/Symbol/TypeList.h
@@ -10,84 +10,66 @@
#ifndef liblldb_TypeList_h_
#define liblldb_TypeList_h_
-#include "lldb/lldb-private.h"
#include "lldb/Symbol/Type.h"
#include "lldb/Utility/Iterable.h"
-#include <vector>
+#include "lldb/lldb-private.h"
#include <functional>
+#include <vector>
namespace lldb_private {
-class TypeList
-{
+class TypeList {
public:
- //------------------------------------------------------------------
- // Constructors and Destructors
- //------------------------------------------------------------------
- TypeList();
+ //------------------------------------------------------------------
+ // Constructors and Destructors
+ //------------------------------------------------------------------
+ TypeList();
+
+ virtual ~TypeList();
- virtual
- ~TypeList();
+ void Clear();
- void
- Clear();
+ void Dump(Stream *s, bool show_context);
- void
- Dump(Stream *s, bool show_context);
+ // lldb::TypeSP
+ // FindType(lldb::user_id_t uid);
-// lldb::TypeSP
-// FindType(lldb::user_id_t uid);
+ TypeList FindTypes(const ConstString &name);
- TypeList
- FindTypes(const ConstString &name);
+ void Insert(const lldb::TypeSP &type);
- void
- Insert (const lldb::TypeSP& type);
+ uint32_t GetSize() const;
- uint32_t
- GetSize() const;
+ lldb::TypeSP GetTypeAtIndex(uint32_t idx);
- lldb::TypeSP
- GetTypeAtIndex(uint32_t idx);
-
- typedef std::vector<lldb::TypeSP> collection;
- typedef AdaptedIterable<collection, lldb::TypeSP, vector_adapter> TypeIterable;
-
- TypeIterable
- Types ()
- {
- return TypeIterable(m_types);
- }
+ typedef std::vector<lldb::TypeSP> collection;
+ typedef AdaptedIterable<collection, lldb::TypeSP, vector_adapter>
+ TypeIterable;
- void
- ForEach (std::function <bool(const lldb::TypeSP &type_sp)> const &callback) const;
+ TypeIterable Types() { return TypeIterable(m_types); }
- void
- ForEach (std::function <bool(lldb::TypeSP &type_sp)> const &callback);
+ 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
- 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 (TypeList);
+ DISALLOW_COPY_AND_ASSIGN(TypeList);
};
} // namespace lldb_private
-#endif // liblldb_TypeList_h_
+#endif // liblldb_TypeList_h_