Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
VW::config::base_option Struct Reference

#include <options.h>

Inheritance diagram for VW::config::base_option:
VW::config::typed_option< T >

Public Member Functions

 base_option (std::string name, size_t type_hash)
 
virtual ~base_option ()=default
 

Public Attributes

std::string m_name
 
size_t m_type_hash
 
std::string m_help = ""
 
std::string m_short_name = ""
 
bool m_keep = false
 

Detailed Description

Definition at line 13 of file options.h.

Constructor & Destructor Documentation

◆ base_option()

VW::config::base_option::base_option ( std::string  name,
size_t  type_hash 
)
inline

Definition at line 15 of file options.h.

15 : m_name(std::move(name)), m_type_hash(type_hash) {}
std::string m_name
Definition: options.h:17

◆ ~base_option()

virtual VW::config::base_option::~base_option ( )
virtualdefault

Member Data Documentation

◆ m_help

std::string VW::config::base_option::m_help = ""

Definition at line 19 of file options.h.

Referenced by VW::config::typed_option< T >::help(), and VW::config::operator==().

◆ m_keep

bool VW::config::base_option::m_keep = false

Definition at line 21 of file options.h.

Referenced by VW::config::typed_option< T >::keep(), and VW::config::operator==().

◆ m_name

std::string VW::config::base_option::m_name

◆ m_short_name

std::string VW::config::base_option::m_short_name = ""

Definition at line 20 of file options.h.

Referenced by VW::config::operator==(), and VW::config::typed_option< T >::short_name().

◆ m_type_hash

size_t VW::config::base_option::m_type_hash

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