Go to the documentation of this file. 1 #ifndef OALPLUS_ALUT_API_CONSTANTS_HPP
9 #define OALPLUS_ALUT_API_CONSTANTS_HPP
20 template <
typename ApiTraits>
25 template <enum_type value>
26 using enum_type_c = std::integral_constant<enum_type, value>;
32 #ifdef ALUT_ERROR_NO_ERROR
33 enum_type_c<ALUT_ERROR_NO_ERROR>>
43 #ifdef ALUT_WAVEFORM_SINE
44 enum_type_c<ALUT_WAVEFORM_SINE>>
54 #ifdef ALUT_WAVEFORM_SQUARE
55 enum_type_c<ALUT_WAVEFORM_SQUARE>>
65 #ifdef ALUT_WAVEFORM_SAWTOOTH
66 enum_type_c<ALUT_WAVEFORM_SAWTOOTH>>
76 #ifdef ALUT_WAVEFORM_WHITENOISE
77 enum_type_c<ALUT_WAVEFORM_WHITENOISE>>
87 #ifdef ALUT_WAVEFORM_IMPULSE
88 enum_type_c<ALUT_WAVEFORM_IMPULSE>>
99 #endif // OALPLUS_ALUT_API_CONSTANTS_HPP
typename get_opt_c_api_constant< ClassList, Constant, Tag, IsIndexed >::type opt_c_api_constant
Template alias used for switching between static and dynamic constants.
Definition: c_api_wrap.hpp:175
opt_c_api_constant< mp_list< waveform_function >, enum_type_i > waveform_sine
Definition: constants.hpp:48
opt_c_api_constant< mp_list< alut_error_code >, enum_type_i > no_error
Definition: constants.hpp:37
opt_c_api_constant< mp_list< waveform_function >, enum_type_i > waveform_sawtooth
Definition: constants.hpp:70
opt_c_api_constant< mp_list< waveform_function >, enum_type_i > waveform_square
Definition: constants.hpp:59
al_types::enum_type enum_type
Enum type.
Definition: config.hpp:40
opt_c_api_constant< mp_list< waveform_function >, enum_type_i > waveform_impulse
Definition: constants.hpp:92
Class wrapping the C-functions from the ALUT API.
Definition: c_api.hpp:31
Compile-time type list template.
Definition: mp_list.hpp:20
Class wrapping the constants from the ALUT API.
Definition: constants.hpp:21
Template type used mostly for function type-tag dispatching.
Definition: type_identity.hpp:19
AL-related code is placed in this namespace.
Definition: oalplus.hpp:11
opt_c_api_constant< mp_list< waveform_function >, enum_type_i > waveform_whitenoise
Definition: constants.hpp:81