Vcsn
2.3
Be Rational
|
A mapping from strings to Values. More...
#include <getargs.hh>
Public Types | |
using | value_t = Value |
using | data_t = boost::variant< std::string, Value > |
using | map_t = std::map< std::string, data_t > |
Public Member Functions | |
getarg (const std::string &kind, std::initializer_list< typename map_t::value_type > args) | |
const value_t & | operator[] (std::string s) const |
The value associated to s. More... | |
Public Attributes | |
std::string | kind_ |
The nature of the selection. Used in error messages. More... | |
map_t | map_ |
string -> (string | value). More... | |
A mapping from strings to Values.
Definition at line 33 of file getargs.hh.
using vcsn::getarg< Value >::data_t = boost::variant<std::string, Value> |
Definition at line 37 of file getargs.hh.
using vcsn::getarg< Value >::map_t = std::map<std::string, data_t> |
Definition at line 38 of file getargs.hh.
using vcsn::getarg< Value >::value_t = Value |
Definition at line 36 of file getargs.hh.
|
inline |
Definition at line 40 of file getargs.hh.
|
inline |
The value associated to s.
Definition at line 47 of file getargs.hh.
References vcsn::detail::invalid_argument(), vcsn::getarg< Value >::kind_, vcsn::getarg< Value >::map_, and vcsn::res.
std::string vcsn::getarg< Value >::kind_ |
The nature of the selection. Used in error messages.
Definition at line 62 of file getargs.hh.
Referenced by vcsn::getarg< Value >::operator[]().
map_t vcsn::getarg< Value >::map_ |
string -> (string | value).
Definition at line 64 of file getargs.hh.
Referenced by vcsn::getarg< Value >::operator[]().