LLVM 22.0.0git
llvm::cl::opt_storage< DataType, false, true > Class Template Reference

#include "llvm/Support/CommandLine.h"

Inheritance diagram for llvm::cl::opt_storage< DataType, false, true >:
[legend]

Public Member Functions

template<class T>
void setValue (const T &V, bool initial=false)
DataType & getValue ()
const DataType & getValue () const
const OptionValue< DataType > & getDefault () const
 opt_storage ()=default
bool setLocation (Option &O, DataType &L)
 operator DataType () const

Public Attributes

OptionValue< DataType > Default

Detailed Description

template<class DataType>
class llvm::cl::opt_storage< DataType, false, true >

Definition at line 1403 of file CommandLine.h.

Constructor & Destructor Documentation

◆ opt_storage()

llvm::cl::opt_storage< DataType, ExternalStorage, isClass >::opt_storage ( )
default

Member Function Documentation

◆ getDefault()

template<class DataType>
const OptionValue< DataType > & llvm::cl::opt_storage< DataType, false, true >::getDefault ( ) const
inline

Definition at line 1416 of file CommandLine.h.

References Default.

◆ getValue() [1/2]

template<class DataType>
DataType & llvm::cl::opt_storage< DataType, false, true >::getValue ( )
inline

Definition at line 1413 of file CommandLine.h.

◆ getValue() [2/2]

template<class DataType>
const DataType & llvm::cl::opt_storage< DataType, false, true >::getValue ( ) const
inline

Definition at line 1414 of file CommandLine.h.

◆ operator DataType()

llvm::cl::opt_storage< DataType, ExternalStorage, isClass >::operator DataType ( ) const
inline

Definition at line 1393 of file CommandLine.h.

◆ setLocation()

bool llvm::cl::opt_storage< DataType, ExternalStorage, isClass >::setLocation ( Option & O,
DataType & L )
inline

Definition at line 1369 of file CommandLine.h.

◆ setValue()

template<class DataType>
template<class T>
void llvm::cl::opt_storage< DataType, false, true >::setValue ( const T & V,
bool initial = false )
inline

Definition at line 1407 of file CommandLine.h.

References Default, and T.

Member Data Documentation

◆ Default

template<class DataType>
OptionValue<DataType> llvm::cl::opt_storage< DataType, false, true >::Default

Definition at line 1405 of file CommandLine.h.

Referenced by getDefault(), and setValue().


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