LLVM 20.0.0git
Public Types | Public Member Functions | Protected Member Functions | List of all members
llvm::cl::OptionValueBase< DataType, isClass > Struct Template Reference

#include "llvm/Support/CommandLine.h"

Inheritance diagram for llvm::cl::OptionValueBase< DataType, isClass >:
Inheritance graph
[legend]

Public Types

using WrapperType = OptionValue< DataType >
 

Public Member Functions

bool hasValue () const
 
const DataType & getValue () const
 
template<class DT >
void setValue (const DT &)
 
bool compare (const DataType &) const
 
bool compare (const GenericOptionValue &) const override
 
virtual bool compare (const GenericOptionValue &V) const =0
 

Protected Member Functions

 ~OptionValueBase ()=default
 
- Protected Member Functions inherited from llvm::cl::GenericOptionValue
 GenericOptionValue ()=default
 
 GenericOptionValue (const GenericOptionValue &)=default
 
GenericOptionValueoperator= (const GenericOptionValue &)=default
 
 ~GenericOptionValue ()=default
 

Detailed Description

template<class DataType, bool isClass>
struct llvm::cl::OptionValueBase< DataType, isClass >

Definition at line 550 of file CommandLine.h.

Member Typedef Documentation

◆ WrapperType

template<class DataType , bool isClass>
using llvm::cl::OptionValueBase< DataType, isClass >::WrapperType = OptionValue<DataType>

Definition at line 552 of file CommandLine.h.

Constructor & Destructor Documentation

◆ ~OptionValueBase()

template<class DataType , bool isClass>
llvm::cl::OptionValueBase< DataType, isClass >::~OptionValueBase ( )
protecteddefault

Member Function Documentation

◆ compare() [1/2]

template<class DataType , bool isClass>
bool llvm::cl::OptionValueBase< DataType, isClass >::compare ( const DataType &  ) const
inline

Definition at line 562 of file CommandLine.h.

◆ compare() [2/2]

template<class DataType , bool isClass>
bool llvm::cl::OptionValueBase< DataType, isClass >::compare ( const GenericOptionValue ) const
inlineoverridevirtual

Implements llvm::cl::GenericOptionValue.

Definition at line 564 of file CommandLine.h.

◆ getValue()

template<class DataType , bool isClass>
const DataType & llvm::cl::OptionValueBase< DataType, isClass >::getValue ( ) const
inline

Definition at line 556 of file CommandLine.h.

References llvm_unreachable.

◆ hasValue()

template<class DataType , bool isClass>
bool llvm::cl::OptionValueBase< DataType, isClass >::hasValue ( ) const
inline

Definition at line 554 of file CommandLine.h.

◆ setValue()

template<class DataType , bool isClass>
template<class DT >
void llvm::cl::OptionValueBase< DataType, isClass >::setValue ( const DT &  )
inline

Definition at line 559 of file CommandLine.h.


The documentation for this struct was generated from the following file: