LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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]
List of all members.

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
bool parse (Option &O, const char *ArgName, const std::string &Arg, DataType &V)
template<class DT>
void addLiteralOption (const char *Name, const DT &V, const char *HelpStr)
void removeLiteralOption (const char *Name)

Protected Attributes

std::vector< std::pair< const
char *, std::pair< DataType,
const char * > > > 
Values

Detailed Description

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

Definition at line 430 of file CommandLine.h.


Member Typedef Documentation

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

Definition at line 435 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]
 

Definition at line 464 of file CommandLine.h.

template<class DataType>
const char* llvm::cl::parser< DataType >::getDescription unsigned  N  )  const [inline, virtual]
 

Implements llvm::cl::generic_parser_base.

Definition at line 440 of file CommandLine.h.

template<class DataType>
unsigned llvm::cl::parser< DataType >::getNumOptions  )  const [inline, virtual]
 

Implements llvm::cl::generic_parser_base.

Definition at line 438 of file CommandLine.h.

template<class DataType>
const char* llvm::cl::parser< DataType >::getOption unsigned  N  )  const [inline, virtual]
 

Implements llvm::cl::generic_parser_base.

Definition at line 439 of file CommandLine.h.

template<class DataType>
bool llvm::cl::parser< DataType >::parse Option O,
const char *  ArgName,
const std::string &  Arg,
DataType &  V
[inline]
 

Definition at line 445 of file CommandLine.h.

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

Definition at line 472 of file CommandLine.h.


Member Data Documentation

template<class DataType>
std::vector<std::pair<const char *, std::pair<DataType, const char *> > > llvm::cl::parser< DataType >::Values [protected]
 

Definition at line 433 of file CommandLine.h.

Referenced by llvm::cl::parser< const PassInfo * >::addLiteralOption(), llvm::cl::parser< const PassInfo * >::getDescription(), llvm::cl::parser< const PassInfo * >::getNumOptions(), llvm::cl::parser< const PassInfo * >::getOption(), llvm::cl::parser< const PassInfo * >::parse(), llvm::PassNameParser::printOptionInfo(), and llvm::cl::parser< const PassInfo * >::removeLiteralOption().


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