Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
stan::gm::argument_parser Class Reference

#include <argument_parser.hpp>

Public Member Functions

 argument_parser (std::vector< argument * > &valid_args)
 
int parse_args (int argc, const char *argv[], std::ostream *out=0, std::ostream *err=0)
 
void print (std::ostream *s, const std::string prefix="")
 
void print_help (std::ostream *s, bool recurse)
 
void print_usage (std::ostream *s, const char *executable)
 
argumentarg (std::string name)
 
bool help_printed ()
 

Protected Attributes

std::vector< argument * > & _arguments
 
bool _help_flag
 
bool _method_flag
 

Detailed Description

Definition at line 17 of file argument_parser.hpp.

Constructor & Destructor Documentation

stan::gm::argument_parser::argument_parser ( std::vector< argument * > &  valid_args)
inline

Definition at line 21 of file argument_parser.hpp.

Member Function Documentation

argument* stan::gm::argument_parser::arg ( std::string  name)
inline

Definition at line 207 of file argument_parser.hpp.

bool stan::gm::argument_parser::help_printed ( )
inline

Definition at line 215 of file argument_parser.hpp.

int stan::gm::argument_parser::parse_args ( int  argc,
const char *  argv[],
std::ostream *  out = 0,
std::ostream *  err = 0 
)
inline

Definition at line 28 of file argument_parser.hpp.

void stan::gm::argument_parser::print ( std::ostream *  s,
const std::string  prefix = "" 
)
inline

Definition at line 138 of file argument_parser.hpp.

void stan::gm::argument_parser::print_help ( std::ostream *  s,
bool  recurse 
)
inline

Definition at line 148 of file argument_parser.hpp.

void stan::gm::argument_parser::print_usage ( std::ostream *  s,
const char *  executable 
)
inline

Definition at line 157 of file argument_parser.hpp.

Member Data Documentation

std::vector<argument*>& stan::gm::argument_parser::_arguments
protected

Definition at line 221 of file argument_parser.hpp.

bool stan::gm::argument_parser::_help_flag
protected

Definition at line 227 of file argument_parser.hpp.

bool stan::gm::argument_parser::_method_flag
protected

Definition at line 228 of file argument_parser.hpp.


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

     [ Stan Home Page ] © 2011–2014, Stan Development Team.