LLDB mainline
|
#include <TypeMap.h>
Public Types | |
typedef std::multimap< lldb::user_id_t, lldb::TypeSP > | collection |
typedef AdaptedIterable< collection, lldb::TypeSP, map_adapter > | TypeIterable |
Public Member Functions | |
TypeMap () | |
virtual | ~TypeMap () |
void | Clear () |
void | Dump (Stream *s, bool show_context, lldb::DescriptionLevel level=lldb::eDescriptionLevelFull) const |
TypeMap | FindTypes (ConstString name) |
void | Insert (const lldb::TypeSP &type) |
bool | Empty () const |
bool | InsertUnique (const lldb::TypeSP &type) |
uint32_t | GetSize () const |
lldb::TypeSP | GetTypeAtIndex (uint32_t idx) |
lldb::TypeSP | FirstType () const |
TypeIterable | Types () const |
void | ForEach (std::function< bool(const lldb::TypeSP &type_sp)> const &callback) const |
void | ForEach (std::function< bool(lldb::TypeSP &type_sp)> const &callback) |
bool | Remove (const lldb::TypeSP &type_sp) |
Private Types | |
typedef collection::iterator | iterator |
typedef collection::const_iterator | const_iterator |
Private Member Functions | |
TypeMap (const TypeMap &)=delete | |
const TypeMap & | operator= (const TypeMap &)=delete |
Private Attributes | |
collection | m_types |
typedef std::multimap<lldb::user_id_t, lldb::TypeSP> lldb_private::TypeMap::collection |
|
private |
|
private |
TypeMap::TypeMap | ( | ) |
Definition at line 22 of file TypeMap.cpp.
|
virtualdefault |
|
privatedelete |
void TypeMap::Clear | ( | ) |
Definition at line 73 of file TypeMap.cpp.
References m_types.
void TypeMap::Dump | ( | Stream * | s, |
bool | show_context, | ||
lldb::DescriptionLevel | level = lldb::eDescriptionLevelFull |
||
) | const |
Definition at line 130 of file TypeMap.cpp.
References m_types.
bool TypeMap::Empty | ( | ) | const |
Definition at line 77 of file TypeMap.cpp.
References m_types.
Referenced by lldb_private::TypeResults::Done(), lldb::SBModule::FindTypes(), lldb_private::TypeFormatImpl_EnumType::FormatObject(), and lldb_private::SymbolContext::SortTypeList().
TypeMap lldb_private::TypeMap::FindTypes | ( | ConstString | name | ) |
lldb::TypeSP TypeMap::FirstType | ( | ) | const |
Definition at line 94 of file TypeMap.cpp.
References m_types.
Referenced by lldb_private::TypeResults::GetFirstType(), and DWARFASTParserClang::ParseTypeFromClangModule().
void TypeMap::ForEach | ( | std::function< bool(const lldb::TypeSP &type_sp)> const & | callback | ) | const |
Definition at line 100 of file TypeMap.cpp.
References m_types.
Referenced by lldb_private::SymbolContext::SortTypeList().
void TypeMap::ForEach | ( | std::function< bool(lldb::TypeSP &type_sp)> const & | callback | ) |
Definition at line 108 of file TypeMap.cpp.
References m_types.
uint32_t TypeMap::GetSize | ( | ) | const |
Definition at line 75 of file TypeMap.cpp.
References m_types.
Referenced by lldb_private::plugin::dwarf::SymbolFileDWARF::FindTypes().
TypeSP TypeMap::GetTypeAtIndex | ( | uint32_t | idx | ) |
Definition at line 83 of file TypeMap.cpp.
References m_types.
void TypeMap::Insert | ( | const lldb::TypeSP & | type | ) |
Definition at line 27 of file TypeMap.cpp.
References m_types.
Referenced by lldb_private::npdb::SymbolFileNativePDB::FindTypesByName(), lldb_private::SymbolFileCTF::FindTypesByRegex(), SymbolFilePDB::FindTypesByRegex(), and InsertUnique().
bool TypeMap::InsertUnique | ( | const lldb::TypeSP & | type | ) |
Definition at line 34 of file TypeMap.cpp.
References Insert(), and m_types.
Referenced by lldb_private::TypeResults::InsertUnique().
bool TypeMap::Remove | ( | const lldb::TypeSP & | type_sp | ) |
Definition at line 116 of file TypeMap.cpp.
References m_types.
Referenced by lldb_private::SymbolContext::SortTypeList().
|
inline |
Definition at line 49 of file TypeMap.h.
References m_types.
Referenced by lldb_private::Language::ImageListTypeScavenger::Find_Impl(), lldb_private::ClangASTSource::FindCompleteType(), lldb::SBModule::FindTypes(), lldb::SBTarget::FindTypes(), lldb_private::TypeFormatImpl_EnumType::FormatObject(), lldb_private::ItaniumABILanguageRuntime::GetTypeInfo(), and lldb_private::ObjCLanguageRuntime::LookupInCompleteClassCache().
|
private |
Definition at line 62 of file TypeMap.h.
Referenced by Clear(), Dump(), Empty(), FirstType(), ForEach(), GetSize(), GetTypeAtIndex(), Insert(), InsertUnique(), Remove(), and Types().