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::unvalued_argument Class Reference

#include <unvalued_argument.hpp>

Inheritance diagram for stan::gm::unvalued_argument:
stan::gm::argument stan::gm::arg_dense_e stan::gm::arg_diag_e stan::gm::arg_fail stan::gm::arg_fixed_param stan::gm::arg_unit_e

Public Member Functions

 unvalued_argument ()
 
void print (std::ostream *s, const int depth, const std::string prefix)
 
void print_help (std::ostream *s, const int depth, const bool recurse=false)
 
bool parse_args (std::vector< std::string > &args, std::ostream *out, std::ostream *err, bool &help_flag)
 
bool is_present ()
 
- Public Member Functions inherited from stan::gm::argument
 argument ()
 
 argument (const std::string name)
 
virtual ~argument ()
 
std::string name () const
 
std::string description () const
 
virtual void probe_args (argument *base_arg, std::stringstream &s)
 
virtual void find_arg (std::string name, std::string prefix, std::vector< std::string > &valid_paths)
 
virtual argumentarg (const std::string name)
 
int compute_indent (const int depth)
 

Protected Attributes

bool _is_present
 
- Protected Attributes inherited from stan::gm::argument
std::string _name
 
std::string _description
 
int indent_width
 
int help_width
 

Additional Inherited Members

- Static Public Member Functions inherited from stan::gm::argument
static void split_arg (const std::string &arg, std::string &name, std::string &value)
 

Detailed Description

Definition at line 12 of file unvalued_argument.hpp.

Constructor & Destructor Documentation

stan::gm::unvalued_argument::unvalued_argument ( )
inline

Definition at line 16 of file unvalued_argument.hpp.

Member Function Documentation

bool stan::gm::unvalued_argument::is_present ( )
inline

Definition at line 50 of file unvalued_argument.hpp.

bool stan::gm::unvalued_argument::parse_args ( std::vector< std::string > &  args,
std::ostream *  out,
std::ostream *  err,
bool &  help_flag 
)
inlinevirtual

Reimplemented from stan::gm::argument.

Definition at line 34 of file unvalued_argument.hpp.

void stan::gm::unvalued_argument::print ( std::ostream *  s,
const int  depth,
const std::string  prefix 
)
inlinevirtual

Implements stan::gm::argument.

Definition at line 19 of file unvalued_argument.hpp.

void stan::gm::unvalued_argument::print_help ( std::ostream *  s,
const int  depth,
const bool  recurse = false 
)
inlinevirtual

Implements stan::gm::argument.

Definition at line 21 of file unvalued_argument.hpp.

Member Data Documentation

bool stan::gm::unvalued_argument::_is_present
protected

Definition at line 55 of file unvalued_argument.hpp.


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

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