|
LLDB mainline
|
#include <TypeCategory.h>
Classes | |
| struct | ForEachCallback |
Public Types | |
| typedef uint16_t | FormatCategoryItems |
| typedef std::shared_ptr< TypeCategoryImpl > | SharedPointer |
Static Public Attributes | |
| static const uint16_t | ALL_ITEM_TYPES = UINT16_MAX |
Private Types | |
| typedef TieredFormatterContainer< TypeFormatImpl > | FormatContainer |
| typedef TieredFormatterContainer< TypeSummaryImpl > | SummaryContainer |
| typedef TieredFormatterContainer< TypeFilterImpl > | FilterContainer |
| typedef TieredFormatterContainer< SyntheticChildren > | SynthContainer |
Private Member Functions | |
| void | Enable (bool value, uint32_t position) |
| void | Disable () |
| bool | IsApplicable (lldb::LanguageType lang) |
| uint32_t | GetLastEnabledPosition () |
| void | SetEnabledPosition (uint32_t p) |
Private Attributes | |
| FormatContainer | m_format_cont |
| SummaryContainer | m_summary_cont |
| FilterContainer | m_filter_cont |
| SynthContainer | m_synth_cont |
| bool | m_enabled |
| IFormatChangeListener * | m_change_listener |
| std::recursive_mutex | m_mutex |
| ConstString | m_name |
| std::vector< lldb::LanguageType > | m_languages |
| uint32_t | m_enabled_position = 0 |
Friends | |
| class | FormatManager |
| class | LanguageCategory |
| class | TypeCategoryMap |
| class | FormattersContainer< TypeFormatImpl > |
| class | FormattersContainer< TypeSummaryImpl > |
| class | FormattersContainer< TypeFilterImpl > |
| class | FormattersContainer< ScriptedSyntheticChildren > |
Definition at line 167 of file TypeCategory.h.
|
private |
Definition at line 171 of file TypeCategory.h.
| typedef uint16_t lldb_private::TypeCategoryImpl::FormatCategoryItems |
Definition at line 175 of file TypeCategory.h.
|
private |
Definition at line 169 of file TypeCategory.h.
| typedef std::shared_ptr<TypeCategoryImpl> lldb_private::TypeCategoryImpl::SharedPointer |
Definition at line 357 of file TypeCategory.h.
|
private |
Definition at line 170 of file TypeCategory.h.
|
private |
Definition at line 172 of file TypeCategory.h.
| TypeCategoryImpl::TypeCategoryImpl | ( | IFormatChangeListener * | clist, |
| ConstString | name ) |
Definition at line 16 of file TypeCategory.cpp.
References m_change_listener, m_enabled, m_filter_cont, m_format_cont, m_languages, m_mutex, m_name, m_summary_cont, and m_synth_cont.
| void TypeCategoryImpl::AddLanguage | ( | lldb::LanguageType | lang | ) |
Definition at line 81 of file TypeCategory.cpp.
References m_languages.
|
inline |
Definition at line 246 of file TypeCategory.h.
References m_filter_cont.
Referenced by AddTypeFilter().
|
inline |
Definition at line 251 of file TypeCategory.h.
References AddTypeFilter().
|
inline |
Definition at line 222 of file TypeCategory.h.
References m_format_cont.
Referenced by AddTypeFormat().
|
inline |
Definition at line 227 of file TypeCategory.h.
References AddTypeFormat().
|
inline |
Definition at line 234 of file TypeCategory.h.
References m_summary_cont.
Referenced by AddTypeSummary().
|
inline |
Definition at line 239 of file TypeCategory.h.
References AddTypeSummary().
|
inline |
Definition at line 258 of file TypeCategory.h.
References m_synth_cont.
Referenced by AddTypeSynthetic().
|
inline |
Definition at line 263 of file TypeCategory.h.
References AddTypeSynthetic().
| bool TypeCategoryImpl::AnyMatches | ( | const FormattersMatchCandidate & | candidate_type, |
| FormatCategoryItems | items = ALL_ITEM_TYPES, | ||
| bool | only_enabled = true, | ||
| const char ** | matching_category = nullptr, | ||
| FormatCategoryItems * | matching_type = nullptr ) |
Definition at line 187 of file TypeCategory.cpp.
References lldb_private::eFormatCategoryItemFilter, lldb_private::eFormatCategoryItemFormat, lldb_private::eFormatCategoryItemSummary, lldb_private::eFormatCategoryItemSynth, IsEnabled(), m_filter_cont, m_format_cont, m_name, m_summary_cont, and m_synth_cont.
| void TypeCategoryImpl::AutoComplete | ( | CompletionRequest & | request, |
| FormatCategoryItems | items ) |
Definition at line 237 of file TypeCategory.cpp.
References lldb_private::eFormatCategoryItemFilter, lldb_private::eFormatCategoryItemFormat, lldb_private::eFormatCategoryItemSummary, lldb_private::eFormatCategoryItemSynth, m_filter_cont, m_format_cont, m_summary_cont, and m_synth_cont.
| void TypeCategoryImpl::Clear | ( | FormatCategoryItems | items = ALL_ITEM_TYPES | ) |
Definition at line 137 of file TypeCategory.cpp.
References lldb_private::eFormatCategoryItemFilter, lldb_private::eFormatCategoryItemFormat, lldb_private::eFormatCategoryItemSummary, lldb_private::eFormatCategoryItemSynth, m_filter_cont, m_format_cont, m_summary_cont, and m_synth_cont.
| bool TypeCategoryImpl::Delete | ( | ConstString | name, |
| FormatCategoryItems | items = ALL_ITEM_TYPES ) |
Definition at line 151 of file TypeCategory.cpp.
References lldb_private::eFormatCategoryItemFilter, lldb_private::eFormatCategoryItemFormat, lldb_private::eFormatCategoryItemSummary, lldb_private::eFormatCategoryItemSynth, m_filter_cont, m_format_cont, m_summary_cont, and m_synth_cont.
|
inline |
Definition at line 279 of file TypeCategory.h.
References m_filter_cont.
|
inline |
Definition at line 271 of file TypeCategory.h.
References m_format_cont.
|
inline |
Definition at line 275 of file TypeCategory.h.
References m_summary_cont.
|
inline |
Definition at line 283 of file TypeCategory.h.
References m_synth_cont.
|
inlineprivate |
Definition at line 379 of file TypeCategory.h.
References Enable(), and UINT32_MAX.
|
private |
Definition at line 309 of file TypeCategory.cpp.
References m_change_listener, m_enabled, m_enabled_position, and m_mutex.
Referenced by Disable().
|
inline |
Definition at line 206 of file TypeCategory.h.
References lldb_private::TypeCategoryImpl::ForEachCallback< T >::callback, and m_synth_cont.
|
inline |
Definition at line 202 of file TypeCategory.h.
References lldb_private::TypeCategoryImpl::ForEachCallback< T >::callback, and m_filter_cont.
|
inline |
Definition at line 194 of file TypeCategory.h.
References lldb_private::TypeCategoryImpl::ForEachCallback< T >::callback, and m_format_cont.
|
inline |
Definition at line 198 of file TypeCategory.h.
References lldb_private::TypeCategoryImpl::ForEachCallback< T >::callback, and m_summary_cont.
| bool lldb_private::TypeCategoryImpl::Get | ( | lldb::LanguageType | lang, |
| const FormattersMatchVector & | candidates, | ||
| lldb::SyntheticChildrenSP & | entry ) |
References ALL_ITEM_TYPES.
| bool TypeCategoryImpl::Get | ( | lldb::LanguageType | lang, |
| const FormattersMatchVector & | candidates, | ||
| lldb::TypeFormatImplSP & | entry ) |
Definition at line 85 of file TypeCategory.cpp.
References IsApplicable(), IsEnabled(), and m_format_cont.
| bool lldb_private::TypeCategoryImpl::Get | ( | lldb::LanguageType | lang, |
| const FormattersMatchVector & | candidates, | ||
| lldb::TypeSummaryImplSP & | entry ) |
| uint32_t TypeCategoryImpl::GetCount | ( | FormatCategoryItems | items = ALL_ITEM_TYPES | ) |
Definition at line 169 of file TypeCategory.cpp.
References lldb_private::eFormatCategoryItemFilter, lldb_private::eFormatCategoryItemFormat, lldb_private::eFormatCategoryItemSummary, lldb_private::eFormatCategoryItemSynth, m_filter_cont, m_format_cont, m_summary_cont, and m_synth_cont.
| std::string TypeCategoryImpl::GetDescription | ( | ) |
Definition at line 317 of file TypeCategory.cpp.
References lldb::eLanguageTypeUnknown, GetLanguageAtIndex(), GetName(), lldb_private::Language::GetNameForLanguageType(), GetNumLanguages(), lldb_private::StreamString::GetString(), IsEnabled(), lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), and lldb_private::Stream::PutCString().
|
inline |
Definition at line 317 of file TypeCategory.h.
References m_enabled, m_enabled_position, and UINT32_MAX.
| TypeCategoryImpl::FilterContainer::MapValueType TypeCategoryImpl::GetFilterAtIndex | ( | size_t | index | ) |
Definition at line 280 of file TypeCategory.cpp.
References m_filter_cont.
| TypeCategoryImpl::FilterContainer::MapValueType TypeCategoryImpl::GetFilterForType | ( | lldb::TypeNameSpecifierImplSP | type_sp | ) |
Definition at line 260 of file TypeCategory.cpp.
References m_filter_cont.
| TypeCategoryImpl::FormatContainer::MapValueType TypeCategoryImpl::GetFormatAtIndex | ( | size_t | index | ) |
Definition at line 270 of file TypeCategory.cpp.
References m_format_cont.
| TypeCategoryImpl::FormatContainer::MapValueType TypeCategoryImpl::GetFormatForType | ( | lldb::TypeNameSpecifierImplSP | type_sp | ) |
Definition at line 250 of file TypeCategory.cpp.
References m_format_cont.
| lldb::LanguageType TypeCategoryImpl::GetLanguageAtIndex | ( | size_t | idx | ) |
Definition at line 75 of file TypeCategory.cpp.
References lldb::eLanguageTypeUnknown, and m_languages.
Referenced by GetDescription(), and IsApplicable().
|
inlineprivate |
Definition at line 383 of file TypeCategory.h.
References m_enabled_position.
|
inline |
|
inline |
Definition at line 291 of file TypeCategory.h.
References m_filter_cont.
|
inline |
Definition at line 287 of file TypeCategory.h.
References m_format_cont.
| size_t TypeCategoryImpl::GetNumLanguages | ( | ) |
Definition at line 69 of file TypeCategory.cpp.
References m_languages.
Referenced by GetDescription(), and IsApplicable().
|
inline |
Definition at line 289 of file TypeCategory.h.
References m_summary_cont.
|
inline |
Definition at line 293 of file TypeCategory.h.
References m_synth_cont.
| TypeCategoryImpl::SummaryContainer::MapValueType TypeCategoryImpl::GetSummaryAtIndex | ( | size_t | index | ) |
Definition at line 275 of file TypeCategory.cpp.
References m_summary_cont.
| TypeCategoryImpl::SummaryContainer::MapValueType TypeCategoryImpl::GetSummaryForType | ( | lldb::TypeNameSpecifierImplSP | type_sp | ) |
Definition at line 255 of file TypeCategory.cpp.
References m_summary_cont.
| TypeCategoryImpl::SynthContainer::MapValueType TypeCategoryImpl::GetSyntheticAtIndex | ( | size_t | index | ) |
Definition at line 285 of file TypeCategory.cpp.
References m_synth_cont.
| TypeCategoryImpl::SynthContainer::MapValueType TypeCategoryImpl::GetSyntheticForType | ( | lldb::TypeNameSpecifierImplSP | type_sp | ) |
Definition at line 265 of file TypeCategory.cpp.
References m_synth_cont.
| lldb::TypeNameSpecifierImplSP TypeCategoryImpl::GetTypeNameSpecifierForFilterAtIndex | ( | size_t | index | ) |
Definition at line 300 of file TypeCategory.cpp.
References m_filter_cont.
| lldb::TypeNameSpecifierImplSP TypeCategoryImpl::GetTypeNameSpecifierForFormatAtIndex | ( | size_t | index | ) |
Definition at line 290 of file TypeCategory.cpp.
References m_format_cont.
| lldb::TypeNameSpecifierImplSP TypeCategoryImpl::GetTypeNameSpecifierForSummaryAtIndex | ( | size_t | index | ) |
Definition at line 295 of file TypeCategory.cpp.
References m_summary_cont.
| lldb::TypeNameSpecifierImplSP TypeCategoryImpl::GetTypeNameSpecifierForSyntheticAtIndex | ( | size_t | index | ) |
Definition at line 305 of file TypeCategory.cpp.
References m_synth_cont.
|
private |
Definition at line 60 of file TypeCategory.cpp.
References GetLanguageAtIndex(), GetNumLanguages(), and IsApplicable().
Referenced by Get(), and IsApplicable().
|
inline |
Definition at line 315 of file TypeCategory.h.
References m_enabled.
Referenced by AnyMatches(), Get(), and GetDescription().
|
inlineprivate |
Definition at line 385 of file TypeCategory.h.
References m_enabled_position.
|
friend |
Definition at line 387 of file TypeCategory.h.
References FormatManager.
Referenced by FormatManager.
|
friend |
Definition at line 389 of file TypeCategory.h.
References TypeCategoryMap.
|
friend |
Definition at line 389 of file TypeCategory.h.
|
friend |
Definition at line 389 of file TypeCategory.h.
|
friend |
Definition at line 389 of file TypeCategory.h.
|
friend |
Definition at line 388 of file TypeCategory.h.
References LanguageCategory.
Referenced by LanguageCategory.
|
friend |
Definition at line 389 of file TypeCategory.h.
Referenced by FormattersContainer< ScriptedSyntheticChildren >.
|
static |
Definition at line 176 of file TypeCategory.h.
Referenced by lldb_private::FormatManager::AnyMatches(), and Get().
|
private |
Definition at line 367 of file TypeCategory.h.
Referenced by Enable(), and TypeCategoryImpl().
|
private |
Definition at line 365 of file TypeCategory.h.
Referenced by Enable(), GetEnabledPosition(), IsEnabled(), and TypeCategoryImpl().
|
private |
Definition at line 375 of file TypeCategory.h.
Referenced by Enable(), GetEnabledPosition(), GetLastEnabledPosition(), and SetEnabledPosition().
|
private |
Definition at line 362 of file TypeCategory.h.
Referenced by AddTypeFilter(), AnyMatches(), AutoComplete(), Clear(), Delete(), DeleteTypeFilter(), ForEach(), GetCount(), GetFilterAtIndex(), GetFilterForType(), GetNumFilters(), GetTypeNameSpecifierForFilterAtIndex(), and TypeCategoryImpl().
|
private |
Definition at line 360 of file TypeCategory.h.
Referenced by AddTypeFormat(), AnyMatches(), AutoComplete(), Clear(), Delete(), DeleteTypeFormat(), ForEach(), Get(), GetCount(), GetFormatAtIndex(), GetFormatForType(), GetNumFormats(), GetTypeNameSpecifierForFormatAtIndex(), and TypeCategoryImpl().
|
private |
Definition at line 373 of file TypeCategory.h.
Referenced by AddLanguage(), GetLanguageAtIndex(), GetNumLanguages(), and TypeCategoryImpl().
|
private |
Definition at line 369 of file TypeCategory.h.
Referenced by Enable(), and TypeCategoryImpl().
|
private |
Definition at line 371 of file TypeCategory.h.
Referenced by AnyMatches(), GetName(), and TypeCategoryImpl().
|
private |
Definition at line 361 of file TypeCategory.h.
Referenced by AddTypeSummary(), AnyMatches(), AutoComplete(), Clear(), Delete(), DeleteTypeSummary(), ForEach(), GetCount(), GetNumSummaries(), GetSummaryAtIndex(), GetSummaryForType(), GetTypeNameSpecifierForSummaryAtIndex(), and TypeCategoryImpl().
|
private |
Definition at line 363 of file TypeCategory.h.
Referenced by AddTypeSynthetic(), AnyMatches(), AutoComplete(), Clear(), Delete(), DeleteTypeSynthetic(), ForEach(), GetCount(), GetNumSynthetics(), GetSyntheticAtIndex(), GetSyntheticForType(), GetTypeNameSpecifierForSyntheticAtIndex(), and TypeCategoryImpl().