LLDB mainline
lldb_private::DemangledNameInfoCache::State Struct Reference

Public Member Functions

void EvictRandomEntry ()
 Drops a random entry from the cache.

Public Attributes

llvm::DenseMap< ConstString, std::optional< DemangledNameInfo > > infos
 Maps a ConstString to its DemangledNameInfo.
std::vector< ConstString > mangled_names
 The mangled names.
std::minstd_rand rng
size_t max_entries = 0

Detailed Description

Definition at line 161 of file DemangledNameInfo.h.

Member Function Documentation

◆ EvictRandomEntry()

void lldb_private::DemangledNameInfoCache::State::EvictRandomEntry ( )

Drops a random entry from the cache.

Definition at line 54 of file DemangledNameInfo.cpp.

References infos, mangled_names, and rng.

Member Data Documentation

◆ infos

llvm::DenseMap<ConstString, std::optional<DemangledNameInfo> > lldb_private::DemangledNameInfoCache::State::infos

Maps a ConstString to its DemangledNameInfo.

Values can be empty if no name info could be computed for a name.

Definition at line 167 of file DemangledNameInfo.h.

Referenced by EvictRandomEntry().

◆ mangled_names

std::vector<ConstString> lldb_private::DemangledNameInfoCache::State::mangled_names

The mangled names.

Definition at line 170 of file DemangledNameInfo.h.

Referenced by EvictRandomEntry().

◆ max_entries

size_t lldb_private::DemangledNameInfoCache::State::max_entries = 0

Definition at line 174 of file DemangledNameInfo.h.

◆ rng

std::minstd_rand lldb_private::DemangledNameInfoCache::State::rng

Definition at line 172 of file DemangledNameInfo.h.

Referenced by EvictRandomEntry().


The documentation for this struct was generated from the following files: