LLDB  mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::StructuredData::Object Class Referenceabstract

#include <StructuredData.h>

Inheritance diagram for lldb_private::StructuredData::Object:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::StructuredData::Object:
Collaboration graph
[legend]

Public Member Functions

 Object (lldb::StructuredDataType t=lldb::eStructuredDataTypeInvalid)
 
virtual ~Object ()=default
 
virtual bool IsValid () const
 
virtual void Clear ()
 
lldb::StructuredDataType GetType () const
 
void SetType (lldb::StructuredDataType t)
 
ArrayGetAsArray ()
 
DictionaryGetAsDictionary ()
 
IntegerGetAsInteger ()
 
uint64_t GetIntegerValue (uint64_t fail_value=0)
 
FloatGetAsFloat ()
 
double GetFloatValue (double fail_value=0.0)
 
BooleanGetAsBoolean ()
 
bool GetBooleanValue (bool fail_value=false)
 
StringGetAsString ()
 
llvm::StringRef GetStringValue (const char *fail_value=nullptr)
 
GenericGetAsGeneric ()
 
ObjectSP GetObjectForDotSeparatedPath (llvm::StringRef path)
 
void DumpToStdout (bool pretty_print=true) const
 
virtual void Serialize (llvm::json::OStream &s) const =0
 
void Dump (lldb_private::Stream &s, bool pretty_print=true) const
 

Private Attributes

lldb::StructuredDataType m_type
 

Detailed Description

Definition at line 70 of file StructuredData.h.

Constructor & Destructor Documentation

◆ Object()

lldb_private::StructuredData::Object::Object ( lldb::StructuredDataType  t = lldb::eStructuredDataTypeInvalid)
inline

Definition at line 72 of file StructuredData.h.

References ~Object().

◆ ~Object()

virtual lldb_private::StructuredData::Object::~Object ( )
virtualdefault

Referenced by Object().

Member Function Documentation

◆ Clear()

virtual void lldb_private::StructuredData::Object::Clear ( )
inlinevirtual

Definition at line 79 of file StructuredData.h.

References lldb::eStructuredDataTypeInvalid, and m_type.

◆ Dump()

void lldb_private::StructuredData::Object::Dump ( lldb_private::Stream s,
bool  pretty_print = true 
) const
inline

◆ DumpToStdout()

void StructuredData::Object::DumpToStdout ( bool  pretty_print = true) const

Definition at line 127 of file StructuredData.cpp.

Referenced by GetAsGeneric(), and DynamicRegisterInfo::SetRegisterInfo().

◆ GetAsArray()

Array* lldb_private::StructuredData::Object::GetAsArray ( )
inline

◆ GetAsBoolean()

Boolean* lldb_private::StructuredData::Object::GetAsBoolean ( )
inline

◆ GetAsDictionary()

Dictionary* lldb_private::StructuredData::Object::GetAsDictionary ( )
inline

◆ GetAsFloat()

Float* lldb_private::StructuredData::Object::GetAsFloat ( )
inline

Definition at line 108 of file StructuredData.h.

References lldb::eStructuredDataTypeFloat, and m_type.

Referenced by GetFloatValue().

◆ GetAsGeneric()

Generic* lldb_private::StructuredData::Object::GetAsGeneric ( )
inline

◆ GetAsInteger()

Integer* lldb_private::StructuredData::Object::GetAsInteger ( )
inline

◆ GetAsString()

String* lldb_private::StructuredData::Object::GetAsString ( )
inline

Definition at line 130 of file StructuredData.h.

References lldb::eStructuredDataTypeString, and m_type.

Referenced by SymbolVendorMacOSX::CreateInstance(), and GetStringValue().

◆ GetBooleanValue()

bool lldb_private::StructuredData::Object::GetBooleanValue ( bool  fail_value = false)
inline

◆ GetFloatValue()

double lldb_private::StructuredData::Object::GetFloatValue ( double  fail_value = 0.0)
inline

◆ GetIntegerValue()

uint64_t lldb_private::StructuredData::Object::GetIntegerValue ( uint64_t  fail_value = 0)
inline

◆ GetObjectForDotSeparatedPath()

StructuredData::ObjectSP StructuredData::Object::GetObjectForDotSeparatedPath ( llvm::StringRef  path)

◆ GetStringValue()

llvm::StringRef lldb_private::StructuredData::Object::GetStringValue ( const char *  fail_value = nullptr)
inline

◆ GetType()

lldb::StructuredDataType lldb_private::StructuredData::Object::GetType ( ) const
inline

Definition at line 81 of file StructuredData.h.

References m_type.

◆ IsValid()

virtual bool lldb_private::StructuredData::Object::IsValid ( ) const
inlinevirtual

◆ Serialize()

virtual void lldb_private::StructuredData::Object::Serialize ( llvm::json::OStream &  s) const
pure virtual

◆ SetType()

void lldb_private::StructuredData::Object::SetType ( lldb::StructuredDataType  t)
inline

Definition at line 83 of file StructuredData.h.

References m_type.

Member Data Documentation

◆ m_type

lldb::StructuredDataType lldb_private::StructuredData::Object::m_type
private

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