19 QueueFrontEnd(ValueObject &valobj) : SyntheticChildrenFrontEnd(valobj) {
23 llvm::Expected<size_t> GetIndexOfChildWithName(ConstString name)
override {
25 return m_container_sp->GetIndexOfChildWithName(name);
26 return llvm::createStringError(
"Type has no child named '%s'",
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;
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 ...
const char * AsCString(const char *value_if_empty=nullptr) const
Get the string value as a C string.
lldb::ValueObjectSP GetSyntheticValue()
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