value_base_ Struct Template
Base struct template providing common storage and accessors for runtime value-wrapper types. More...
Declaration
struct micro_os_plus::micro_test_plus::type_traits::value_base_<T> { ... }
Included Headers
Base struct
| struct | op |
|
Empty base struct for all operator types. More... | |
Derived Structs
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a floating point value with precision control. More... | |
| struct | genuine_integral_value<T> |
|
Struct template representing a genuine integral value. More... | |
| struct | value<T> |
|
Struct template representing a generic value, accessible via a getter. More... | |
| struct | value<T> |
|
Struct template representing a floating point value with precision control. More... | |
Public Member Typedefs Index
template <class T> | |
| using | value_type = T |
|
The type of the stored value. More... | |
Public Constructors Index
template <class T> | |
| constexpr | value_base_ (const T &v) noexcept |
|
Constructs a value_base_ with the given value. More... | |
Public Operators Index
template <class T> | |
| constexpr | operator T () const noexcept |
|
Explicit conversion operator to the underlying value type. More... | |
Public Member Functions Index
template <class T> | |
| constexpr T | get (void) const noexcept |
|
Getter for the stored value. More... | |
Public Member Attributes Index
template <class T> | |
| T | value_ {} |
|
The stored value. More... | |
Description
Base struct template providing common storage and accessors for runtime value-wrapper types.
- Template Parameters
-
T The type of the stored value.
The value_base_ struct template provides the T value_{} member, an explicit operator T() conversion, and a get() accessor, shared by genuine_integral_value, value<T>, and the floating point specialisation value<T>.
It inherits from op so that all derived types satisfy the is_op concept without each struct needing to inherit from op directly.
Definition at line 509 of file type-traits.h.
Public Member Typedefs
value_type
|
The type of the stored value.
Definition at line 514 of file type-traits.h.
Public Constructors
value_base_()
| explicit constexpr noexcept |
Constructs a value_base_ with the given value.
- Parameters
-
v The value to be stored.
Stores the supplied value in the value_ member.
Declaration at line 521 of file type-traits.h, definition at line 73 of file type-traits-inlines.h.
Reference micro_os_plus::micro_test_plus::type_traits::value_base_< T >::value_.
Referenced by micro_os_plus::micro_test_plus::type_traits::genuine_integral_value< T >::genuine_integral_value, micro_os_plus::micro_test_plus::type_traits::value< T >::value, micro_os_plus::micro_test_plus::type_traits::value< T >::value and micro_os_plus::micro_test_plus::type_traits::value_base_< T >::operator T.
Public Operators
operator T()
| explicit nodiscard constexpr noexcept |
Explicit conversion operator to the underlying value type.
- Returns
The stored value as type T.
Allows explicit conversion to the encapsulated value.
Declaration at line 529 of file type-traits.h, definition at line 83 of file type-traits-inlines.h.
References micro_os_plus::micro_test_plus::type_traits::value_base_< T >::value_base_ and micro_os_plus::micro_test_plus::type_traits::value_base_< T >::value_.
Public Member Functions
get()
| nodiscard constexpr noexcept |
Getter for the stored value.
- Parameters
None.
- Returns
The stored value.
Returns the stored value by value.
Declaration at line 539 of file type-traits.h, definition at line 94 of file type-traits-inlines.h.
Reference micro_os_plus::micro_test_plus::type_traits::value_base_< T >::value_.
Referenced by micro_os_plus::micro_test_plus::detail::expression_formatter::operator<<.
Public Member Attributes
value_
|
The stored value.
Definition at line 544 of file type-traits.h.
Referenced by micro_os_plus::micro_test_plus::type_traits::value_base_< T >::value_base_, micro_os_plus::micro_test_plus::type_traits::value_base_< T >::get and micro_os_plus::micro_test_plus::type_traits::value_base_< T >::operator T.
The documentation for this struct was generated from the following files:
Generated via doxygen2docusaurus 2.2.0 by Doxygen 1.17.0.