LLDB mainline
|
#include <OptionValueEnumeration.h>
Classes | |
struct | EnumeratorInfo |
Public Types | |
typedef int64_t | enum_type |
typedef UniqueCStringMap< EnumeratorInfo > | EnumerationMap |
typedef EnumerationMap::Entry | EnumerationMapEntry |
Public Types inherited from lldb_private::OptionValue | |
enum | Type { eTypeInvalid = 0 , eTypeArch , eTypeArgs , eTypeArray , eTypeBoolean , eTypeChar , eTypeDictionary , eTypeEnum , eTypeFileLineColumn , eTypeFileSpec , eTypeFileSpecList , eTypeFormat , eTypeLanguage , eTypePathMap , eTypeProperties , eTypeRegex , eTypeSInt64 , eTypeString , eTypeUInt64 , eTypeUUID , eTypeFormatEntity } |
enum | { eDumpOptionName = (1u << 0) , eDumpOptionType = (1u << 1) , eDumpOptionValue = (1u << 2) , eDumpOptionDescription = (1u << 3) , eDumpOptionRaw = (1u << 4) , eDumpOptionCommand = (1u << 5) , eDumpGroupValue = (eDumpOptionName | eDumpOptionType | eDumpOptionValue) , eDumpGroupHelp , eDumpGroupExport = (eDumpOptionCommand | eDumpOptionName | eDumpOptionValue) } |
Protected Member Functions | |
void | SetEnumerations (const OptionEnumValues &enumerators) |
virtual lldb::OptionValueSP | Clone () const =0 |
Protected Attributes | |
enum_type | m_current_value |
enum_type | m_default_value |
EnumerationMap | m_enumerations |
Protected Attributes inherited from lldb_private::OptionValue | |
lldb::OptionValueWP | m_parent_wp |
std::function< void()> | m_callback |
bool | m_value_was_set = false |
Additional Inherited Members | |
Static Public Member Functions inherited from lldb_private::OptionValue | |
static const char * | GetBuiltinTypeAsCString (Type t) |
static uint32_t | ConvertTypeToMask (OptionValue::Type type) |
static OptionValue::Type | ConvertTypeMaskToType (uint32_t type_mask) |
static lldb::OptionValueSP | CreateValueFromCStringForTypeMask (const char *value_cstr, uint32_t type_mask, Status &error) |
Protected Types inherited from lldb_private::OptionValue | |
using | TopmostBase = OptionValue |
Definition at line 22 of file OptionValueEnumeration.h.
typedef int64_t lldb_private::OptionValueEnumeration::enum_type |
Definition at line 25 of file OptionValueEnumeration.h.
Definition at line 30 of file OptionValueEnumeration.h.
typedef EnumerationMap::Entry lldb_private::OptionValueEnumeration::EnumerationMapEntry |
Definition at line 31 of file OptionValueEnumeration.h.
OptionValueEnumeration::OptionValueEnumeration | ( | const OptionEnumValues & | enumerators, |
enum_type | value | ||
) |
Definition at line 16 of file OptionValueEnumeration.cpp.
References SetEnumerations().
|
overridedefault |
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 98 of file OptionValueEnumeration.cpp.
References lldb_private::CompletionRequest::AddCompletion(), lldb_private::UniqueCStringMap< T >::GetCStringAtIndex(), lldb_private::CompletionRequest::GetCursorArgumentPrefix(), lldb_private::UniqueCStringMap< T >::GetSize(), lldb_private::ConstString::GetStringRef(), m_enumerations, and lldb_private::CompletionRequest::TryCompleteCurrentArg().
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 48 of file OptionValueEnumeration.h.
References m_current_value, m_default_value, and lldb_private::OptionValue::m_value_was_set.
Referenced by lldb_private::Property::Property(), and SetValueFromString().
|
overridevirtual |
Implements lldb_private::OptionValue.
Definition at line 22 of file OptionValueEnumeration.cpp.
References lldb_private::OptionValue::eDumpOptionType, lldb_private::OptionValue::eDumpOptionValue, lldb_private::UniqueCStringMap< T >::GetCStringAtIndex(), lldb_private::UniqueCStringMap< T >::GetSize(), lldb_private::ConstString::GetStringRef(), lldb_private::OptionValue::GetTypeAsCString(), lldb_private::UniqueCStringMap< T >::GetValueAtIndexUnchecked(), m_current_value, m_enumerations, lldb_private::Stream::Printf(), lldb_private::Stream::PutCString(), and lldb_private::OptionValueEnumeration::EnumeratorInfo::value.
|
inline |
Definition at line 63 of file OptionValueEnumeration.h.
References m_current_value.
Referenced by lldb_private::Property::Property().
|
inline |
Definition at line 65 of file OptionValueEnumeration.h.
References m_default_value.
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 39 of file OptionValueEnumeration.h.
References lldb_private::OptionValue::eTypeEnum.
Definition at line 58 of file OptionValueEnumeration.h.
References m_current_value.
|
inline |
Definition at line 67 of file OptionValueEnumeration.h.
References m_current_value.
|
inline |
Definition at line 69 of file OptionValueEnumeration.h.
References m_default_value.
Referenced by lldb_private::Property::Property().
|
protected |
Definition at line 85 of file OptionValueEnumeration.cpp.
References lldb_private::UniqueCStringMap< T >::Append(), lldb_private::UniqueCStringMap< T >::Clear(), m_enumerations, lldb_private::UniqueCStringMap< T >::Sort(), and lldb_private::OptionValueEnumeration::EnumeratorInfo::value.
Referenced by OptionValueEnumeration().
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 40 of file OptionValueEnumeration.cpp.
References Clear(), error(), 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::UniqueCStringMap< T >::FindFirstValueForName(), lldb_private::ConstString::GetCString(), lldb_private::UniqueCStringMap< T >::GetCStringAtIndex(), lldb_private::UniqueCStringMap< T >::GetSize(), lldb_private::StreamString::GetString(), m_current_value, m_enumerations, lldb_private::OptionValue::NotifyValueChanged(), lldb_private::Stream::Printf(), and lldb_private::OptionValue::SetValueFromString().
|
protected |
Definition at line 74 of file OptionValueEnumeration.h.
Referenced by Clear(), DumpValue(), GetCurrentValue(), operator=(), SetCurrentValue(), and SetValueFromString().
|
protected |
Definition at line 75 of file OptionValueEnumeration.h.
Referenced by Clear(), GetDefaultValue(), and SetDefaultValue().
|
protected |
Definition at line 76 of file OptionValueEnumeration.h.
Referenced by AutoComplete(), DumpValue(), SetEnumerations(), and SetValueFromString().