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

#include <DenseSymbolTable.h>

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

 DenseSymbolTable ()=default
 
template<typename container_T >
 DenseSymbolTable (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::VectorContainer< source_T, symbol_T >
const_pointer data () const noexcept
 
const_reference operator[] (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::VectorContainer< source_T, symbol_T >
 VectorContainer ()=default
 
 VectorContainer (size_type size, source_type offset)
 
- 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::DenseSymbolTable< source_T, symbol_T >

Definition at line 34 of file DenseSymbolTable.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 49 of file DenseSymbolTable.h.

◆ const_pointer

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

Definition at line 48 of file DenseSymbolTable.h.

◆ const_reference

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

Definition at line 46 of file DenseSymbolTable.h.

◆ container_type

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

Definition at line 42 of file DenseSymbolTable.h.

◆ difference_type

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

Definition at line 44 of file DenseSymbolTable.h.

◆ pointer

Definition at line 47 of file DenseSymbolTable.h.

◆ reference

Definition at line 45 of file DenseSymbolTable.h.

◆ size_type

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

Definition at line 43 of file DenseSymbolTable.h.

◆ source_type

Definition at line 40 of file DenseSymbolTable.h.

◆ symbol_type

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

Definition at line 41 of file DenseSymbolTable.h.

Constructor & Destructor Documentation

◆ DenseSymbolTable() [1/2]

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

◆ DenseSymbolTable() [2/2]

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

Definition at line 84 of file DenseSymbolTable.h.

Member Function Documentation

◆ getEscapeSymbol()

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

Definition at line 66 of file DenseSymbolTable.h.

◆ getPrecision()

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

Definition at line 72 of file DenseSymbolTable.h.

◆ hasEscapeSymbol()

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

Definition at line 64 of file DenseSymbolTable.h.

◆ isEscapeSymbol() [1/2]

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

Definition at line 68 of file DenseSymbolTable.h.

◆ isEscapeSymbol() [2/2]

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

Definition at line 70 of file DenseSymbolTable.h.

◆ isValidSymbol()

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

Definition at line 75 of file DenseSymbolTable.h.

◆ lookupSafe()

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

Definition at line 133 of file DenseSymbolTable.h.

◆ lookupUnsafe()

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

Definition at line 60 of file DenseSymbolTable.h.

◆ operator[]()

template<class source_T , class value_T >
auto o2::rans::DenseSymbolTable< source_T, value_T >::operator[] ( source_type  sourceSymbol) const
inlinenoexcept

Definition at line 121 of file DenseSymbolTable.h.

◆ size()

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

Definition at line 62 of file DenseSymbolTable.h.

Member Data Documentation

◆ mEscapeSymbol

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

Definition at line 77 of file DenseSymbolTable.h.

◆ mSize

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

Definition at line 78 of file DenseSymbolTable.h.

◆ mSymbolTablePrecision

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

Definition at line 79 of file DenseSymbolTable.h.


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