JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::BlocksProtocol::IntegerWithBitSize< numBits > Struct Template Reference

Helper class to define an integer with a specific bit size. More...

#include <juce_BitPackingUtilities.h>

Inheritance diagram for juce::BlocksProtocol::IntegerWithBitSize< numBits >:
Collaboration diagram for juce::BlocksProtocol::IntegerWithBitSize< numBits >:

Public Types

enum  {
  bits = numBits,
  maxValue = static_cast<uint32> ((1ULL << numBits) - 1ULL)
}
 

Public Member Functions

 IntegerWithBitSize () noexcept=default
 
 IntegerWithBitSize (const IntegerWithBitSize &) noexcept=default
 
 IntegerWithBitSize (uint32 v) noexcept
 
uint32 get () const noexcept
 
uint8 getScaledToByte () const noexcept
 
 operator uint32 () const noexcept
 
IntegerWithBitSizeoperator= (const IntegerWithBitSize &) noexcept=default
 
float toBipolarFloat () const noexcept
 
float toUnipolarFloat () const noexcept
 

Static Public Member Functions

static IntegerWithBitSize fromBipolarFloat (float value) noexcept
 
static IntegerWithBitSize fromUnipolarFloat (float value) noexcept
 

Public Attributes

uint32 value = 0
 

Detailed Description

template<int numBits>
struct juce::BlocksProtocol::IntegerWithBitSize< numBits >

Helper class to define an integer with a specific bit size.

{Blocks}

Member Enumeration Documentation

◆ anonymous enum

template<int numBits>
anonymous enum
Enumerator
bits 
maxValue 

Constructor & Destructor Documentation

◆ IntegerWithBitSize() [1/3]

◆ IntegerWithBitSize() [2/3]

template<int numBits>
juce::BlocksProtocol::IntegerWithBitSize< numBits >::IntegerWithBitSize ( const IntegerWithBitSize< numBits > &  )
defaultnoexcept

◆ IntegerWithBitSize() [3/3]

template<int numBits>
juce::BlocksProtocol::IntegerWithBitSize< numBits >::IntegerWithBitSize ( uint32  v)
inlinenoexcept

Member Function Documentation

◆ fromBipolarFloat()

template<int numBits>
static IntegerWithBitSize juce::BlocksProtocol::IntegerWithBitSize< numBits >::fromBipolarFloat ( float  value)
inlinestaticnoexcept

◆ fromUnipolarFloat()

template<int numBits>
static IntegerWithBitSize juce::BlocksProtocol::IntegerWithBitSize< numBits >::fromUnipolarFloat ( float  value)
inlinestaticnoexcept

◆ get()

◆ getScaledToByte()

template<int numBits>
uint8 juce::BlocksProtocol::IntegerWithBitSize< numBits >::getScaledToByte ( ) const
inlinenoexcept

◆ operator uint32()

template<int numBits>
juce::BlocksProtocol::IntegerWithBitSize< numBits >::operator uint32 ( ) const
inlinenoexcept

◆ operator=()

template<int numBits>
IntegerWithBitSize& juce::BlocksProtocol::IntegerWithBitSize< numBits >::operator= ( const IntegerWithBitSize< numBits > &  )
defaultnoexcept

◆ toBipolarFloat()

template<int numBits>
float juce::BlocksProtocol::IntegerWithBitSize< numBits >::toBipolarFloat ( ) const
inlinenoexcept

◆ toUnipolarFloat()

template<int numBits>
float juce::BlocksProtocol::IntegerWithBitSize< numBits >::toUnipolarFloat ( ) const
inlinenoexcept

Member Data Documentation

◆ value


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