LLDB mainline
|
Public Member Functions | |
MapIterator (ValueObject *entry, size_t depth=0) | |
MapIterator ()=default | |
ValueObjectSP | value () |
ValueObjectSP | advance (size_t count) |
Private Member Functions | |
void | next () |
Mimicks libc++'s __tree_next algorithm, which libc++ uses in its __tree_iteartor::operator++. | |
MapEntry | tree_min (MapEntry x) |
Mimicks libc++'s __tree_min algorithm. | |
bool | is_left_child (const MapEntry &x) |
Private Attributes | |
MapEntry | m_entry |
size_t | m_max_depth = 0 |
bool | m_error = false |
Definition at line 103 of file LibCxxMap.cpp.
|
inline |
Definition at line 105 of file LibCxxMap.cpp.
|
default |
|
inline |
Definition at line 112 of file LibCxxMap.cpp.
References MapEntry::GetEntry(), m_entry, m_error, m_max_depth, next(), and MapEntry::null().
Referenced by lldb_private::formatters::LibcxxStdMapSyntheticFrontEnd::GetKeyValuePair().
|
inlineprivate |
Definition at line 173 of file LibCxxMap.cpp.
References MapEntry::left(), MapEntry::null(), MapEntry::parent(), MapEntry::SetEntry(), and MapEntry::value().
Referenced by next().
|
inlineprivate |
Mimicks libc++'s __tree_next algorithm, which libc++ uses in its __tree_iteartor::operator++.
Definition at line 129 of file LibCxxMap.cpp.
References MapEntry::error(), is_left_child(), m_entry, m_error, m_max_depth, MapEntry::null(), MapEntry::parent(), MapEntry::right(), MapEntry::SetEntry(), and tree_min().
Referenced by advance().
Mimicks libc++'s __tree_min algorithm.
Definition at line 154 of file LibCxxMap.cpp.
References MapEntry::error(), MapEntry::left(), m_error, m_max_depth, MapEntry::null(), and MapEntry::SetEntry().
Referenced by next().
|
inline |
Definition at line 110 of file LibCxxMap.cpp.
References MapEntry::GetEntry(), and m_entry.
|
private |
Definition at line 181 of file LibCxxMap.cpp.
|
private |
Definition at line 183 of file LibCxxMap.cpp.
Referenced by advance(), next(), and tree_min().
|
private |
Definition at line 182 of file LibCxxMap.cpp.
Referenced by advance(), next(), and tree_min().