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

#include <StructuredDataImpl.h>

Collaboration diagram for lldb_private::StructuredDataImpl:
Collaboration graph
[legend]

Public Member Functions

 StructuredDataImpl ()
 
 StructuredDataImpl (const StructuredDataImpl &rhs)=default
 
 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
 
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
 

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/3]

lldb_private::StructuredDataImpl::StructuredDataImpl ( )
inline

Definition at line 28 of file StructuredDataImpl.h.

◆ StructuredDataImpl() [2/3]

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

◆ StructuredDataImpl() [3/3]

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

Definition at line 32 of file StructuredDataImpl.h.

References operator=(), and ~StructuredDataImpl().

◆ ~StructuredDataImpl()

lldb_private::StructuredDataImpl::~StructuredDataImpl ( )
default

Referenced by StructuredDataImpl().

Member Function Documentation

◆ Clear()

void lldb_private::StructuredDataImpl::Clear ( )
inline

Definition at line 44 of file StructuredDataImpl.h.

References m_data_sp, and m_plugin_wp.

◆ GetAsJSON()

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

◆ GetBooleanValue()

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

Definition at line 132 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetDescription()

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

◆ GetFloatValue()

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

Definition at line 128 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetIntegerValue()

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

Definition at line 124 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetItemAtIndex()

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

Definition at line 115 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetObjectSP()

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

◆ 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 136 of file StructuredDataImpl.h.

References m_data_sp.

◆ GetType()

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

Definition at line 87 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 106 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

Referenced by StructuredDataImpl().

◆ 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 152 of file StructuredDataImpl.h.

Referenced by Clear(), and GetDescription().


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