11#include "llvm/Support/ErrorExtras.h"
20 QueueFrontEnd(ValueObject &valobj) : SyntheticChildrenFrontEnd(valobj) {
24 llvm::Expected<size_t> GetIndexOfChildWithName(ConstString name)
override {
26 return m_container_sp->GetIndexOfChildWithName(name);
27 return llvm::createStringErrorV(
"type has no child named '{0}'", name);
33 return m_container_sp ? m_container_sp->GetNumChildren() : 0;
37 return m_container_sp ? m_container_sp->GetChildAtIndex(idx)
47 ValueObject* m_container_sp =
nullptr;
52 m_container_sp =
nullptr;
56 m_container_sp = c_sp->GetSyntheticValue().get();
60SyntheticChildrenFrontEnd *
64 return new QueueFrontEnd(*valobj_sp);
static std::optional< size_t > CalculateNumChildren(CompilerType container_elem_type, uint64_t num_elements, CompilerType element_type)
Calculates the number of elements stored in a container (with element type 'container_elem_type') as ...
virtual lldb::ValueObjectSP GetChildMemberWithName(llvm::StringRef name, bool can_create=true)
A class that represents a running process on the host machine.
ChildCacheState
Specifies if children need to be re-computed after a call to SyntheticChildrenFrontEnd::Update.
@ eRefetch
Children need to be recomputed dynamically.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP