Add a few useful accessors on the data formatters containers
llvm-svn: 253111
This commit is contained in:
parent
6f6f7396ba
commit
e86e425945
|
@ -64,6 +64,20 @@ namespace lldb_private {
|
|||
return m_regex_sp;
|
||||
}
|
||||
|
||||
void
|
||||
LoopThrough (typename ExactMatchContainer::CallbackType exact_callback,
|
||||
typename RegexMatchContainer::CallbackType regex_callback)
|
||||
{
|
||||
GetExactMatch()->LoopThrough(exact_callback);
|
||||
GetRegexMatch()->LoopThrough(regex_callback);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
GetCount ()
|
||||
{
|
||||
return GetExactMatch()->GetCount() + GetRegexMatch()->GetCount();
|
||||
}
|
||||
|
||||
private:
|
||||
ExactMatchContainerSP m_exact_sp;
|
||||
RegexMatchContainerSP m_regex_sp;
|
||||
|
@ -117,6 +131,12 @@ namespace lldb_private {
|
|||
return m_format_cont.GetRegexMatch();
|
||||
}
|
||||
|
||||
FormatContainer&
|
||||
GetFormatContainer ()
|
||||
{
|
||||
return m_format_cont;
|
||||
}
|
||||
|
||||
SummaryContainerSP
|
||||
GetTypeSummariesContainer ()
|
||||
{
|
||||
|
@ -129,6 +149,12 @@ namespace lldb_private {
|
|||
return m_summary_cont.GetRegexMatch();
|
||||
}
|
||||
|
||||
SummaryContainer&
|
||||
GetSummaryContainer ()
|
||||
{
|
||||
return m_summary_cont;
|
||||
}
|
||||
|
||||
FilterContainerSP
|
||||
GetTypeFiltersContainer ()
|
||||
{
|
||||
|
@ -140,6 +166,12 @@ namespace lldb_private {
|
|||
{
|
||||
return m_filter_cont.GetRegexMatch();
|
||||
}
|
||||
|
||||
FilterContainer&
|
||||
GetFilterContainer ()
|
||||
{
|
||||
return m_filter_cont;
|
||||
}
|
||||
|
||||
FormatContainer::MapValueType
|
||||
GetFormatForType (lldb::TypeNameSpecifierImplSP type_sp);
|
||||
|
@ -189,6 +221,12 @@ namespace lldb_private {
|
|||
return m_synth_cont.GetRegexMatch();
|
||||
}
|
||||
|
||||
SynthContainer&
|
||||
GetSyntheticsContainer ()
|
||||
{
|
||||
return m_synth_cont;
|
||||
}
|
||||
|
||||
SynthContainer::MapValueType
|
||||
GetSyntheticAtIndex (size_t index);
|
||||
|
||||
|
|
Loading…
Reference in New Issue