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

#include <StructuredData.h>

Inheritance diagram for lldb_private::StructuredData::Float:
Inheritance graph
[legend]

Public Member Functions

 Float (double d=0.0)
 
 ~Float () override=default
 
void SetValue (double value)
 
double 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
 
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

double m_value
 

Detailed Description

Definition at line 328 of file StructuredData.h.

Constructor & Destructor Documentation

◆ Float()

lldb_private::StructuredData::Float::Float ( double  d = 0.0)
inline

Definition at line 330 of file StructuredData.h.

◆ ~Float()

lldb_private::StructuredData::Float::~Float ( )
overridedefault

Member Function Documentation

◆ GetDescription()

void StructuredData::Float::GetDescription ( lldb_private::Stream s) const
overridevirtual

Reimplemented from lldb_private::StructuredData::Object.

Definition at line 191 of file StructuredData.cpp.

References lldb_private::Stream::Printf().

◆ GetValue()

double lldb_private::StructuredData::Float::GetValue ( )
inline

Definition at line 337 of file StructuredData.h.

References m_value.

Referenced by lldb_private::StructuredData::Object::GetFloatValue().

◆ Serialize()

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

Implements lldb_private::StructuredData::Object.

Definition at line 151 of file StructuredData.cpp.

◆ SetValue()

void lldb_private::StructuredData::Float::SetValue ( double  value)
inline

Definition at line 335 of file StructuredData.h.

References m_value.

Member Data Documentation

◆ m_value

double lldb_private::StructuredData::Float::m_value
protected

Definition at line 344 of file StructuredData.h.

Referenced by GetValue(), and SetValue().


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