LLDB mainline
lldb_private::StructuredData::Generic Class Reference

#include <StructuredData.h>

Inheritance diagram for lldb_private::StructuredData::Generic:
[legend]

Public Member Functions

 Generic (void *object=nullptr)
void SetValue (void *value)
void * GetValue () const
bool IsValid () const override
void Serialize (llvm::json::OStream &s) const override
void GetDescription (lldb_private::Stream &s) const override
Public Member Functions inherited from lldb_private::StructuredData::Object
 Object (lldb::StructuredDataType t=lldb::eStructuredDataTypeInvalid)
virtual ~Object ()=default
virtual void Clear ()
lldb::StructuredDataType GetType () const
void SetType (lldb::StructuredDataType t)
Array * GetAsArray ()
Dictionary * GetAsDictionary ()
UnsignedInteger * GetAsUnsignedInteger ()
SignedInteger * GetAsSignedInteger ()
uint64_t GetUnsignedIntegerValue (uint64_t fail_value=0)
int64_t GetSignedIntegerValue (int64_t fail_value=0)
Float * GetAsFloat ()
double GetFloatValue (double fail_value=0.0)
Boolean * GetAsBoolean ()
bool GetBooleanValue (bool fail_value=false)
String * GetAsString ()
llvm::StringRef GetStringValue (const char *fail_value=nullptr)
Generic * GetAsGeneric ()
ObjectSP GetObjectForDotSeparatedPath (llvm::StringRef path)
void DumpToStdout (bool pretty_print=true) const
void Dump (lldb_private::Stream &s, bool pretty_print=true) const

Private Attributes

void * m_object

Detailed Description

Definition at line 575 of file StructuredData.h.

Constructor & Destructor Documentation

◆ Generic()

lldb_private::StructuredData::Generic::Generic ( void * object = nullptr)
inlineexplicit

Member Function Documentation

◆ GetDescription()

void StructuredData::Generic::GetDescription ( lldb_private::Stream & s) const
overridevirtual

Reimplemented from lldb_private::StructuredData::Object.

Definition at line 275 of file StructuredData.cpp.

References m_object, and lldb_private::Stream::Printf().

◆ GetValue()

◆ IsValid()

bool lldb_private::StructuredData::Generic::IsValid ( ) const
inlineoverridevirtual

Reimplemented from lldb_private::StructuredData::Object.

Reimplemented in lldb_private::python::StructuredPythonObject.

Definition at line 584 of file StructuredData.h.

References m_object.

◆ Serialize()

void StructuredData::Generic::Serialize ( llvm::json::OStream & s) const
overridevirtual

Implements lldb_private::StructuredData::Object.

Reimplemented in lldb_private::python::StructuredPythonObject.

Definition at line 178 of file StructuredData.cpp.

References m_object.

◆ SetValue()

void lldb_private::StructuredData::Generic::SetValue ( void * value)
inline

Definition at line 580 of file StructuredData.h.

References m_object.

Member Data Documentation

◆ m_object

void* lldb_private::StructuredData::Generic::m_object
private

Definition at line 591 of file StructuredData.h.

Referenced by Generic(), GetDescription(), GetValue(), IsValid(), Serialize(), and SetValue().


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