Vowpal Wabbit
|
#include <options_boost_po.h>
Public Member Functions | |
options_boost_po (int argc, char **argv) | |
options_boost_po (std::vector< std::string > args) | |
options_boost_po (options_boost_po &)=delete | |
options_boost_po & | operator= (options_boost_po &)=delete |
virtual void | add_and_parse (const option_group_definition &group) override |
virtual bool | was_supplied (const std::string &key) override |
virtual std::string | help () override |
virtual void | check_unregistered () override |
virtual std::vector< std::shared_ptr< base_option > > | get_all_options () override |
virtual std::shared_ptr< base_option > | get_option (const std::string &key) override |
virtual void | insert (const std::string &key, const std::string &value) override |
virtual void | replace (const std::string &key, const std::string &value) override |
bool | try_get_positional_option_token (const std::string &key, std::string &token, int position) |
template<> | |
po::typed_value< std::vector< bool > > * | convert_to_boost_value (std::shared_ptr< typed_option< bool >> &opt) |
![]() | |
template<typename T > | |
typed_option< T > & | get_typed_option (const std::string &key) |
virtual | ~options_i ()=default |
Private Member Functions | |
template<typename T > | |
po::typed_value< std::vector< T > > * | get_base_boost_value (std::shared_ptr< typed_option< T >> &opt) |
template<typename T > | |
po::typed_value< std::vector< T > > * | get_base_boost_value (std::shared_ptr< typed_option< std::vector< T >>> &opt) |
template<typename T > | |
po::typed_value< std::vector< T > > * | convert_to_boost_value (std::shared_ptr< typed_option< T >> &opt) |
template<typename T > | |
po::typed_value< std::vector< T > > * | convert_to_boost_value (std::shared_ptr< typed_option< std::vector< T >>> &opt) |
template<typename T > | |
po::typed_value< std::vector< T > > * | add_notifier (std::shared_ptr< typed_option< T >> &opt, po::typed_value< std::vector< T >> *po_value) |
template<typename T > | |
po::typed_value< std::vector< T > > * | add_notifier (std::shared_ptr< typed_option< std::vector< T >>> &opt, po::typed_value< std::vector< T >> *po_value) |
template<typename T > | |
bool | add_if_t (std::shared_ptr< base_option > opt, po::options_description &options_description) |
void | add_to_description (std::shared_ptr< base_option > opt, po::options_description &options_description) |
template<typename TTypes > | |
void | add_to_description_impl (std::shared_ptr< base_option > opt, po::options_description &options_description) |
template<typename T > | |
void | add_to_description (std::shared_ptr< typed_option< T >> opt, po::options_description &options_description) |
template<> | |
void | add_to_description_impl (std::shared_ptr< base_option >, po::options_description &) |
template<> | |
void | add_to_description_impl (std::shared_ptr< base_option > opt, po::options_description &options_description) |
Private Attributes | |
std::map< std::string, std::shared_ptr< base_option > > | m_options |
std::vector< std::string > | m_command_line |
std::stringstream | m_help_stringstream |
std::set< std::string > | m_supplied_options |
std::set< std::string > | m_ignore_supplied |
po::options_description | master_description |
std::set< std::string > | m_defined_options |
Definition at line 40 of file options_boost_po.h.
|
inline |
Definition at line 42 of file options_boost_po.h.
|
inline |
Definition at line 44 of file options_boost_po.h.
|
delete |
|
overridevirtual |
Implements VW::config::options_i.
Definition at line 48 of file options_boost_po.cc.
References add_to_description(), is_number(), m_command_line, m_defined_options, m_help_stringstream, m_ignore_supplied, VW::config::option_group_definition::m_name, VW::config::option_group_definition::m_options, m_options, m_supplied_options, THROW, THROW_EX, and VW::vw_exception::what().
|
private |
Definition at line 247 of file options_boost_po.h.
|
private |
Definition at line 214 of file options_boost_po.h.
References THROW_EX.
Referenced by convert_to_boost_value().
|
private |
Definition at line 236 of file options_boost_po.h.
|
private |
Definition at line 42 of file options_boost_po.cc.
Referenced by add_and_parse().
|
private |
Definition at line 264 of file options_boost_po.h.
|
inlineprivate |
Definition at line 139 of file options_boost_po.h.
|
private |
|
private |
|
overridevirtual |
Implements VW::config::options_i.
Definition at line 168 of file options_boost_po.cc.
References m_defined_options, m_ignore_supplied, m_supplied_options, and THROW_EX.
po::typed_value< std::vector< bool > > * VW::config::options_boost_po::convert_to_boost_value | ( | std::shared_ptr< typed_option< bool >> & | opt | ) |
Definition at line 26 of file options_boost_po.cc.
References add_notifier(), get_base_boost_value(), and THROW.
|
private |
Definition at line 198 of file options_boost_po.h.
|
private |
Definition at line 204 of file options_boost_po.h.
|
overridevirtual |
Implements VW::config::options_i.
Definition at line 146 of file options_boost_po.cc.
References m_options.
|
private |
Definition at line 171 of file options_boost_po.h.
Referenced by convert_to_boost_value().
|
private |
Definition at line 184 of file options_boost_po.h.
|
overridevirtual |
Implements VW::config::options_i.
Definition at line 156 of file options_boost_po.cc.
References m_options.
|
overridevirtual |
Implements VW::config::options_i.
Definition at line 144 of file options_boost_po.cc.
References m_help_stringstream.
|
inlineoverridevirtual |
Implements VW::config::options_i.
Definition at line 56 of file options_boost_po.h.
|
delete |
|
inlineoverridevirtual |
Implements VW::config::options_i.
Definition at line 66 of file options_boost_po.h.
References recall_tree_ns::find(), and THROW.
|
inline |
Definition at line 89 of file options_boost_po.h.
|
overridevirtual |
Implements VW::config::options_i.
Definition at line 131 of file options_boost_po.cc.
References recall_tree_ns::find(), m_command_line, and m_supplied_options.
|
private |
Definition at line 154 of file options_boost_po.h.
Referenced by add_and_parse(), and was_supplied().
|
private |
Definition at line 167 of file options_boost_po.h.
Referenced by add_and_parse(), and check_unregistered().
|
private |
Definition at line 156 of file options_boost_po.h.
Referenced by add_and_parse(), and help().
|
private |
Definition at line 162 of file options_boost_po.h.
Referenced by add_and_parse(), and check_unregistered().
|
private |
Definition at line 152 of file options_boost_po.h.
Referenced by add_and_parse(), get_all_options(), and get_option().
|
private |
Definition at line 159 of file options_boost_po.h.
Referenced by add_and_parse(), check_unregistered(), and was_supplied().
|
private |
Definition at line 164 of file options_boost_po.h.