Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VW::config::options_cli Class Reference

#include <options_cli.h>

Inheritance diagram for VW::config::options_cli:
VW::config::options_i

Public Member Functions

 options_cli (std::vector< std::string > args)
 
void internal_add_and_parse (const option_group_definition &group) override
 
bool was_supplied (const std::string &key) const override
 
std::vector< std::string > check_unregistered () override
 Check for unregistered options and validate input. Throws if there is an error. Returns a vector of warning strings if there are warnings produced. More...
 
void insert (const std::string &key, const std::string &value) override
 
void replace (const std::string &key, const std::string &value) override
 
std::vector< std::string > get_positional_tokens () const override
 
- Public Member Functions inherited from VW::config::options_i
void add_and_parse (const option_group_definition &group)
 
bool add_parse_and_check_necessary (const option_group_definition &group)
 
void tint (const std::string &reduction_name)
 
void reset_tint ()
 
std::vector< std::shared_ptr< base_option > > get_all_options ()
 
std::vector< std::shared_ptr< const base_option > > get_all_options () const
 
std::shared_ptr< base_optionget_option (const std::string &key)
 
std::shared_ptr< const base_optionget_option (const std::string &key) const
 
std::map< std::string, std::vector< option_group_definition > > get_collection_of_options () const
 
const std::vector< option_group_definition > & get_all_option_group_definitions () const
 
template<typename T >
typed_option< T > & get_typed_option (const std::string &key)
 
template<typename T >
const typed_option< T > & get_typed_option (const std::string &key) const
 
virtual void internal_add_and_parse (const option_group_definition &group)=0
 
virtual bool was_supplied (const std::string &key) const =0
 
virtual void insert (const std::string &key, const std::string &value)=0
 
virtual void replace (const std::string &key, const std::string &value)=0
 
virtual std::vector< std::string > get_positional_tokens () const
 
virtual std::vector< std::string > check_unregistered ()=0
 Check for unregistered options and validate input. Throws if there is an error. Returns a vector of warning strings if there are warnings produced. More...
 
virtual ~options_i ()=default
 

Additional Inherited Members

- Static Public Attributes inherited from VW::config::options_i
static constexpr const char * DEFAULT_TINT = "general"
 

Constructor & Destructor Documentation

◆ options_cli()

VW::config::options_cli::options_cli ( std::vector< std::string >  args)

Member Function Documentation

◆ check_unregistered()

std::vector< std::string > VW::config::options_cli::check_unregistered ( )
overridevirtual

Check for unregistered options and validate input. Throws if there is an error. Returns a vector of warning strings if there are warnings produced.

Implements VW::config::options_i.

◆ get_positional_tokens()

std::vector< std::string > VW::config::options_cli::get_positional_tokens ( ) const
overridevirtual

Reimplemented from VW::config::options_i.

◆ insert()

void VW::config::options_cli::insert ( const std::string &  key,
const std::string &  value 
)
overridevirtual

Implements VW::config::options_i.

◆ internal_add_and_parse()

void VW::config::options_cli::internal_add_and_parse ( const option_group_definition group)
overridevirtual

Implements VW::config::options_i.

◆ replace()

void VW::config::options_cli::replace ( const std::string &  key,
const std::string &  value 
)
overridevirtual

Implements VW::config::options_i.

◆ was_supplied()

bool VW::config::options_cli::was_supplied ( const std::string &  key) const
overridevirtual

Implements VW::config::options_i.


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