LLDB mainline
lldb_private::StructuredData::Boolean Class Reference

#include <StructuredData.h>

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

Public Member Functions

 Boolean (bool b=false)
 ~Boolean () override=default
void SetValue (bool value)
bool GetValue ()
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 bool IsValid () const
virtual void Clear ()
lldb::StructuredDataType GetType () const
void SetType (lldb::StructuredDataType t)
ArrayGetAsArray ()
DictionaryGetAsDictionary ()
UnsignedIntegerGetAsUnsignedInteger ()
SignedIntegerGetAsSignedInteger ()
uint64_t GetUnsignedIntegerValue (uint64_t fail_value=0)
int64_t GetSignedIntegerValue (int64_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
void Dump (lldb_private::Stream &s, bool pretty_print=true) const

Protected Attributes

bool m_value

Detailed Description

Definition at line 347 of file StructuredData.h.

Constructor & Destructor Documentation

◆ Boolean()

lldb_private::StructuredData::Boolean::Boolean ( bool b = false)
inline

Definition at line 349 of file StructuredData.h.

References m_value, and lldb_private::StructuredData::Object::Object().

◆ ~Boolean()

lldb_private::StructuredData::Boolean::~Boolean ( )
overridedefault

Member Function Documentation

◆ GetDescription()

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

Reimplemented from lldb_private::StructuredData::Object.

Definition at line 195 of file StructuredData.cpp.

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

◆ GetValue()

◆ Serialize()

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

Implements lldb_private::StructuredData::Object.

Definition at line 155 of file StructuredData.cpp.

References m_value.

◆ SetValue()

void lldb_private::StructuredData::Boolean::SetValue ( bool value)
inline

Definition at line 354 of file StructuredData.h.

References m_value.

Member Data Documentation

◆ m_value

bool lldb_private::StructuredData::Boolean::m_value
protected

Definition at line 363 of file StructuredData.h.

Referenced by Boolean(), GetDescription(), GetValue(), Serialize(), and SetValue().


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