WPILibC++ 2024.3.2
units::decibel_scale< T > Struct Template Reference

unit_t scale for representing decibel values. More...

#include <units/base.h>

Public Member Functions

constexpr decibel_scale ()=default
 
constexpr decibel_scale (const decibel_scale &)=default
 
 ~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 More...
 

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

Constructor & Destructor Documentation

◆ decibel_scale() [1/4]

template<typename T >
constexpr units::decibel_scale< T >::decibel_scale ( )
inlineconstexprdefault

◆ decibel_scale() [2/4]

template<typename T >
constexpr units::decibel_scale< T >::decibel_scale ( const decibel_scale< T > &  )
inlineconstexprdefault

◆ ~decibel_scale()

template<typename T >
units::decibel_scale< T >::~decibel_scale ( )
inlinedefault

◆ decibel_scale() [3/4]

template<typename T >
constexpr units::decibel_scale< T >::decibel_scale ( const T  value)
inlineconstexprnoexcept

◆ decibel_scale() [4/4]

template<typename T >
template<class... Args>
constexpr units::decibel_scale< T >::decibel_scale ( const T  value,
std::true_type  ,
Args &&  ... 
)
inlineconstexprnoexcept

Member Function Documentation

◆ operator()()

template<typename T >
constexpr T units::decibel_scale< T >::operator() ( ) const
inlineconstexprnoexcept

◆ operator=()

template<typename T >
decibel_scale & units::decibel_scale< T >::operator= ( const decibel_scale< T > &  )
inlinedefault

Member Data Documentation

◆ m_value

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

linearized value


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