LLVM API Documentation

llvm::cl::parser< DataType > Class Template Reference

#include <CommandLine.h>

Inheritance diagram for llvm::cl::parser< DataType >:
[legend]
Collaboration diagram for llvm::cl::parser< DataType >:
[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

SmallVector< std::pair< const
char *, std::pair< DataType,
const char * > >, 8 > 
Values


Detailed Description

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

Definition at line 446 of file CommandLine.h.


Member Typedef Documentation

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

Definition at line 451 of file CommandLine.h.


Member Function Documentation

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

Implements llvm::cl::generic_parser_base.

Definition at line 454 of file CommandLine.h.

Referenced by llvm::PassNameParser::passRegistered().

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

Implements llvm::cl::generic_parser_base.

Definition at line 455 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 456 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 461 of file CommandLine.h.

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

Referenced by llvm::PassNameParser::passRegistered().

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

removeLiteralOption - Remove the specified option.

Definition at line 491 of file CommandLine.h.


Member Data Documentation

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


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