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

#include "llvm/Support/CommandLine.h"

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

Public Member Functions

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

Public Attributes

DataType Value
OptionValue< DataType > Default

Detailed Description

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

Definition at line 1423 of file CommandLine.h.

Constructor & Destructor Documentation

◆ opt_storage()

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

Definition at line 1430 of file CommandLine.h.

References Default, and Value.

Member Function Documentation

◆ getDefault()

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

Definition at line 1440 of file CommandLine.h.

References Default.

◆ getValue() [1/2]

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

Definition at line 1437 of file CommandLine.h.

References Value.

◆ getValue() [2/2]

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

Definition at line 1438 of file CommandLine.h.

References Value.

◆ operator DataType()

template<class DataType>
llvm::cl::opt_storage< DataType, false, false >::operator DataType ( ) const
inline

◆ operator->()

template<class DataType>
DataType llvm::cl::opt_storage< DataType, false, false >::operator-> ( ) const
inline

Definition at line 1445 of file CommandLine.h.

References Value.

◆ 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, false >::setValue ( const T & V,
bool initial = false )
inline

Definition at line 1432 of file CommandLine.h.

References Default, T, and Value.

Member Data Documentation

◆ Default

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

Definition at line 1426 of file CommandLine.h.

Referenced by getDefault(), opt_storage(), and setValue().

◆ Value

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

Definition at line 1425 of file CommandLine.h.

Referenced by getValue(), getValue(), operator->(), opt_storage(), and setValue().


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