LLDB mainline
lldb_private::Property Class Reference

#include <Property.h>

Public Member Functions

 Property (const PropertyDefinition &definition)
 Property (llvm::StringRef name, llvm::StringRef desc, bool is_global, const lldb::OptionValueSP &value_sp)
llvm::StringRef GetName () const
llvm::StringRef GetDescription () const
const lldb::OptionValueSPGetValue () const
void SetOptionValue (const lldb::OptionValueSP &value_sp)
bool IsValid () const
bool IsGlobal () const
void Dump (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) const
bool DumpQualifiedName (Stream &strm) const
void DumpDescription (CommandInterpreter &interpreter, Stream &strm, uint32_t output_width, bool display_qualified_name) const
void SetValueChangedCallback (std::function< void()> callback)

Protected Attributes

std::string m_name
std::string m_description
lldb::OptionValueSP m_value_sp
bool m_is_global

Detailed Description

Definition at line 35 of file Property.h.

Constructor & Destructor Documentation

◆ Property() [1/2]

◆ Property() [2/2]

Property::Property ( llvm::StringRef name,
llvm::StringRef desc,
bool is_global,
const lldb::OptionValueSP & value_sp )

Definition at line 232 of file Property.cpp.

References m_description, m_is_global, m_name, and m_value_sp.

Member Function Documentation

◆ Dump()

◆ DumpDescription()

◆ DumpQualifiedName()

bool Property::DumpQualifiedName ( Stream & strm) const

Definition at line 237 of file Property.cpp.

References m_name, m_value_sp, and lldb_private::Stream::PutChar().

Referenced by Dump(), and DumpDescription().

◆ GetDescription()

llvm::StringRef lldb_private::Property::GetDescription ( ) const
inline

Definition at line 43 of file Property.h.

References m_description.

Referenced by Dump(), and DumpDescription().

◆ GetName()

llvm::StringRef lldb_private::Property::GetName ( ) const
inline

Definition at line 42 of file Property.h.

References m_name.

◆ GetValue()

◆ IsGlobal()

bool lldb_private::Property::IsGlobal ( ) const
inline

Definition at line 53 of file Property.h.

References m_is_global.

◆ IsValid()

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

Definition at line 51 of file Property.h.

References m_value_sp.

Referenced by lldb_private::OptionValueProperties::Initialize().

◆ SetOptionValue()

void lldb_private::Property::SetOptionValue ( const lldb::OptionValueSP & value_sp)
inline

Definition at line 47 of file Property.h.

References m_value_sp.

◆ SetValueChangedCallback()

void Property::SetValueChangedCallback ( std::function< void()> callback)

Definition at line 306 of file Property.cpp.

References m_value_sp.

Member Data Documentation

◆ m_description

std::string lldb_private::Property::m_description
protected

Definition at line 68 of file Property.h.

Referenced by GetDescription(), Property(), and Property().

◆ m_is_global

bool lldb_private::Property::m_is_global
protected

Definition at line 70 of file Property.h.

Referenced by IsGlobal(), Property(), and Property().

◆ m_name

std::string lldb_private::Property::m_name
protected

Definition at line 67 of file Property.h.

Referenced by Dump(), DumpDescription(), DumpQualifiedName(), GetName(), Property(), and Property().

◆ m_value_sp

lldb::OptionValueSP lldb_private::Property::m_value_sp
protected

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