![]()  | 
  
    Awali
    
   Another Weighted Automata library 
   | 
 
#include <option.hh>
Public Types | |
| using | value_t = T | 
Public Member Functions | |
| option_t (std::string name, T def, acceptor_t< T > acc=acceptor_t< T >()) | |
| bool | acceptable (T value) | 
| value_t | get_default_value () | 
| value_t | of_string (std::string const &str) | 
| Create of value of the type expected by this option_t, from string str.  More... | |
| operator internal::option_value_pair_t () | |
| template<typename X > | |
| internal::option_value_pair_t | operator= (const X &value) | 
| void | set_default_value (value_t new_default_value) | 
| option_t< value_t > | with_default_value (value_t new_default_value) | 
| Creates a phony option_t that overrides system default value (but not user defined default, if set).  More... | |
Data Fields | |
| const size_t | id | 
| using awali::dyn::internal::option_t< T >::value_t = T | 
| awali::dyn::internal::option_t< T >::option_t | ( | std::string | name, | 
| T | def, | ||
| acceptor_t< T > | acc = acceptor_t<T>()  | 
        ||
| ) | 
| bool awali::dyn::internal::option_t< T >::acceptable | ( | T | value | ) | 
| value_t awali::dyn::internal::option_t< T >::get_default_value | ( | ) | 
| value_t awali::dyn::internal::option_t< T >::of_string | ( | std::string const & | str | ) | 
Create of value of the type expected by this option_t, from string str.
Supports the string "default".
| awali::dyn::internal::option_t< T >::operator internal::option_value_pair_t | ( | ) | 
| internal::option_value_pair_t awali::dyn::internal::option_t< T >::operator= | ( | const X & | value | ) | 
| void awali::dyn::internal::option_t< T >::set_default_value | ( | value_t | new_default_value | ) | 
| option_t<value_t> awali::dyn::internal::option_t< T >::with_default_value | ( | value_t | new_default_value | ) | 
Creates a phony option_t that overrides system default value (but not user defined default, if set).
Beware
Not intended for end users.
Example
| const size_t awali::dyn::internal::option_t< T >::id |