9#ifndef LLDB_DATAFORMATTERS_TYPECATEGORYMAP_H
10#define LLDB_DATAFORMATTERS_TYPECATEGORYMAP_H
32 typedef std::map<KeyType, lldb::TypeCategoryImplSP>
MapType;
72 bool only_enabled =
true,
const char **matching_category =
nullptr,
85 :
ptr(std::move(p)) {}
88 return ptr.get() == other.get();
A uniqued constant string class.
uint16_t FormatCategoryItems
static const uint16_t ALL_ITEM_TYPES
delete_matching_categories(lldb::TypeCategoryImplSP p)
lldb::TypeCategoryImplSP ptr
bool operator()(const lldb::TypeCategoryImplSP &other)
bool Delete(KeyType name)
std::function< bool(const lldb::TypeCategoryImplSP &)> ForEachCallback
static const Position Last
std::map< KeyType, lldb::TypeCategoryImplSP > MapType
bool AnyMatches(const FormattersMatchCandidate &candidate_type, TypeCategoryImpl::FormatCategoryItems items=TypeCategoryImpl::ALL_ITEM_TYPES, bool only_enabled=true, const char **matching_category=nullptr, TypeCategoryImpl::FormatCategoryItems *matching_type=nullptr)
void Add(KeyType name, const lldb::TypeCategoryImplSP &entry)
bool Enable(KeyType category_name, Position pos=Default)
lldb::TypeCategoryImplSP GetAtIndex(uint32_t)
std::recursive_mutex m_map_mutex
ActiveCategoriesList m_active_categories
ActiveCategoriesList::iterator ActiveCategoriesIterator
bool Disable(KeyType category_name)
MapType::iterator MapIterator
IFormatChangeListener * listener
void DisableAllCategories()
static const Position Default
std::list< lldb::TypeCategoryImplSP > ActiveCategoriesList
void EnableAllCategories()
bool Get(KeyType name, lldb::TypeCategoryImplSP &entry)
static const Position First
void ForEach(ForEachCallback callback)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::TypeCategoryImpl > TypeCategoryImplSP