9#ifndef LLDB_DATAFORMATTERS_TYPECATEGORYMAP_H
10#define LLDB_DATAFORMATTERS_TYPECATEGORYMAP_H
24#include "llvm/ADT/StringMap.h"
33 typedef llvm::StringMap<lldb::TypeCategoryImplSP>
MapType;
47 bool Delete(llvm::StringRef name);
51 bool Disable(llvm::StringRef category_name);
79 :
ptr(std::move(p)) {}
82 return ptr.get() == other.get();
delete_matching_categories(lldb::TypeCategoryImplSP p)
lldb::TypeCategoryImplSP ptr
bool operator()(const lldb::TypeCategoryImplSP &other)
bool Enable(llvm::StringRef category_name, Position pos=Default)
bool Disable(llvm::StringRef category_name)
std::function< bool(const lldb::TypeCategoryImplSP &)> ForEachCallback
static const Position Last
lldb::TypeCategoryImplSP GetAtIndex(uint32_t)
std::recursive_mutex m_map_mutex
bool Delete(llvm::StringRef name)
ActiveCategoriesList m_active_categories
ActiveCategoriesList::iterator ActiveCategoriesIterator
MapType::iterator MapIterator
bool Get(llvm::StringRef name, lldb::TypeCategoryImplSP &entry)
IFormatChangeListener * listener
void DisableAllCategories()
static const Position Default
std::list< lldb::TypeCategoryImplSP > ActiveCategoriesList
llvm::StringMap< lldb::TypeCategoryImplSP > MapType
void EnableAllCategories()
void Add(llvm::StringRef name, const lldb::TypeCategoryImplSP &entry)
static const Position First
void ForEach(ForEachCallback callback)
TypeCategoryMap(IFormatChangeListener *lst)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::TypeCategoryImpl > TypeCategoryImplSP