![]() |
Stan
2.10.0
probability, sampling & optimization
|
#include <singleton_argument.hpp>
Public Member Functions | |
singleton_argument () | |
singleton_argument (const std::string name) | |
bool | parse_args (std::vector< std::string > &args, interface_callbacks::writer::base_writer &info, interface_callbacks::writer::base_writer &err, bool &help_flag) |
virtual void | probe_args (argument *base_arg, stan::interface_callbacks::writer::base_writer &w) |
void | find_arg (const std::string &name, const std::string &prefix, std::vector< std::string > &valid_paths) |
T | value () |
bool | set_value (const T &value) |
std::string | print_value () |
std::string | print_valid () |
bool | is_default () |
![]() | |
virtual void | print (interface_callbacks::writer::base_writer &w, const int depth, const std::string &prefix) |
virtual void | print_help (interface_callbacks::writer::base_writer &w, const int depth, const bool recurse=false) |
![]() | |
argument () | |
argument (const std::string &name) | |
virtual | ~argument () |
std::string | name () const |
std::string | description () const |
virtual argument * | arg (const std::string &name) |
int | compute_indent (const int depth) |
Protected Member Functions | |
virtual bool | is_valid (T value) |
Protected Attributes | |
std::string | _validity |
T | _value |
T | _default_value |
bool | _constrained |
T | _good_value |
T | _bad_value |
![]() | |
std::string | _default |
std::string | _value_type |
![]() | |
std::string | _name |
std::string | _description |
int | indent_width |
int | help_width |
Additional Inherited Members | |
![]() | |
static void | split_arg (const std::string &arg, std::string &name, std::string &value) |
Definition at line 45 of file singleton_argument.hpp.
|
inline |
Definition at line 47 of file singleton_argument.hpp.
|
inlineexplicit |
Definition at line 53 of file singleton_argument.hpp.
|
inlinevirtual |
Reimplemented from stan::services::argument.
Definition at line 113 of file singleton_argument.hpp.
|
inlinevirtual |
Implements stan::services::valued_argument.
Definition at line 139 of file singleton_argument.hpp.
|
inlineprotectedvirtual |
Definition at line 145 of file singleton_argument.hpp.
|
inlinevirtual |
Reimplemented from stan::services::argument.
Definition at line 57 of file singleton_argument.hpp.
|
inlinevirtual |
Implements stan::services::valued_argument.
Definition at line 135 of file singleton_argument.hpp.
|
inlinevirtual |
Implements stan::services::valued_argument.
Definition at line 131 of file singleton_argument.hpp.
|
inlinevirtual |
Reimplemented from stan::services::argument.
Definition at line 96 of file singleton_argument.hpp.
|
inline |
Definition at line 123 of file singleton_argument.hpp.
|
inline |
Definition at line 121 of file singleton_argument.hpp.
|
protected |
Definition at line 153 of file singleton_argument.hpp.
|
protected |
Definition at line 150 of file singleton_argument.hpp.
|
protected |
Definition at line 148 of file singleton_argument.hpp.
|
protected |
Definition at line 152 of file singleton_argument.hpp.
|
protected |
Definition at line 144 of file singleton_argument.hpp.
|
protected |
Definition at line 147 of file singleton_argument.hpp.