units_traits_is_nonlinear_scale(3)
| units::traits::is_nonlinear_scale< T, Ret >(3) | Unit Conversion and Dimensional Analysis Library | units::traits::is_nonlinear_scale< T, Ret >(3) |
NAME
units::traits::is_nonlinear_scale< T, Ret > - Trait which tests that class T meets the requirements for a non-linear scale.
SYNOPSIS
#include <units.h>
Inherits std::integral_constant< bool, std::is_default_constructible< T >::value &&has_operator_parenthesis< T, Ret >::value &&has_value_member< T, Ret >::value &&std::is_trivial< T >::value >.
Detailed Description
template<class T, class Ret>
struct units::traits::is_nonlinear_scale< T, Ret >"Trait which tests that class T meets the requirements for a non-linear scale.
A non-linear scale must:
- be default constructible
- have an operator() member which returns the non-linear value stored in the scale
- have an accessible m_value member type which stores the linearized value in the scale.
Linear/nonlinear scales are used by units::unit to store values and scale them if they represent things like dB.
Author
Generated automatically by Doxygen for Unit Conversion and Dimensional Analysis Library from the source code.
| Wed Mar 29 2023 | Version 2.3.0 |
