LLDB mainline
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
MapIterator Class Reference

Public Member Functions

 MapIterator ()=default
 
 MapIterator (MapEntry entry, size_t depth=0)
 
 MapIterator (ValueObjectSP entry, size_t depth=0)
 
 MapIterator (const MapIterator &rhs)
 
 MapIterator (ValueObject *entry, size_t depth=0)
 
MapIteratoroperator= (const MapIterator &)=default
 
ValueObjectSP value ()
 
ValueObjectSP advance (size_t count)
 

Protected Member Functions

void next ()
 

Private Member Functions

MapEntry tree_min (MapEntry x)
 
bool is_left_child (const MapEntry &x)
 

Private Attributes

MapEntry m_entry
 
size_t m_max_depth = 0
 
bool m_error = false
 

Detailed Description

Definition at line 84 of file LibCxxMap.cpp.

Constructor & Destructor Documentation

◆ MapIterator() [1/5]

MapIterator::MapIterator ( )
default

◆ MapIterator() [2/5]

MapIterator::MapIterator ( MapEntry  entry,
size_t  depth = 0 
)
inline

Definition at line 87 of file LibCxxMap.cpp.

◆ MapIterator() [3/5]

MapIterator::MapIterator ( ValueObjectSP  entry,
size_t  depth = 0 
)
inline

Definition at line 89 of file LibCxxMap.cpp.

◆ MapIterator() [4/5]

MapIterator::MapIterator ( const MapIterator rhs)
inline

Definition at line 91 of file LibCxxMap.cpp.

◆ MapIterator() [5/5]

MapIterator::MapIterator ( ValueObject entry,
size_t  depth = 0 
)
inline

Definition at line 93 of file LibCxxMap.cpp.

Member Function Documentation

◆ advance()

ValueObjectSP MapIterator::advance ( size_t  count)
inline

◆ is_left_child()

bool MapIterator::is_left_child ( const MapEntry x)
inlineprivate

◆ next()

void MapIterator::next ( )
inlineprotected

◆ operator=()

MapIterator & MapIterator::operator= ( const MapIterator )
default

◆ tree_min()

MapEntry MapIterator::tree_min ( MapEntry  x)
inlineprivate

Definition at line 140 of file LibCxxMap.cpp.

References MapEntry::error(), MapEntry::left(), m_error, m_max_depth, MapEntry::null(), and MapEntry::SetEntry().

Referenced by next().

◆ value()

ValueObjectSP MapIterator::value ( )
inline

Definition at line 98 of file LibCxxMap.cpp.

References MapEntry::GetEntry(), and m_entry.

Member Data Documentation

◆ m_entry

MapEntry MapIterator::m_entry
private

Definition at line 167 of file LibCxxMap.cpp.

Referenced by advance(), next(), and value().

◆ m_error

bool MapIterator::m_error = false
private

Definition at line 169 of file LibCxxMap.cpp.

Referenced by advance(), next(), and tree_min().

◆ m_max_depth

size_t MapIterator::m_max_depth = 0
private

Definition at line 168 of file LibCxxMap.cpp.

Referenced by advance(), next(), and tree_min().


The documentation for this class was generated from the following file: