LLDB mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::StructuredDataImpl Class Reference

#include <StructuredDataImpl.h>

Public Member Functions

 StructuredDataImpl ()=default
 
 StructuredDataImpl (const StructuredDataImpl &rhs)=default
 
 StructuredDataImpl (StructuredData::ObjectSP obj)
 
 StructuredDataImpl (const lldb::EventSP &event_sp)
 
 ~StructuredDataImpl ()=default
 
StructuredDataImploperator= (const StructuredDataImpl &rhs)=default
 
bool IsValid () const
 
void Clear ()
 
Status GetAsJSON (Stream &stream) const
 
Status GetDescription (Stream &stream) const
 
StructuredData::ObjectSP GetObjectSP ()
 
void SetObjectSP (const StructuredData::ObjectSP &obj)
 
lldb::StructuredDataType GetType () const
 
size_t GetSize () const
 
StructuredData::ObjectSP GetValueForKey (const char *key) const
 
StructuredData::ObjectSP GetItemAtIndex (size_t idx) const
 
uint64_t GetIntegerValue (uint64_t fail_value=0) const
 
int64_t GetIntegerValue (int64_t fail_value=0) const
 
double GetFloatValue (double fail_value=0.0) const
 
bool GetBooleanValue (bool fail_value=false) const
 
size_t GetStringValue (char *dst, size_t dst_len) const
 
void * GetGenericValue () const
 
StructuredData::ObjectSP GetObjectSP () const
 

Private Attributes

lldb::StructuredDataPluginWP m_plugin_wp
 
StructuredData::ObjectSP m_data_sp
 

Detailed Description

Definition at line 26 of file StructuredDataImpl.h.

Constructor & Destructor Documentation

◆ StructuredDataImpl() [1/4]

lldb_private::StructuredDataImpl::StructuredDataImpl ( )
default

◆ StructuredDataImpl() [2/4]

lldb_private::StructuredDataImpl::StructuredDataImpl ( const StructuredDataImpl rhs)
default

◆ StructuredDataImpl() [3/4]

lldb_private::StructuredDataImpl::StructuredDataImpl ( StructuredData::ObjectSP  obj)
inline

Definition at line 32 of file StructuredDataImpl.h.

◆ StructuredDataImpl() [4/4]

lldb_private::StructuredDataImpl::StructuredDataImpl ( const lldb::EventSP event_sp)
inline

Definition at line 35 of file StructuredDataImpl.h.

◆ ~StructuredDataImpl()

lldb_private::StructuredDataImpl::~StructuredDataImpl ( )
default

Member Function Documentation

◆ Clear()

void lldb_private::StructuredDataImpl::Clear ( )
inline

Definition at line 47 of file StructuredDataImpl.h.

References m_data_sp, and m_plugin_wp.

◆ GetAsJSON()

Status lldb_private::StructuredDataImpl::GetAsJSON ( Stream stream) const
inline

Definition at line 52 of file StructuredDataImpl.h.

References lldb_private::Stream::AsRawOstream(), error(), and m_data_sp.

◆ GetBooleanValue()

bool lldb_private::StructuredDataImpl::GetBooleanValue ( bool  fail_value = false) const
inline

Definition at line 145 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetDescription()

Status lldb_private::StructuredDataImpl::GetDescription ( Stream stream) const
inline

Definition at line 65 of file StructuredDataImpl.h.

References error(), m_data_sp, and m_plugin_wp.

◆ GetFloatValue()

double lldb_private::StructuredDataImpl::GetFloatValue ( double  fail_value = 0.0) const
inline

Definition at line 141 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetGenericValue()

void * lldb_private::StructuredDataImpl::GetGenericValue ( ) const
inline

◆ GetIntegerValue() [1/2]

int64_t lldb_private::StructuredDataImpl::GetIntegerValue ( int64_t  fail_value = 0) const
inline

Definition at line 136 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetIntegerValue() [2/2]

uint64_t lldb_private::StructuredDataImpl::GetIntegerValue ( uint64_t  fail_value = 0) const
inline

Definition at line 131 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetItemAtIndex()

StructuredData::ObjectSP lldb_private::StructuredDataImpl::GetItemAtIndex ( size_t  idx) const
inline

Definition at line 122 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetObjectSP() [1/2]

StructuredData::ObjectSP lldb_private::StructuredDataImpl::GetObjectSP ( )
inline

◆ GetObjectSP() [2/2]

StructuredData::ObjectSP lldb_private::StructuredDataImpl::GetObjectSP ( ) const
inline

Definition at line 175 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetSize()

size_t lldb_private::StructuredDataImpl::GetSize ( ) const
inline

◆ GetStringValue()

size_t lldb_private::StructuredDataImpl::GetStringValue ( char *  dst,
size_t  dst_len 
) const
inline

Definition at line 149 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetType()

lldb::StructuredDataType lldb_private::StructuredDataImpl::GetType ( ) const
inline

Definition at line 94 of file StructuredDataImpl.h.

References lldb::eStructuredDataTypeInvalid, and m_data_sp.

◆ GetValueForKey()

StructuredData::ObjectSP lldb_private::StructuredDataImpl::GetValueForKey ( const char *  key) const
inline

Definition at line 113 of file StructuredDataImpl.h.

References m_data_sp.

◆ IsValid()

bool lldb_private::StructuredDataImpl::IsValid ( ) const
inline

◆ operator=()

StructuredDataImpl & lldb_private::StructuredDataImpl::operator= ( const StructuredDataImpl rhs)
default

◆ SetObjectSP()

void lldb_private::StructuredDataImpl::SetObjectSP ( const StructuredData::ObjectSP obj)
inline

Member Data Documentation

◆ m_data_sp

StructuredData::ObjectSP lldb_private::StructuredDataImpl::m_data_sp
private

◆ m_plugin_wp

lldb::StructuredDataPluginWP lldb_private::StructuredDataImpl::m_plugin_wp
private

Definition at line 178 of file StructuredDataImpl.h.

Referenced by Clear(), and GetDescription().


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