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

#include <AdaptiveSymbolTable.h>

Inherits o2::rans::internal::SparseVectorContainer< 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::SparseVectorContainer< 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

 AdaptiveSymbolTable ()=default
 
template<typename container_T >
 AdaptiveSymbolTable (const RenormedHistogramConcept< container_T > &renormedHistogram)
 
const_reference operator[] (source_type sourceSymbol) const noexcept
 
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::SparseVectorContainer< source_T, symbol_T >
const_reference operator[] (source_type sourceSymbol) const
 
const_reference at (source_type sourceSymbol) const
 
source_type getOffset () const noexcept
 
- 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::SparseVectorContainer< source_T, symbol_T >
 SparseVectorContainer ()=default
 
- 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

symbol_type mEscapeSymbol {}
 
size_type mSize {}
 
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::AdaptiveSymbolTable< source_T, symbol_T >

Definition at line 33 of file AdaptiveSymbolTable.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 48 of file AdaptiveSymbolTable.h.

◆ const_pointer

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

Definition at line 47 of file AdaptiveSymbolTable.h.

◆ const_reference

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

Definition at line 45 of file AdaptiveSymbolTable.h.

◆ container_type

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

Definition at line 41 of file AdaptiveSymbolTable.h.

◆ difference_type

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

Definition at line 43 of file AdaptiveSymbolTable.h.

◆ pointer

Definition at line 46 of file AdaptiveSymbolTable.h.

◆ reference

Definition at line 44 of file AdaptiveSymbolTable.h.

◆ size_type

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

Definition at line 42 of file AdaptiveSymbolTable.h.

◆ source_type

Definition at line 39 of file AdaptiveSymbolTable.h.

◆ symbol_type

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

Definition at line 40 of file AdaptiveSymbolTable.h.

Constructor & Destructor Documentation

◆ AdaptiveSymbolTable() [1/2]

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

◆ AdaptiveSymbolTable() [2/2]

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

Definition at line 95 of file AdaptiveSymbolTable.h.

Member Function Documentation

◆ getEscapeSymbol()

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

Definition at line 74 of file AdaptiveSymbolTable.h.

◆ getPrecision()

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

Definition at line 80 of file AdaptiveSymbolTable.h.

◆ hasEscapeSymbol()

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

Definition at line 72 of file AdaptiveSymbolTable.h.

◆ isEscapeSymbol() [1/2]

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

Definition at line 76 of file AdaptiveSymbolTable.h.

◆ isEscapeSymbol() [2/2]

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

Definition at line 78 of file AdaptiveSymbolTable.h.

◆ isValidSymbol()

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

Definition at line 83 of file AdaptiveSymbolTable.h.

◆ lookupSafe()

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

Definition at line 60 of file AdaptiveSymbolTable.h.

◆ lookupUnsafe()

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

Definition at line 65 of file AdaptiveSymbolTable.h.

◆ operator[]()

template<class source_T , class symbol_T >
const_reference o2::rans::AdaptiveSymbolTable< source_T, symbol_T >::operator[] ( source_type  sourceSymbol) const
inlinenoexcept

Definition at line 55 of file AdaptiveSymbolTable.h.

◆ size()

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

Definition at line 70 of file AdaptiveSymbolTable.h.

Member Data Documentation

◆ mEscapeSymbol

template<class source_T , class symbol_T >
symbol_type o2::rans::AdaptiveSymbolTable< source_T, symbol_T >::mEscapeSymbol {}
protected

Definition at line 88 of file AdaptiveSymbolTable.h.

◆ mSize

template<class source_T , class symbol_T >
size_type o2::rans::AdaptiveSymbolTable< source_T, symbol_T >::mSize {}
protected

Definition at line 89 of file AdaptiveSymbolTable.h.

◆ mSymbolTablePrecision

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

Definition at line 90 of file AdaptiveSymbolTable.h.


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