LLDB mainline
|
#include <OptionValueDictionary.h>
Protected Attributes | |
uint32_t | m_type_mask |
OptionEnumValues | m_enum_values |
llvm::StringMap< lldb::OptionValueSP > | m_values |
bool | m_raw_value_dump |
Protected Attributes inherited from lldb_private::OptionValue | |
lldb::OptionValueWP | m_parent_wp |
std::function< void()> | m_callback |
bool | m_value_was_set = false |
Definition at line 19 of file OptionValueDictionary.h.
|
inline |
Definition at line 22 of file OptionValueDictionary.h.
|
overridedefault |
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 43 of file OptionValueDictionary.h.
References lldb_private::OptionValue::m_value_was_set, and m_values.
Referenced by SetArgs().
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 336 of file OptionValueDictionary.cpp.
References lldb_private::OptionValue::DeepCopy(), and lldbassert.
bool OptionValueDictionary::DeleteValueForKey | ( | llvm::StringRef | key | ) |
Definition at line 326 of file OptionValueDictionary.cpp.
References m_values.
Referenced by SetArgs().
|
overridevirtual |
Implements lldb_private::OptionValue.
Definition at line 21 of file OptionValueDictionary.cpp.
References lldb_private::OptionValue::ConvertTypeMaskToType(), lldb_private::OptionValue::DumpValue(), lldb_private::OptionValue::eDumpOptionCommand, lldb_private::OptionValue::eDumpOptionRaw, lldb_private::OptionValue::eDumpOptionType, lldb_private::OptionValue::eDumpOptionValue, lldb_private::Stream::EOL(), lldb_private::OptionValue::eTypeArray, lldb_private::OptionValue::eTypeBoolean, lldb_private::OptionValue::eTypeChar, lldb_private::OptionValue::eTypeDictionary, lldb_private::OptionValue::eTypeEnum, lldb_private::OptionValue::eTypeFileLineColumn, lldb_private::OptionValue::eTypeFileSpec, lldb_private::OptionValue::eTypeFileSpecList, lldb_private::OptionValue::eTypeFormat, lldb_private::OptionValue::eTypeInvalid, lldb_private::OptionValue::eTypePathMap, lldb_private::OptionValue::eTypeProperties, lldb_private::OptionValue::eTypeSInt64, lldb_private::OptionValue::eTypeString, lldb_private::OptionValue::eTypeUInt64, lldb_private::OptionValue::eTypeUUID, lldb_private::OptionValue::GetBuiltinTypeAsCString(), lldb_private::OptionValue::GetTypeAsCString(), lldb_private::Stream::Indent(), lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), m_raw_value_dump, m_type_mask, m_values, lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), and lldb_private::Stream::PutCString().
size_t OptionValueDictionary::GetArgs | ( | Args & | args | ) | const |
Definition at line 99 of file OptionValueDictionary.cpp.
References lldb_private::Args::AppendArgument(), lldb_private::Args::Clear(), lldb_private::OptionValue::eDumpOptionRaw, lldb_private::OptionValue::eDumpOptionValue, lldb_private::Args::GetArgumentCount(), lldb_private::StreamString::GetString(), m_values, and lldb_private::Stream::Printf().
Referenced by lldb_private::OptionValueProperties::GetPropertyAtIndexAsArgs().
|
inline |
Definition at line 59 of file OptionValueDictionary.h.
References m_values.
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 236 of file OptionValueDictionary.cpp.
References error(), lldb_private::OptionValue::GetTypeAsCString(), and GetValueForKey().
Referenced by SetSubValue().
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 32 of file OptionValueDictionary.h.
References lldb_private::OptionValue::eTypeDictionary.
lldb::OptionValueSP OptionValueDictionary::GetValueForKey | ( | llvm::StringRef | key | ) | const |
Definition at line 301 of file OptionValueDictionary.cpp.
References m_values.
Referenced by GetSubValue(), EmulationStateARM::LoadRegistersStateFromDictionary(), EmulationStateARM::LoadStateFromDictionary(), lldb_private::EmulateInstructionARM::TestEmulation(), and lldb_private::Instruction::TestEmulation().
|
inlineoverridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 51 of file OptionValueDictionary.h.
|
inline |
Definition at line 53 of file OptionValueDictionary.h.
References lldb_private::OptionValue::ConvertTypeMaskToType(), lldb_private::OptionValue::eTypeInvalid, and m_type_mask.
Status OptionValueDictionary::SetArgs | ( | const Args & | args, |
VarSetOperationType | op | ||
) |
Definition at line 110 of file OptionValueDictionary.cpp.
References Clear(), lldb_private::OptionValue::CreateValueFromCStringForTypeMask(), DeleteValueForKey(), error(), lldb_private::OptionValue::eTypeEnum, lldb_private::eVarSetOperationAppend, lldb_private::eVarSetOperationAssign, lldb_private::eVarSetOperationClear, lldb_private::eVarSetOperationInsertAfter, lldb_private::eVarSetOperationInsertBefore, lldb_private::eVarSetOperationInvalid, lldb_private::eVarSetOperationRemove, lldb_private::eVarSetOperationReplace, lldb_private::Args::GetArgumentCount(), m_enum_values, m_type_mask, lldb_private::OptionValue::m_value_was_set, SetValueForKey(), and lldb_private::OptionValue::SetValueFromString().
Referenced by lldb_private::OptionValueProperties::SetPropertyAtIndexFromArgs(), and SetValueFromString().
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 285 of file OptionValueDictionary.cpp.
References error(), and GetSubValue().
bool OptionValueDictionary::SetValueForKey | ( | llvm::StringRef | key, |
const lldb::OptionValueSP & | value_sp, | ||
bool | can_replace = true |
||
) |
Definition at line 309 of file OptionValueDictionary.cpp.
References m_type_mask, and m_values.
Referenced by SetArgs().
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 226 of file OptionValueDictionary.cpp.
References error(), lldb_private::OptionValue::NotifyValueChanged(), and SetArgs().
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 91 of file OptionValueDictionary.cpp.
References m_values.
|
protected |
Definition at line 81 of file OptionValueDictionary.h.
Referenced by SetArgs().
|
protected |
Definition at line 83 of file OptionValueDictionary.h.
Referenced by DumpValue().
|
protected |
Definition at line 80 of file OptionValueDictionary.h.
Referenced by DumpValue(), IsHomogenous(), SetArgs(), and SetValueForKey().
|
protected |
Definition at line 82 of file OptionValueDictionary.h.
Referenced by Clear(), DeleteValueForKey(), DumpValue(), GetArgs(), GetNumValues(), GetValueForKey(), SetValueForKey(), and ToJSON().