30 return m_elements.size();
40 std::vector<ValueObject*> m_elements;
53 base_sp = m_backend.GetChildMemberWithName(
"base_");
57 m_base = base_sp.get();
58 m_elements.assign(base_sp->GetCompilerType().GetNumDirectBaseClasses(),
64 if (idx >= m_elements.size())
69 return m_elements[idx]->GetSP();
82 elem_sp->Clone(
ConstString(llvm::formatv(
"[{0}]", idx).str())).get();
85 return m_elements[idx]->GetSP();
93 return new TupleFrontEnd(*valobj_sp);
Generic representation of a type in a programming language.
CompilerType GetDirectBaseClassAtIndex(size_t idx, uint32_t *bit_offset_ptr) const
A uniqued constant string class.
const char * GetCString() const
Get the string value as a C string.
virtual lldb::ValueObjectSP GetChildAtIndex(uint32_t idx)=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...
virtual bool MightHaveChildren()=0
virtual size_t GetIndexOfChildWithName(ConstString name)=0
virtual llvm::Expected< uint32_t > CalculateNumChildren()=0
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