LLVM API Documentation

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


Member Typedef Documentation

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

Definition at line 446 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 449 of file CommandLine.h.

Referenced by llvm::PassNameParser::passRegistered(), and llvm::PassNameParser::passUnregistered().

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

Implements llvm::cl::generic_parser_base.

Definition at line 450 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 451 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 456 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]

Definition at line 475 of file CommandLine.h.

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

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

Definition at line 483 of file CommandLine.h.

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


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

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


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