LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
llvm::cl::parser< DataType > Class Template Reference

#include <CommandLine.h>

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

Classes

class  OptionInfo
 

Public Types

typedef DataType parser_data_type
 

Public Member Functions

unsigned getNumOptions () const
 
const char * getOption (unsigned N) const
 
const char * getDescription (unsigned N) const
 
virtual const GenericOptionValuegetOptionValue (unsigned N) const
 
bool parse (Option &O, StringRef ArgName, StringRef Arg, DataType &V)
 
template<class DT >
void addLiteralOption (const char *Name, const DT &V, const char *HelpStr)
 
void removeLiteralOption (const char *Name)
 
- Public Member Functions inherited from llvm::cl::generic_parser_base
virtual ~generic_parser_base ()
 
virtual size_t getOptionWidth (const Option &O) const
 
virtual void printOptionInfo (const Option &O, size_t GlobalWidth) const
 
void printGenericOptionDiff (const Option &O, const GenericOptionValue &V, const GenericOptionValue &Default, size_t GlobalWidth) const
 
template<class AnyOptionValue >
void printOptionDiff (const Option &O, const AnyOptionValue &V, const AnyOptionValue &Default, size_t GlobalWidth) const
 
void initialize (Option &O)
 
void getExtraOptionNames (SmallVectorImpl< const char * > &OptionNames)
 
enum ValueExpected getValueExpectedFlagDefault () const
 
unsigned findOption (const char *Name)
 

Protected Attributes

SmallVector< OptionInfo, 8 > Values
 
- Protected Attributes inherited from llvm::cl::generic_parser_base
bool hasArgStr
 

Detailed Description

template<class DataType>
class llvm::cl::parser< DataType >

Definition at line 630 of file CommandLine.h.

Member Typedef Documentation

template<class DataType>
typedef DataType llvm::cl::parser< DataType >::parser_data_type

Definition at line 640 of file CommandLine.h.

Member Function Documentation

template<class DataType>
template<class DT >
void llvm::cl::parser< DataType >::addLiteralOption ( const char *  Name,
const DT &  V,
const char *  HelpStr 
)
inline

addLiteralOption - Add an entry to the mapping table.

Definition at line 674 of file CommandLine.h.

template<class DataType>
const char* llvm::cl::parser< DataType >::getDescription ( unsigned  N) const
inlinevirtual

Implements llvm::cl::generic_parser_base.

Definition at line 645 of file CommandLine.h.

template<class DataType>
unsigned llvm::cl::parser< DataType >::getNumOptions ( ) const
inlinevirtual

Implements llvm::cl::generic_parser_base.

Definition at line 643 of file CommandLine.h.

template<class DataType>
const char* llvm::cl::parser< DataType >::getOption ( unsigned  N) const
inlinevirtual

Implements llvm::cl::generic_parser_base.

Definition at line 644 of file CommandLine.h.

template<class DataType>
virtual const GenericOptionValue& llvm::cl::parser< DataType >::getOptionValue ( unsigned  N) const
inlinevirtual

Implements llvm::cl::generic_parser_base.

Definition at line 650 of file CommandLine.h.

template<class DataType>
bool parser::parse ( Option O,
StringRef  ArgName,
StringRef  Arg,
DataType V 
)
inline

Definition at line 655 of file CommandLine.h.

template<class DataType>
void llvm::cl::parser< DataType >::removeLiteralOption ( const char *  Name)
inline

removeLiteralOption - Remove the specified option.

Definition at line 683 of file CommandLine.h.

Member Data Documentation

template<class DataType>
SmallVector<OptionInfo, 8> llvm::cl::parser< DataType >::Values
protected

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