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

#include <OptionGroupBoolean.h>

Inheritance diagram for lldb_private::OptionGroupBoolean:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::OptionGroupBoolean:
Collaboration graph
[legend]

Public Member Functions

 OptionGroupBoolean (uint32_t usage_mask, bool required, const char *long_option, int short_option, const char *usage_text, bool default_value, bool no_argument_toggle_default)
 
 ~OptionGroupBoolean () override
 
llvm::ArrayRef< OptionDefinition > GetDefinitions () override
 
Status SetOptionValue (uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
 
Status SetOptionValue (uint32_t, const char *, ExecutionContext *)=delete
 
void OptionParsingStarting (ExecutionContext *execution_context) override
 
OptionValueBooleanGetOptionValue ()
 
const OptionValueBooleanGetOptionValue () const
 
- Public Member Functions inherited from lldb_private::OptionGroup
 OptionGroup ()=default
 
virtual ~OptionGroup ()=default
 
virtual Status OptionParsingFinished (ExecutionContext *execution_context)
 

Protected Attributes

OptionValueBoolean m_value
 
OptionDefinition m_option_definition
 

Detailed Description

Definition at line 18 of file OptionGroupBoolean.h.

Constructor & Destructor Documentation

◆ OptionGroupBoolean()

OptionGroupBoolean::OptionGroupBoolean ( uint32_t  usage_mask,
bool  required,
const char *  long_option,
int  short_option,
const char *  usage_text,
bool  default_value,
bool  no_argument_toggle_default 
)

◆ ~OptionGroupBoolean()

OptionGroupBoolean::~OptionGroupBoolean ( )
override

Definition at line 36 of file OptionGroupBoolean.cpp.

Member Function Documentation

◆ GetDefinitions()

llvm::ArrayRef<OptionDefinition> lldb_private::OptionGroupBoolean::GetDefinitions ( )
inlineoverridevirtual

◆ GetOptionValue() [1/2]

OptionValueBoolean& lldb_private::OptionGroupBoolean::GetOptionValue ( )
inline

Definition at line 40 of file OptionGroupBoolean.h.

References m_value.

Referenced by lldb_private::CommandObjectExpression::DoExecute().

◆ GetOptionValue() [2/2]

const OptionValueBoolean& lldb_private::OptionGroupBoolean::GetOptionValue ( ) const
inline

Definition at line 42 of file OptionGroupBoolean.h.

References m_value.

◆ OptionParsingStarting()

void OptionGroupBoolean::OptionParsingStarting ( ExecutionContext execution_context)
overridevirtual

Implements lldb_private::OptionGroup.

Definition at line 53 of file OptionGroupBoolean.cpp.

References lldb_private::OptionValueBoolean::Clear(), and m_value.

Referenced by GetDefinitions().

◆ SetOptionValue() [1/2]

Status OptionGroupBoolean::SetOptionValue ( uint32_t  option_idx,
llvm::StringRef  option_value,
ExecutionContext execution_context 
)
overridevirtual

◆ SetOptionValue() [2/2]

Status lldb_private::OptionGroupBoolean::SetOptionValue ( uint32_t  ,
const char *  ,
ExecutionContext  
)
delete

Member Data Documentation

◆ m_option_definition

OptionDefinition lldb_private::OptionGroupBoolean::m_option_definition
protected

Definition at line 46 of file OptionGroupBoolean.h.

Referenced by GetDefinitions(), OptionGroupBoolean(), and SetOptionValue().

◆ m_value

OptionValueBoolean lldb_private::OptionGroupBoolean::m_value
protected

Definition at line 45 of file OptionGroupBoolean.h.

Referenced by GetOptionValue(), OptionParsingStarting(), and SetOptionValue().


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