LLVM 22.0.0git
llvm::cl::OptionValueCopy< DataType > Class Template Reference

#include "llvm/Support/CommandLine.h"

Inheritance diagram for llvm::cl::OptionValueCopy< DataType >:
[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

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 575 of file CommandLine.h.

Constructor & Destructor Documentation

◆ OptionValueCopy() [1/2]

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

References OptionValueCopy().

Referenced by compare(), operator=(), and OptionValueCopy().

◆ ~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 600 of file CommandLine.h.

Referenced by 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 589 of file CommandLine.h.

References assert().

◆ hasValue()

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

Definition at line 587 of file CommandLine.h.

◆ operator=()

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

References OptionValueCopy().

◆ setValue()

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

Definition at line 594 of file CommandLine.h.


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