LLDB mainline
|
#include <FormattersContainer.h>
Public Types | |
typedef std::shared_ptr< ValueType > | ValueSP |
typedef std::vector< std::pair< TypeMatcher, ValueSP > > | MapType |
typedef std::function< bool(const TypeMatcher &, const ValueSP &)> | ForEachCallback |
typedef std::shared_ptr< FormattersContainer< ValueType > > | SharedPointer |
Public Member Functions | |
FormattersContainer (IFormatChangeListener *lst) | |
void | Add (TypeMatcher matcher, const ValueSP &entry) |
bool | Delete (TypeMatcher matcher) |
bool | Get (FormattersMatchCandidate candidate, ValueSP &entry) |
bool | Get (const FormattersMatchVector &candidates, ValueSP &entry) |
bool | GetExact (TypeMatcher matcher, ValueSP &entry) |
ValueSP | GetAtIndex (size_t index) |
lldb::TypeNameSpecifierImplSP | GetTypeNameSpecifierAtIndex (size_t index) |
void | Clear () |
void | ForEach (ForEachCallback callback) |
uint32_t | GetCount () |
void | AutoComplete (CompletionRequest &request) |
Protected Member Functions | |
FormattersContainer (const FormattersContainer &)=delete | |
const FormattersContainer & | operator= (const FormattersContainer &)=delete |
Protected Attributes | |
MapType | m_map |
std::recursive_mutex | m_map_mutex |
IFormatChangeListener * | listener |
Friends | |
class | TypeCategoryImpl |
Definition at line 141 of file FormattersContainer.h.
typedef std::function<bool(const TypeMatcher &, const ValueSP &)> lldb_private::FormattersContainer< ValueType >::ForEachCallback |
Definition at line 146 of file FormattersContainer.h.
typedef std::vector<std::pair<TypeMatcher, ValueSP> > lldb_private::FormattersContainer< ValueType >::MapType |
Definition at line 144 of file FormattersContainer.h.
typedef std::shared_ptr<FormattersContainer<ValueType> > lldb_private::FormattersContainer< ValueType >::SharedPointer |
Definition at line 148 of file FormattersContainer.h.
typedef std::shared_ptr<ValueType> lldb_private::FormattersContainer< ValueType >::ValueSP |
Definition at line 143 of file FormattersContainer.h.
|
inline |
Definition at line 152 of file FormattersContainer.h.
|
protecteddelete |
|
inline |
Definition at line 154 of file FormattersContainer.h.
References lldb_private::IFormatChangeListener::Changed(), lldb_private::FormattersContainer< ValueType >::Delete(), lldb_private::IFormatChangeListener::GetCurrentRevision(), lldb_private::FormattersContainer< ValueType >::listener, lldb_private::FormattersContainer< ValueType >::m_map, and lldb_private::FormattersContainer< ValueType >::m_map_mutex.
Referenced by lldb_private::DataVisualization::NamedSummaryFormats::Add().
|
inline |
|
inline |
Definition at line 234 of file FormattersContainer.h.
References lldb_private::IFormatChangeListener::Changed(), lldb_private::FormattersContainer< ValueType >::listener, lldb_private::FormattersContainer< ValueType >::m_map, and lldb_private::FormattersContainer< ValueType >::m_map_mutex.
Referenced by lldb_private::DataVisualization::NamedSummaryFormats::Clear().
|
inline |
Definition at line 167 of file FormattersContainer.h.
References lldb_private::IFormatChangeListener::Changed(), lldb_private::FormattersContainer< ValueType >::listener, lldb_private::FormattersContainer< ValueType >::m_map, and lldb_private::FormattersContainer< ValueType >::m_map_mutex.
Referenced by lldb_private::FormattersContainer< ValueType >::Add(), and lldb_private::DataVisualization::NamedSummaryFormats::Delete().
|
inline |
Definition at line 241 of file FormattersContainer.h.
References lldb_private::FormattersContainer< ValueType >::m_map, and lldb_private::FormattersContainer< ValueType >::m_map_mutex.
Referenced by lldb_private::FormattersContainer< ValueType >::AutoComplete(), and lldb_private::DataVisualization::NamedSummaryFormats::ForEach().
|
inline |
Definition at line 193 of file FormattersContainer.h.
References lldb_private::FormattersContainer< ValueType >::Get().
|
inline |
Definition at line 180 of file FormattersContainer.h.
References lldb_private::FormattersContainer< ValueType >::m_map, and lldb_private::FormattersContainer< ValueType >::m_map_mutex.
Referenced by lldb_private::FormattersContainer< ValueType >::Get().
|
inline |
Definition at line 217 of file FormattersContainer.h.
References lldb_private::FormattersContainer< ValueType >::m_map, and lldb_private::FormattersContainer< ValueType >::m_map_mutex.
|
inline |
Definition at line 252 of file FormattersContainer.h.
References lldb_private::FormattersContainer< ValueType >::m_map, and lldb_private::FormattersContainer< ValueType >::m_map_mutex.
Referenced by lldb_private::DataVisualization::NamedSummaryFormats::GetCount().
|
inline |
Definition at line 207 of file FormattersContainer.h.
References lldb_private::FormattersContainer< ValueType >::m_map, and lldb_private::FormattersContainer< ValueType >::m_map_mutex.
Referenced by lldb_private::DataVisualization::NamedSummaryFormats::GetSummaryFormat().
|
inline |
Definition at line 224 of file FormattersContainer.h.
References lldb_private::TypeMatcher::GetMatchString(), lldb_private::TypeMatcher::GetMatchType(), lldb_private::ConstString::GetStringRef(), lldb_private::FormattersContainer< ValueType >::m_map, and lldb_private::FormattersContainer< ValueType >::m_map_mutex.
|
protecteddelete |
|
friend |
Definition at line 150 of file FormattersContainer.h.
|
protected |
Definition at line 270 of file FormattersContainer.h.
Referenced by lldb_private::FormattersContainer< ValueType >::Add(), lldb_private::FormattersContainer< ValueType >::Clear(), and lldb_private::FormattersContainer< ValueType >::Delete().
|
protected |
Definition at line 268 of file FormattersContainer.h.
Referenced by lldb_private::FormattersContainer< ValueType >::Add(), lldb_private::FormattersContainer< ValueType >::Clear(), lldb_private::FormattersContainer< ValueType >::Delete(), lldb_private::FormattersContainer< ValueType >::ForEach(), lldb_private::FormattersContainer< ValueType >::Get(), lldb_private::FormattersContainer< ValueType >::GetAtIndex(), lldb_private::FormattersContainer< ValueType >::GetCount(), lldb_private::FormattersContainer< ValueType >::GetExact(), and lldb_private::FormattersContainer< ValueType >::GetTypeNameSpecifierAtIndex().
|
protected |
Definition at line 269 of file FormattersContainer.h.
Referenced by lldb_private::FormattersContainer< ValueType >::Add(), lldb_private::FormattersContainer< ValueType >::Clear(), lldb_private::FormattersContainer< ValueType >::Delete(), lldb_private::FormattersContainer< ValueType >::ForEach(), lldb_private::FormattersContainer< ValueType >::Get(), lldb_private::FormattersContainer< ValueType >::GetAtIndex(), lldb_private::FormattersContainer< ValueType >::GetCount(), lldb_private::FormattersContainer< ValueType >::GetExact(), and lldb_private::FormattersContainer< ValueType >::GetTypeNameSpecifierAtIndex().