Project
Loading...
Searching...
No Matches
o2::rans::internal::PrecomputedSymbol Class Reference

#include <Symbol.h>

Public Types

using value_type = count_t
 
using state_type = uint64_t
 
using size_type = size_t
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

constexpr PrecomputedSymbol () noexcept
 
constexpr PrecomputedSymbol (value_type frequency, value_type cumulative, size_t symbolTablePrecision)
 
constexpr value_type getFrequency () const noexcept
 
constexpr value_type getCumulative () const noexcept
 
constexpr state_type getReciprocalFrequency () const noexcept
 
constexpr value_type getFrequencyComplement () const noexcept
 
constexpr value_type getReciprocalShift () const noexcept
 
bool operator== (const PrecomputedSymbol &other) const
 
bool operator!= (const PrecomputedSymbol &other) const
 

Friends

std::ostream & operator<< (std::ostream &os, const PrecomputedSymbol &symbol)
 

Detailed Description

Definition at line 94 of file Symbol.h.

Member Typedef Documentation

◆ difference_type

Definition at line 100 of file Symbol.h.

◆ size_type

Definition at line 99 of file Symbol.h.

◆ state_type

Definition at line 98 of file Symbol.h.

◆ value_type

Constructor & Destructor Documentation

◆ PrecomputedSymbol() [1/2]

constexpr o2::rans::internal::PrecomputedSymbol::PrecomputedSymbol ( )
inlineconstexprnoexcept

Definition at line 103 of file Symbol.h.

◆ PrecomputedSymbol() [2/2]

constexpr o2::rans::internal::PrecomputedSymbol::PrecomputedSymbol ( value_type  frequency,
value_type  cumulative,
size_t  symbolTablePrecision 
)
inlineconstexpr

Definition at line 105 of file Symbol.h.

Member Function Documentation

◆ getCumulative()

constexpr value_type o2::rans::internal::PrecomputedSymbol::getCumulative ( ) const
inlineconstexprnoexcept

Definition at line 184 of file Symbol.h.

◆ getFrequency()

constexpr value_type o2::rans::internal::PrecomputedSymbol::getFrequency ( ) const
inlineconstexprnoexcept

Definition at line 183 of file Symbol.h.

◆ getFrequencyComplement()

constexpr value_type o2::rans::internal::PrecomputedSymbol::getFrequencyComplement ( ) const
inlineconstexprnoexcept

Definition at line 186 of file Symbol.h.

◆ getReciprocalFrequency()

constexpr state_type o2::rans::internal::PrecomputedSymbol::getReciprocalFrequency ( ) const
inlineconstexprnoexcept

Definition at line 185 of file Symbol.h.

◆ getReciprocalShift()

constexpr value_type o2::rans::internal::PrecomputedSymbol::getReciprocalShift ( ) const
inlineconstexprnoexcept

Definition at line 187 of file Symbol.h.

◆ operator!=()

bool o2::rans::internal::PrecomputedSymbol::operator!= ( const PrecomputedSymbol other) const
inline

Definition at line 189 of file Symbol.h.

◆ operator==()

bool o2::rans::internal::PrecomputedSymbol::operator== ( const PrecomputedSymbol other) const
inline

Definition at line 188 of file Symbol.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const PrecomputedSymbol symbol 
)
friend

Definition at line 191 of file Symbol.h.


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