Project
Loading...
Searching...
No Matches
o2::rans::SparseSymbolTable< source_T, symbol_T > Class Template Reference

#include <SparseSymbolTable.h>

Inherits o2::rans::internal::HashContainer< source_T, symbol_T >.

Public Types

using source_type = typename base_type::source_type
 
using symbol_type = typename base_type::value_type
 
using container_type = typename base_type::container_type
 
using size_type = typename base_type::size_type
 
using difference_type = typename base_type::difference_type
 
using reference = typename base_type::reference
 
using const_reference = typename base_type::const_reference
 
using pointer = typename base_type::pointer
 
using const_pointer = typename base_type::const_pointer
 
using const_iterator = typename base_type::const_iterator
 
- Public Types inherited from o2::rans::internal::HashContainer< source_T, symbol_T >
using source_type = typename base_type::source_type
 
using value_type = typename base_type::value_type
 
using container_type = typename base_type::container_type
 
using size_type = typename base_type::size_type
 
using difference_type = typename base_type::difference_type
 
using reference = typename base_type::reference
 
using const_reference = typename base_type::const_reference
 
using pointer = typename base_type::pointer
 
using const_pointer = typename base_type::const_pointer
 
using const_iterator = typename base_type::const_iterator
 
- Public Types inherited from o2::rans::internal::Container< container_T, derived_T >
using source_type = typename container_T::source_type
 
using value_type = typename container_T::value_type
 
using container_type = container_T
 
using size_type = typename container_type::size_type
 
using difference_type = typename container_type::difference_type
 
using reference = typename std::add_lvalue_reference_t< value_type >
 
using const_reference = typename std::add_lvalue_reference_t< std::add_const_t< value_type > >
 
using pointer = typename std::add_pointer_t< value_type >
 
using const_pointer = typename std::add_pointer_t< std::add_const_t< value_type > >
 
using const_iterator = typename container_type::const_iterator
 

Public Member Functions

 SparseSymbolTable ()=default
 
template<typename container_T >
 SparseSymbolTable (const RenormedHistogramConcept< container_T > &renormedHistogram)
 
const_pointer lookupSafe (source_type sourceSymbol) const
 
const_pointer lookupUnsafe (source_type sourceSymbol) const
 
size_type size () const noexcept
 
bool hasEscapeSymbol () const noexcept
 
const_reference getEscapeSymbol () const noexcept
 
bool isEscapeSymbol (const_reference symbol) const noexcept
 
bool isEscapeSymbol (source_type sourceSymbol) const noexcept
 
size_type getPrecision () const noexcept
 
- Public Member Functions inherited from o2::rans::internal::HashContainer< source_T, symbol_T >
const_reference operator[] (source_type sourceSymbol) const
 
source_type getOffset () const noexcept
 
const_reference getNullElement () const
 
- Public Member Functions inherited from o2::rans::internal::Container< container_T, derived_T >
const_reference operator[] (source_type sourceSymbol) const
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
size_type size () const noexcept
 
bool empty () const noexcept
 
size_type getNumSamples () const noexcept
 
source_type getOffset () const noexcept
 
container_type release () &&noexcept
 

Protected Member Functions

bool isValidSymbol (const symbol_type &value) const noexcept
 
- Protected Member Functions inherited from o2::rans::internal::HashContainer< source_T, symbol_T >
 HashContainer ()=default
 
 HashContainer (value_type nullElement)
 
- Protected Member Functions inherited from o2::rans::internal::Container< container_T, derived_T >
template<typename T >
countSamples (T frequency)
 
 Container ()=default
 
 Container (size_type size, source_type offset)
 

Protected Attributes

size_type mSymbolTablePrecision {}
 
- Protected Attributes inherited from o2::rans::internal::Container< container_T, derived_T >
container_type mContainer {}
 
size_type mNSamples {}
 

Detailed Description

template<class source_T, class symbol_T>
class o2::rans::SparseSymbolTable< source_T, symbol_T >

Definition at line 34 of file SparseSymbolTable.h.

Member Typedef Documentation

◆ const_iterator

template<class source_T , class symbol_T >
using o2::rans::SparseSymbolTable< source_T, symbol_T >::const_iterator = typename base_type::const_iterator

Definition at line 49 of file SparseSymbolTable.h.

◆ const_pointer

template<class source_T , class symbol_T >
using o2::rans::SparseSymbolTable< source_T, symbol_T >::const_pointer = typename base_type::const_pointer

Definition at line 48 of file SparseSymbolTable.h.

◆ const_reference

template<class source_T , class symbol_T >
using o2::rans::SparseSymbolTable< source_T, symbol_T >::const_reference = typename base_type::const_reference

Definition at line 46 of file SparseSymbolTable.h.

◆ container_type

template<class source_T , class symbol_T >
using o2::rans::SparseSymbolTable< source_T, symbol_T >::container_type = typename base_type::container_type

Definition at line 42 of file SparseSymbolTable.h.

◆ difference_type

template<class source_T , class symbol_T >
using o2::rans::SparseSymbolTable< source_T, symbol_T >::difference_type = typename base_type::difference_type

Definition at line 44 of file SparseSymbolTable.h.

◆ pointer

Definition at line 47 of file SparseSymbolTable.h.

◆ reference

Definition at line 45 of file SparseSymbolTable.h.

◆ size_type

template<class source_T , class symbol_T >
using o2::rans::SparseSymbolTable< source_T, symbol_T >::size_type = typename base_type::size_type

Definition at line 43 of file SparseSymbolTable.h.

◆ source_type

Definition at line 40 of file SparseSymbolTable.h.

◆ symbol_type

template<class source_T , class symbol_T >
using o2::rans::SparseSymbolTable< source_T, symbol_T >::symbol_type = typename base_type::value_type

Definition at line 41 of file SparseSymbolTable.h.

Constructor & Destructor Documentation

◆ SparseSymbolTable() [1/2]

template<class source_T , class symbol_T >
o2::rans::SparseSymbolTable< source_T, symbol_T >::SparseSymbolTable ( )
default

◆ SparseSymbolTable() [2/2]

template<class source_T , class value_T >
template<typename container_T >
o2::rans::SparseSymbolTable< source_T, value_T >::SparseSymbolTable ( const RenormedHistogramConcept< container_T > &  renormedHistogram)
inline

Definition at line 80 of file SparseSymbolTable.h.

Member Function Documentation

◆ getEscapeSymbol()

template<class source_T , class symbol_T >
const_reference o2::rans::SparseSymbolTable< source_T, symbol_T >::getEscapeSymbol ( ) const
inlinenoexcept

Definition at line 64 of file SparseSymbolTable.h.

◆ getPrecision()

template<class source_T , class symbol_T >
size_type o2::rans::SparseSymbolTable< source_T, symbol_T >::getPrecision ( ) const
inlinenoexcept

Definition at line 70 of file SparseSymbolTable.h.

◆ hasEscapeSymbol()

template<class source_T , class symbol_T >
bool o2::rans::SparseSymbolTable< source_T, symbol_T >::hasEscapeSymbol ( ) const
inlinenoexcept

Definition at line 62 of file SparseSymbolTable.h.

◆ isEscapeSymbol() [1/2]

template<class source_T , class symbol_T >
bool o2::rans::SparseSymbolTable< source_T, symbol_T >::isEscapeSymbol ( const_reference  symbol) const
inlinenoexcept

Definition at line 66 of file SparseSymbolTable.h.

◆ isEscapeSymbol() [2/2]

template<class source_T , class symbol_T >
bool o2::rans::SparseSymbolTable< source_T, symbol_T >::isEscapeSymbol ( source_type  sourceSymbol) const
inlinenoexcept

Definition at line 68 of file SparseSymbolTable.h.

◆ isValidSymbol()

template<class source_T , class symbol_T >
bool o2::rans::SparseSymbolTable< source_T, symbol_T >::isValidSymbol ( const symbol_type value) const
inlineprotectednoexcept

Definition at line 73 of file SparseSymbolTable.h.

◆ lookupSafe()

template<class source_T , class value_T >
auto o2::rans::SparseSymbolTable< source_T, value_T >::lookupSafe ( source_type  sourceSymbol) const
inline

Definition at line 108 of file SparseSymbolTable.h.

◆ lookupUnsafe()

template<class source_T , class symbol_T >
const_pointer o2::rans::SparseSymbolTable< source_T, symbol_T >::lookupUnsafe ( source_type  sourceSymbol) const
inline

Definition at line 58 of file SparseSymbolTable.h.

◆ size()

template<class source_T , class symbol_T >
size_type o2::rans::SparseSymbolTable< source_T, symbol_T >::size ( ) const
inlinenoexcept

Definition at line 60 of file SparseSymbolTable.h.

Member Data Documentation

◆ mSymbolTablePrecision

template<class source_T , class symbol_T >
size_type o2::rans::SparseSymbolTable< source_T, symbol_T >::mSymbolTablePrecision {}
protected

Definition at line 75 of file SparseSymbolTable.h.


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