|
LLDB mainline
|
A cache from mangled names to DemangledNameInfo. More...
#include <DemangledNameInfo.h>
Classes | |
| struct | State |
Public Member Functions | |
| std::optional< DemangledNameInfo > | Get (const Mangled &mangled) |
| Calculates the DemangledNameInfo and caches the result. | |
| void | Clear () |
| size_t | GetMaxEntries () const |
| size_t | GetNumEntries () const |
| void | SetMaxEntries (size_t max_entries) |
| Changes the maximum number of entries. A limit of 0 disables the cache. | |
Private Attributes | |
| Guarded< State > | m_state |
A cache from mangled names to DemangledNameInfo.
Definition at line 144 of file DemangledNameInfo.h.
| void lldb_private::DemangledNameInfoCache::Clear | ( | ) |
Definition at line 63 of file DemangledNameInfo.cpp.
References m_state.
| std::optional< DemangledNameInfo > lldb_private::DemangledNameInfoCache::Get | ( | const Mangled & | mangled | ) |
Calculates the DemangledNameInfo and caches the result.
mangled. Definition at line 17 of file DemangledNameInfo.cpp.
References lldb_private::Mangled::ComputeDemangledInfo(), lldb_private::Mangled::GetMangledName(), and m_state.
Referenced by GetAndValidateInfo().
| size_t lldb_private::DemangledNameInfoCache::GetMaxEntries | ( | ) | const |
Definition at line 69 of file DemangledNameInfo.cpp.
References m_state.
Referenced by SetMaxEntries().
| size_t lldb_private::DemangledNameInfoCache::GetNumEntries | ( | ) | const |
Definition at line 73 of file DemangledNameInfo.cpp.
References m_state.
| void lldb_private::DemangledNameInfoCache::SetMaxEntries | ( | size_t | max_entries | ) |
Changes the maximum number of entries. A limit of 0 disables the cache.
Definition at line 77 of file DemangledNameInfo.cpp.
References GetMaxEntries(), and m_state.
Referenced by GetDemangledInfoCache().
Definition at line 177 of file DemangledNameInfo.h.
Referenced by Clear(), Get(), GetMaxEntries(), GetNumEntries(), and SetMaxEntries().