LLDB mainline
Public Member Functions | Protected Attributes | List of all members
lldb_private::StructuredData::Integer Class Reference

#include <StructuredData.h>

Inheritance diagram for lldb_private::StructuredData::Integer:
Inheritance graph
Collaboration diagram for lldb_private::StructuredData::Integer:
Collaboration graph

Public Member Functions

 Integer (uint64_t i=0)
 ~Integer () override=default
void SetValue (uint64_t value)
uint64_t 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 ()
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
virtual void GetDescription (lldb_private::Stream &s) const

Protected Attributes

uint64_t m_value

Detailed Description

Definition at line 293 of file StructuredData.h.

Constructor & Destructor Documentation

◆ Integer()

lldb_private::StructuredData::Integer::Integer ( uint64_t  i = 0)

Definition at line 295 of file StructuredData.h.

◆ ~Integer()

lldb_private::StructuredData::Integer::~Integer ( )

Member Function Documentation

◆ GetDescription()

void StructuredData::Integer::GetDescription ( lldb_private::Stream s) const

Reimplemented from lldb_private::StructuredData::Object.

Definition at line 184 of file StructuredData.cpp.

References lldb_private::Stream::Printf().

◆ GetValue()

uint64_t lldb_private::StructuredData::Integer::GetValue ( )

◆ Serialize()

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

Implements lldb_private::StructuredData::Object.

Definition at line 150 of file StructuredData.cpp.

◆ SetValue()

void lldb_private::StructuredData::Integer::SetValue ( uint64_t  value)

Definition at line 300 of file StructuredData.h.

References m_value.

Member Data Documentation

◆ m_value

uint64_t lldb_private::StructuredData::Integer::m_value

Definition at line 309 of file StructuredData.h.

Referenced by GetValue(), and SetValue().

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