|
| pressio_option ()=default |
|
template<class T , typename = typename std::enable_if< !std::is_same<T, pressio_conversion_safety>::value && !std::is_same<T, pressio_option>::value && !std::is_same<T, const char*>::value && !std::is_same<T, void*>::value && !std::is_same<T, compat::monostate>::value >::type> |
| pressio_option (compat::optional< T > const &value) |
|
template<class T , typename = typename std::enable_if< !std::is_same<T, pressio_conversion_safety>::value && !std::is_same<T, pressio_option>::value && !std::is_same<T, const char*>::value && !std::is_same<T, void*>::value && !std::is_same<T, compat::monostate>::value >::type> |
| pressio_option (compat::optional< T > &&value) |
|
template<class T , typename = typename std::enable_if< !std::is_same<T, pressio_conversion_safety>::value && !std::is_same<T, pressio_option>::value && !std::is_same<T, const char*>::value && !std::is_same<T, compat::monostate>::value >::type> |
| pressio_option (T const &value) |
|
| pressio_option (void *value) |
|
| pressio_option (compat::monostate value) |
|
| pressio_option (const char *value) |
|
template<class T > |
| pressio_option (std::initializer_list< T > ul) |
|
pressio_option | as (const enum pressio_option_type type, const enum pressio_conversion_safety safety=pressio_conversion_implicit) const |
|
enum pressio_option_type | type () const |
|
template<class T , typename std::enable_if<!(std::is_same< T, compat::monostate >::value||std::is_same< T, void * >::value), int >::type = 0> |
bool | holds_alternative () const |
|
template<class T , typename std::enable_if< std::is_same< T, void * >::value, int >::type = 0> |
bool | holds_alternative () const |
|
template<class T , typename std::enable_if< std::is_same< T, compat::monostate >::value, int >::type = 0> |
bool | holds_alternative () const |
|
template<class T > |
compat::optional< T > const & | get () const |
|
template<class T , typename std::enable_if< std::is_same< T, void * >::value, int >::type = 0> |
void * | get_value () const |
|
template<class T , typename std::enable_if<!std::is_same< T, void * >::value, int >::type = 0> |
T const & | get_value () const |
|
bool | has_value () const |
|
template<class T , typename std::enable_if<!std::is_same< T, void * >::value, bool >::type = false> |
void | set (T v) |
|
void | set (void *v) |
|
void | set_type (pressio_option_type type) |
|
bool | operator== (pressio_option const &rhs) const |
|
enum pressio_options_key_status | cast_set (struct pressio_option const &rhs, enum pressio_conversion_safety safety=pressio_conversion_implicit) |
|
represents a dynamically typed object
template<class T , typename = typename std::enable_if< !std::is_same<T, pressio_conversion_safety>::value && !std::is_same<T, pressio_option>::value && !std::is_same<T, const char*>::value && !std::is_same<T, void*>::value && !std::is_same<T, compat::monostate>::value >::type>
pressio_option::pressio_option |
( |
compat::optional< T > const & |
value | ) |
|
|
inline |
constructs an option that holds the specified value
- Parameters
-
[in] | value | the value the option is to hold |
template<class T , typename = typename std::enable_if< !std::is_same<T, pressio_conversion_safety>::value && !std::is_same<T, pressio_option>::value && !std::is_same<T, const char*>::value && !std::is_same<T, void*>::value && !std::is_same<T, compat::monostate>::value >::type>
pressio_option::pressio_option |
( |
compat::optional< T > && |
value | ) |
|
|
inline |
constructs an option that holds the specified value
- Parameters
-
[in] | value | the value the option is to hold |
template<class T , typename = typename std::enable_if< !std::is_same<T, pressio_conversion_safety>::value && !std::is_same<T, pressio_option>::value && !std::is_same<T, const char*>::value && !std::is_same<T, compat::monostate>::value >::type>
pressio_option::pressio_option |
( |
T const & |
value | ) |
|
|
inline |
constructs an option that holds the specified value
- Parameters
-
[in] | value | the value the option is to hold |