30 return cast_valobj_ptr->
GetSP();
49 return children_count;
50 return *children_count <= max ? *children_count : max;
Generic representation of a type in a programming language.
llvm::Expected< uint32_t > GetNumChildren(bool omit_empty_base_classes, const ExecutionContext *exe_ctx) const
A uniqued constant string class.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
void Clear()
Clear the object state.
bool Fail() const
Test for error condition.
bool Success() const
Test for success condition.
A ValueObject that represents a given value represented as a different type.
CompilerType GetCompilerTypeImpl() override
llvm::Expected< uint32_t > CalculateNumChildren(uint32_t max) override
Should only be called by ValueObject::GetNumChildren().
bool IsInScope() override
static lldb::ValueObjectSP Create(ValueObject &parent, ConstString name, const CompilerType &cast_type)
std::optional< uint64_t > GetByteSize() override
ValueObjectCast(ValueObject &parent, ConstString name, const CompilerType &cast_type)
bool UpdateValue() override
~ValueObjectCast() override
lldb::ValueType GetValueType() const override
void SetValueIsValid(bool valid)
EvaluationPoint m_update_point
Stores both the stop id and the full context at which this value was last updated.
CompilerType GetCompilerType()
lldb::ValueObjectSP GetSP()
Status m_error
An error object that can describe any errors that occur when updating values.
DataExtractor m_data
A data extractor that can be used to extract the value.
virtual lldb::ValueType GetValueType() const =0
void SetValueDidChange(bool value_changed)
virtual lldb::ModuleSP GetModule()
Return the module associated with this value object in case the value is from an executable file and ...
ValueObject * m_parent
The parent value object, or nullptr if this has no parent.
bool UpdateValueIfNeeded(bool update_format=true)
void SetName(ConstString name)
Change the name of the current ValueObject.
AddressType GetAddressTypeOfChildren()
const Status & GetError()
const ExecutionContextRef & GetExecutionContextRef() const
virtual bool CanProvideValue()
const Value & GetValue() const
void SetAddressTypeOfChildren(AddressType at)
const Scalar & GetScalar() const
Status GetValueAsData(ExecutionContext *exe_ctx, DataExtractor &data, Module *module)
ValueType GetValueType() const
void SetCompilerType(const CompilerType &compiler_type)
uint64_t GetValueByteSize(Status *error_ptr, ExecutionContext *exe_ctx)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP