LLVM 19.0.0git
Public Member Functions | Protected Member Functions | List of all members
llvm::cl::OptionValueCopy< DataType > Class Template Reference

#include "llvm/Support/CommandLine.h"

Inheritance diagram for llvm::cl::OptionValueCopy< DataType >:
Inheritance graph
[legend]

Public Member Functions

 OptionValueCopy ()=default
 
bool hasValue () const
 
const DataType & getValue () const
 
void setValue (const DataType &V)
 
bool compare (const DataType &V) const
 
bool compare (const GenericOptionValue &V) const override
 
virtual bool compare (const GenericOptionValue &V) const =0
 

Protected Member Functions

 OptionValueCopy (const OptionValueCopy &)=default
 
OptionValueCopyoperator= (const OptionValueCopy &)=default
 
 ~OptionValueCopy ()=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>
class llvm::cl::OptionValueCopy< DataType >

Definition at line 580 of file CommandLine.h.

Constructor & Destructor Documentation

◆ OptionValueCopy() [1/2]

template<class DataType >
llvm::cl::OptionValueCopy< DataType >::OptionValueCopy ( const OptionValueCopy< DataType > &  )
protecteddefault

◆ ~OptionValueCopy()

template<class DataType >
llvm::cl::OptionValueCopy< DataType >::~OptionValueCopy ( )
protecteddefault

◆ OptionValueCopy() [2/2]

template<class DataType >
llvm::cl::OptionValueCopy< DataType >::OptionValueCopy ( )
default

Member Function Documentation

◆ compare() [1/2]

template<class DataType >
bool llvm::cl::OptionValueCopy< DataType >::compare ( const DataType &  V) const
inline

Definition at line 605 of file CommandLine.h.

Referenced by llvm::cl::OptionValueCopy< DataType >::compare().

◆ compare() [2/2]

template<class DataType >
bool llvm::cl::OptionValueCopy< DataType >::compare ( const GenericOptionValue V) const
inlineoverridevirtual

◆ getValue()

template<class DataType >
const DataType & llvm::cl::OptionValueCopy< DataType >::getValue ( ) const
inline

Definition at line 594 of file CommandLine.h.

References assert().

◆ hasValue()

template<class DataType >
bool llvm::cl::OptionValueCopy< DataType >::hasValue ( ) const
inline

Definition at line 592 of file CommandLine.h.

◆ operator=()

template<class DataType >
OptionValueCopy & llvm::cl::OptionValueCopy< DataType >::operator= ( const OptionValueCopy< DataType > &  )
protecteddefault

◆ setValue()

template<class DataType >
void llvm::cl::OptionValueCopy< DataType >::setValue ( const DataType &  V)
inline

Definition at line 599 of file CommandLine.h.


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