LLDB mainline
|
#include <CFBasicHash.h>
Classes | |
struct | __CFBasicHash |
Public Types | |
enum class | HashType { set = 0 , dict } |
Public Member Functions | |
CFBasicHash ()=default | |
~CFBasicHash ()=default | |
bool | Update (lldb::addr_t addr, ExecutionContextRef exe_ctx_rf) |
bool | IsValid () const |
bool | IsMutable () const |
bool | IsMultiVariant () const |
HashType | GetType () const |
size_t | GetCount () const |
lldb::addr_t | GetKeyPointer () const |
lldb::addr_t | GetValuePointer () const |
Private Member Functions | |
template<typename T > | |
bool | UpdateFor (std::unique_ptr< __CFBasicHash< T > > &m_ht) |
size_t | GetPointerCount () const |
Private Attributes | |
uint32_t | m_ptr_size = UINT32_MAX |
lldb::ByteOrder | m_byte_order = lldb::eByteOrderInvalid |
Address | m_address = LLDB_INVALID_ADDRESS |
std::unique_ptr< __CFBasicHash< uint32_t > > | m_ht_32 = nullptr |
std::unique_ptr< __CFBasicHash< uint64_t > > | m_ht_64 = nullptr |
ExecutionContextRef | m_exe_ctx_ref |
bool | m_mutable = true |
bool | m_multi = false |
HashType | m_type = HashType::set |
Definition at line 17 of file CFBasicHash.h.
|
strong |
Enumerator | |
---|---|
set | |
dict |
Definition at line 19 of file CFBasicHash.h.
|
default |
|
default |
size_t CFBasicHash::GetCount | ( | ) | const |
Definition at line 75 of file CFBasicHash.cpp.
References IsValid(), m_ht_32, m_ht_64, m_multi, and m_ptr_size.
Referenced by lldb_private::formatters::NSDictionarySummaryProvider(), and lldb_private::formatters::NSSetSummaryProvider().
addr_t CFBasicHash::GetKeyPointer | ( | ) | const |
Definition at line 96 of file CFBasicHash.cpp.
References IsValid(), LLDB_INVALID_ADDRESS, m_ht_32, m_ht_64, and m_ptr_size.
|
private |
Definition at line 87 of file CFBasicHash.cpp.
References dict, IsValid(), m_multi, and m_type.
Referenced by UpdateFor().
|
inline |
Definition at line 30 of file CFBasicHash.h.
References m_type.
addr_t CFBasicHash::GetValuePointer | ( | ) | const |
Definition at line 106 of file CFBasicHash.cpp.
References IsValid(), LLDB_INVALID_ADDRESS, m_ht_32, m_ht_64, and m_ptr_size.
|
inline |
Definition at line 29 of file CFBasicHash.h.
References m_multi.
|
inline |
Definition at line 28 of file CFBasicHash.h.
References m_mutable.
bool CFBasicHash::IsValid | ( | ) | const |
Definition at line 8 of file CFBasicHash.cpp.
References LLDB_INVALID_ADDRESS, m_address, m_ht_32, m_ht_64, and m_ptr_size.
Referenced by GetCount(), GetKeyPointer(), GetPointerCount(), and GetValuePointer().
bool CFBasicHash::Update | ( | lldb::addr_t | addr, |
ExecutionContextRef | exe_ctx_rf | ||
) |
Definition at line 20 of file CFBasicHash.cpp.
References lldb_private::ExecutionContextRef::GetTargetSP(), LLDB_INVALID_ADDRESS, m_address, m_byte_order, m_exe_ctx_ref, m_ht_32, m_ht_64, m_ptr_size, and UpdateFor().
Referenced by lldb_private::formatters::NSDictionarySummaryProvider(), and lldb_private::formatters::NSSetSummaryProvider().
|
private |
Definition at line 41 of file CFBasicHash.cpp.
References error(), lldb_private::Address::GetLoadAddress(), GetPointerCount(), lldb_private::ExecutionContextRef::GetProcessSP(), lldb_private::ExecutionContextRef::GetTargetSP(), lldb_private::endian::InlHostByteOrder(), m_address, m_byte_order, m_exe_ctx_ref, m_multi, m_mutable, and m_type.
Referenced by Update().
|
private |
Definition at line 65 of file CFBasicHash.h.
Referenced by IsValid(), Update(), and UpdateFor().
|
private |
Definition at line 64 of file CFBasicHash.h.
Referenced by Update(), and UpdateFor().
|
private |
Definition at line 68 of file CFBasicHash.h.
Referenced by Update(), and UpdateFor().
|
private |
Definition at line 66 of file CFBasicHash.h.
Referenced by GetCount(), GetKeyPointer(), GetValuePointer(), IsValid(), and Update().
|
private |
Definition at line 67 of file CFBasicHash.h.
Referenced by GetCount(), GetKeyPointer(), GetValuePointer(), IsValid(), and Update().
|
private |
Definition at line 70 of file CFBasicHash.h.
Referenced by GetCount(), GetPointerCount(), IsMultiVariant(), and UpdateFor().
|
private |
Definition at line 69 of file CFBasicHash.h.
Referenced by IsMutable(), and UpdateFor().
|
private |
Definition at line 63 of file CFBasicHash.h.
Referenced by GetCount(), GetKeyPointer(), GetValuePointer(), IsValid(), and Update().
|
private |
Definition at line 71 of file CFBasicHash.h.
Referenced by GetPointerCount(), GetType(), and UpdateFor().