Unit Conversion and Dimensional Analysis Library  2.3.0
A compile-time c++14 unit conversion library
Public Member Functions | Public Attributes | List of all members
units::decibel_scale< T > Struct Template Reference

unit_t scale for representing decibel values. More...

#include <units.h>

Public Member Functions

constexpr decibel_scale (const decibel_scale &)=default
 
decibel_scaleoperator= (const decibel_scale &)=default
 
constexpr decibel_scale (const T value) noexcept
 
template<class... Args>
constexpr decibel_scale (const T value, std::true_type, Args &&...) noexcept
 
constexpr T operator() () const noexcept
 

Public Attributes

m_value
 linearized value

 

Detailed Description

template<typename T>
struct units::decibel_scale< T >

unit_t scale for representing decibel values.

internally stores linearized values. operator() returns the value in dB.

Template Parameters
Tunderlying storage type
See also
unit_t

The documentation for this struct was generated from the following file: