LLDB mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd Class Reference
Inheritance diagram for lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd:
Inheritance graph
[legend]

Public Member Functions

 LibcxxStdUnorderedMapSyntheticFrontEnd (lldb::ValueObjectSP valobj_sp)
 
 ~LibcxxStdUnorderedMapSyntheticFrontEnd () override=default
 
size_t CalculateNumChildren () override
 
lldb::ValueObjectSP GetChildAtIndex (size_t idx) override
 
lldb::ChildCacheState Update () override
 This function is assumed to always succeed and if it fails, the front-end should know to deal with it in the correct way (most probably, by refusing to return any children).
 
bool MightHaveChildren () override
 
size_t GetIndexOfChildWithName (ConstString name) override
 
- Public Member Functions inherited from lldb_private::SyntheticChildrenFrontEnd
 SyntheticChildrenFrontEnd (ValueObject &backend)
 
virtual ~SyntheticChildrenFrontEnd ()=default
 
virtual size_t CalculateNumChildren ()=0
 
virtual size_t CalculateNumChildren (uint32_t max)
 
virtual lldb::ValueObjectSP GetChildAtIndex (size_t idx)=0
 
virtual size_t GetIndexOfChildWithName (ConstString name)=0
 
virtual lldb::ChildCacheState Update ()=0
 This function is assumed to always succeed and if it fails, the front-end should know to deal with it in the correct way (most probably, by refusing to return any children).
 
virtual bool MightHaveChildren ()=0
 
virtual lldb::ValueObjectSP GetSyntheticValue ()
 
virtual ConstString GetSyntheticTypeName ()
 

Private Attributes

CompilerType m_element_type
 
CompilerType m_node_type
 
ValueObjectm_tree = nullptr
 
size_t m_num_elements = 0
 
ValueObjectm_next_element = nullptr
 
std::vector< std::pair< ValueObject *, uint64_t > > m_elements_cache
 

Additional Inherited Members

- Public Types inherited from lldb_private::SyntheticChildrenFrontEnd
typedef std::shared_ptr< SyntheticChildrenFrontEndSharedPointer
 
typedef std::unique_ptr< SyntheticChildrenFrontEndAutoPointer
 
- Protected Member Functions inherited from lldb_private::SyntheticChildrenFrontEnd
void SetValid (bool valid)
 
bool IsValid ()
 
lldb::ValueObjectSP CreateValueObjectFromExpression (llvm::StringRef name, llvm::StringRef expression, const ExecutionContext &exe_ctx)
 
lldb::ValueObjectSP CreateValueObjectFromAddress (llvm::StringRef name, uint64_t address, const ExecutionContext &exe_ctx, CompilerType type)
 
lldb::ValueObjectSP CreateValueObjectFromData (llvm::StringRef name, const DataExtractor &data, const ExecutionContext &exe_ctx, CompilerType type)
 
- Protected Attributes inherited from lldb_private::SyntheticChildrenFrontEnd
ValueObjectm_backend
 

Detailed Description

Definition at line 29 of file LibCxxUnorderedMap.cpp.

Constructor & Destructor Documentation

◆ LibcxxStdUnorderedMapSyntheticFrontEnd()

lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::LibcxxStdUnorderedMapSyntheticFrontEnd ( lldb::ValueObjectSP  valobj_sp)

Definition at line 57 of file LibCxxUnorderedMap.cpp.

References Update().

◆ ~LibcxxStdUnorderedMapSyntheticFrontEnd()

lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::~LibcxxStdUnorderedMapSyntheticFrontEnd ( )
overridedefault

Member Function Documentation

◆ CalculateNumChildren()

size_t lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::CalculateNumChildren ( )
overridevirtual

Implements lldb_private::SyntheticChildrenFrontEnd.

Definition at line 65 of file LibCxxUnorderedMap.cpp.

◆ GetChildAtIndex()

lldb::ValueObjectSP lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::GetChildAtIndex ( size_t  idx)
overridevirtual

◆ GetIndexOfChildWithName()

size_t lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::GetIndexOfChildWithName ( ConstString  name)
overridevirtual

◆ MightHaveChildren()

bool lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::MightHaveChildren ( )
overridevirtual

Implements lldb_private::SyntheticChildrenFrontEnd.

Definition at line 233 of file LibCxxUnorderedMap.cpp.

◆ Update()

lldb::ChildCacheState lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::Update ( )
overridevirtual

This function is assumed to always succeed and if it fails, the front-end should know to deal with it in the correct way (most probably, by refusing to return any children).

The return value of Update should actually be interpreted as "ValueObjectSyntheticFilter cache is good/bad". If this function returns lldb::ChildCacheState::eReuse, ValueObjectSyntheticFilter is allowed to use the children it fetched previously and cached. Otherwise, ValueObjectSyntheticFilter must throw away its cache, and query again for children.

Implements lldb_private::SyntheticChildrenFrontEnd.

Definition at line 197 of file LibCxxUnorderedMap.cpp.

References lldb::eRefetch, and lldb_private::formatters::GetFirstValueOfLibCXXCompressedPair().

Referenced by LibcxxStdUnorderedMapSyntheticFrontEnd().

Member Data Documentation

◆ m_element_type

CompilerType lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::m_element_type
private

Definition at line 47 of file LibCxxUnorderedMap.cpp.

◆ m_elements_cache

std::vector<std::pair<ValueObject *, uint64_t> > lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::m_elements_cache
private

Definition at line 52 of file LibCxxUnorderedMap.cpp.

◆ m_next_element

ValueObject* lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::m_next_element = nullptr
private

Definition at line 51 of file LibCxxUnorderedMap.cpp.

◆ m_node_type

CompilerType lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::m_node_type
private

Definition at line 48 of file LibCxxUnorderedMap.cpp.

◆ m_num_elements

size_t lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::m_num_elements = 0
private

Definition at line 50 of file LibCxxUnorderedMap.cpp.

◆ m_tree

ValueObject* lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd::m_tree = nullptr
private

Definition at line 49 of file LibCxxUnorderedMap.cpp.


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