56template<>
bool FormatCache::Entry::IsCached<lldb::TypeFormatImplSP>() {
57 return IsFormatCached();
59template<>
bool FormatCache::Entry::IsCached<lldb::TypeSummaryImplSP> () {
60 return IsSummaryCached();
62template<>
bool FormatCache::Entry::IsCached<lldb::SyntheticChildrenSP>() {
63 return IsSyntheticCached();
68template <
typename ImplSP>
70 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
72 if (entry.IsCached<ImplSP>()) {
74 entry.Get(format_impl_sp);
78 format_impl_sp.reset();
95 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
100 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
106 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
111 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
A uniqued constant string class.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::TypeSummaryImpl > TypeSummaryImplSP
std::shared_ptr< lldb_private::TypeFormatImpl > TypeFormatImplSP
std::shared_ptr< lldb_private::SyntheticChildren > SyntheticChildrenSP
lldb::SyntheticChildrenSP m_synthetic_sp
lldb::TypeSummaryImplSP m_summary_sp
lldb::TypeFormatImplSP m_format_sp
Entry(Type t=Type::Invalid, const char *s=nullptr, const char *f=nullptr)