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

#include <Symbol.h>

Public Types

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

Public Member Functions

constexpr Symbol () noexcept
 
constexpr Symbol (value_type frequency, value_type cumulative, size_t symbolTablePrecision=0)
 
constexpr value_type getFrequency () const noexcept
 
constexpr value_type getCumulative () const noexcept
 
constexpr const value_typedata () const noexcept
 
bool operator== (const Symbol &other) const
 
bool operator!= (const Symbol &other) const
 

Protected Attributes

std::array< value_type, 2 > mSymbol {0, 0}
 

Friends

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

Detailed Description

Definition at line 31 of file Symbol.h.

Member Typedef Documentation

◆ difference_type

Definition at line 36 of file Symbol.h.

◆ size_type

Definition at line 35 of file Symbol.h.

◆ value_type

Definition at line 34 of file Symbol.h.

Constructor & Destructor Documentation

◆ Symbol() [1/2]

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

Definition at line 39 of file Symbol.h.

◆ Symbol() [2/2]

constexpr o2::rans::internal::Symbol::Symbol ( value_type  frequency,
value_type  cumulative,
size_t  symbolTablePrecision = 0 
)
inlineconstexpr

Definition at line 40 of file Symbol.h.

Member Function Documentation

◆ data()

constexpr const value_type * o2::rans::internal::Symbol::data ( ) const
inlineconstexprnoexcept

Definition at line 44 of file Symbol.h.

◆ getCumulative()

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

Definition at line 43 of file Symbol.h.

◆ getFrequency()

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

Definition at line 42 of file Symbol.h.

◆ operator!=()

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

Definition at line 47 of file Symbol.h.

◆ operator==()

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

Definition at line 46 of file Symbol.h.

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 49 of file Symbol.h.

Member Data Documentation

◆ mSymbol

std::array<value_type, 2> o2::rans::internal::Symbol::mSymbol {0, 0}
protected

Definition at line 56 of file Symbol.h.


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