LLDB  mainline
Public Member Functions | 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 Dump (Stream &s, bool pretty_print=true) const =0
 

Detailed Description

Definition at line 71 of file StructuredData.h.

Constructor & Destructor Documentation

◆ Object()

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

Definition at line 73 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 80 of file StructuredData.h.

References lldb::eStructuredDataTypeInvalid.

◆ Dump()

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

◆ DumpToStdout()

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

◆ 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 109 of file StructuredData.h.

References lldb::eStructuredDataTypeFloat.

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

◆ 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 82 of file StructuredData.h.

◆ IsValid()

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

◆ SetType()

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

Definition at line 84 of file StructuredData.h.


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