Add a few useful accessors on the data formatters containers

llvm-svn: 253111
This commit is contained in:
Enrico Granata 2015-11-14 00:58:37 +00:00
parent 6f6f7396ba
commit e86e425945
1 changed files with 38 additions and 0 deletions

View File

@ -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);