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) |
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) |
TypeIterable | Types () |
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) |
void | RemoveMismatchedTypes (llvm::StringRef type_scope, llvm::StringRef type_basename, lldb::TypeClass type_class, bool exact_match) |
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 |
||
) |
Definition at line 124 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::TypeImpl::FindDirectNestedType(), DWARFASTParserClang::ParseTypeFromClangModule(), and lldb_private::SymbolContext::SortTypeList().
TypeMap lldb_private::TypeMap::FindTypes | ( | ConstString | name | ) |
Referenced by lldb_private::TypeImpl::FindDirectNestedType().
void TypeMap::ForEach | ( | std::function< bool(const lldb::TypeSP &type_sp)> const & | callback | ) | const |
Definition at line 94 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 102 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::Module::FindTypes(), lldb_private::Module::FindTypesInNamespace(), and DWARFASTParserClang::ParseTypeFromClangModule().
TypeSP TypeMap::GetTypeAtIndex | ( | uint32_t | idx | ) |
Definition at line 83 of file TypeMap.cpp.
References m_types.
Referenced by lldb_private::TypeImpl::FindDirectNestedType(), and DWARFASTParserClang::ParseTypeFromClangModule().
void TypeMap::Insert | ( | const lldb::TypeSP & | type | ) |
Definition at line 27 of file TypeMap.cpp.
References m_types.
Referenced by lldb_private::SymbolFileCTF::FindTypes(), SymbolFilePDB::FindTypesByName(), 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::plugin::dwarf::SymbolFileDWARF::FindTypes().
bool TypeMap::Remove | ( | const lldb::TypeSP & | type_sp | ) |
Definition at line 110 of file TypeMap.cpp.
References m_types.
Referenced by lldb_private::SymbolContext::SortTypeList().
void TypeMap::RemoveMismatchedTypes | ( | llvm::StringRef | type_scope, |
llvm::StringRef | type_basename, | ||
lldb::TypeClass | type_class, | ||
bool | exact_match | ||
) |
Definition at line 130 of file TypeMap.cpp.
References lldb_private::ConstString::GetCString(), lldb_private::Type::GetForwardCompilerType(), lldb_private::Type::GetQualifiedName(), lldb_private::CompilerType::GetTypeClass(), lldb_private::Type::GetTypeScopeAndBasename(), and m_types.
Referenced by lldb_private::Module::FindTypes().
|
inline |
|
private |
Definition at line 64 of file TypeMap.h.
Referenced by Clear(), Dump(), Empty(), ForEach(), GetSize(), GetTypeAtIndex(), Insert(), InsertUnique(), Remove(), RemoveMismatchedTypes(), and Types().