Project
Loading...
Searching...
No Matches
o2::rans::SparseHistogram< source_T > Class Template Reference

#include <SparseHistogram.h>

Inherits o2::rans::internal::SetContainer< source_T, uint32_t >, and o2::rans::internal::HistogramConcept< source_T, internal::SetContainer< source_T, uint32_t >::value_type, internal::SetContainer< source_T, uint32_t >::difference_type, SparseHistogram< source_T > >.

Public Types

using source_type = typename containerBase_type::source_type
 
using value_type = typename containerBase_type::value_type
 
using container_type = typename containerBase_type::container_type
 
using size_type = typename containerBase_type::size_type
 
using difference_type = typename containerBase_type::difference_type
 
using reference = typename containerBase_type::reference
 
using const_reference = typename containerBase_type::const_reference
 
using pointer = typename containerBase_type::pointer
 
using const_pointer = typename containerBase_type::const_pointer
 
using const_iterator = typename containerBase_type::const_iterator
 
- Public Types inherited from o2::rans::internal::SetContainer< source_T, uint32_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 Types inherited from o2::rans::internal::HistogramConcept< source_T, internal::SetContainer< source_T, uint32_t >::value_type, internal::SetContainer< source_T, uint32_t >::difference_type, SparseHistogram< source_T > >
using source_type = source_T
 
using value_type = internal::SetContainer< source_T, uint32_t >::value_type
 
using difference_type = internal::SetContainer< source_T, uint32_t >::difference_type
 

Public Member Functions

 SparseHistogram ()=default
 
template<typename freq_IT >
 SparseHistogram (freq_IT begin, freq_IT end, source_type offset)
 
template<typename source_IT >
auto addSamplesImpl (source_IT begin, source_IT end) -> SparseHistogram &
 
template<typename freq_IT >
auto addFrequenciesImpl (freq_IT begin, freq_IT end, source_type offset) -> SparseHistogram &
 
template<typename source_IT >
derived_T & addSamples (source_IT begin, source_IT end)
 
derived_T & addSamples (gsl::span< const source_type > samples)
 
template<typename freq_IT >
derived_T & addFrequencies (freq_IT begin, freq_IT end, difference_type offset)
 
derived_T & addFrequencies (gsl::span< const value_type > frequencies, difference_type offset)
 
- Public Member Functions inherited from o2::rans::internal::SetContainer< source_T, uint32_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
 
- Public Member Functions inherited from o2::rans::internal::HistogramConcept< source_T, internal::SetContainer< source_T, uint32_t >::value_type, internal::SetContainer< source_T, uint32_t >::difference_type, SparseHistogram< source_T > >
SparseHistogram< source_T > & addSamples (source_IT begin, source_IT end)
 
SparseHistogram< source_T > & addSamples (gsl::span< const source_type > samples)
 
SparseHistogram< source_T > & addFrequencies (freq_IT begin, freq_IT end, difference_type offset)
 
SparseHistogram< source_T > & addFrequencies (gsl::span< const value_type > frequencies, difference_type offset)
 
SparseHistogram< source_T > & operator+ (SparseHistogram< source_T > &other)
 

Protected Member Functions

template<typename source_IT >
SparseHistogramaddSamplesImpl (source_IT begin, source_IT end)
 
SparseHistogramaddSamplesImpl (gsl::span< const source_type > samples)
 
template<typename freq_IT >
SparseHistogramaddFrequenciesImpl (freq_IT begin, freq_IT end, source_type offset)
 
- Protected Member Functions inherited from o2::rans::internal::SetContainer< source_T, uint32_t >
 SetContainer ()=default
 
 SetContainer (value_type nullElement)
 
 SetContainer (container_type container, value_type nullElement, OrderedSetState state=OrderedSetState::unordered)
 
- 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 Member Functions inherited from o2::rans::internal::HistogramConcept< source_T, internal::SetContainer< source_T, uint32_t >::value_type, internal::SetContainer< source_T, uint32_t >::difference_type, SparseHistogram< source_T > >
 HistogramConcept ()=default
 
 HistogramConcept (freq_IT begin, freq_IT end, difference_type offset)
 

Additional Inherited Members

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

Detailed Description

template<typename source_T>
class o2::rans::SparseHistogram< source_T >

Definition at line 27 of file SparseHistogram.h.

Member Typedef Documentation

◆ const_iterator

template<typename source_T >
using o2::rans::SparseHistogram< source_T >::const_iterator = typename containerBase_type::const_iterator

Definition at line 51 of file SparseHistogram.h.

◆ const_pointer

template<typename source_T >
using o2::rans::SparseHistogram< source_T >::const_pointer = typename containerBase_type::const_pointer

Definition at line 50 of file SparseHistogram.h.

◆ const_reference

template<typename source_T >
using o2::rans::SparseHistogram< source_T >::const_reference = typename containerBase_type::const_reference

Definition at line 48 of file SparseHistogram.h.

◆ container_type

template<typename source_T >
using o2::rans::SparseHistogram< source_T >::container_type = typename containerBase_type::container_type

Definition at line 44 of file SparseHistogram.h.

◆ difference_type

template<typename source_T >
using o2::rans::SparseHistogram< source_T >::difference_type = typename containerBase_type::difference_type

Definition at line 46 of file SparseHistogram.h.

◆ pointer

Definition at line 49 of file SparseHistogram.h.

◆ reference

Definition at line 47 of file SparseHistogram.h.

◆ size_type

template<typename source_T >
using o2::rans::SparseHistogram< source_T >::size_type = typename containerBase_type::size_type

Definition at line 45 of file SparseHistogram.h.

◆ source_type

Definition at line 42 of file SparseHistogram.h.

◆ value_type

template<typename source_T >
using o2::rans::SparseHistogram< source_T >::value_type = typename containerBase_type::value_type

Definition at line 43 of file SparseHistogram.h.

Constructor & Destructor Documentation

◆ SparseHistogram() [1/2]

template<typename source_T >
o2::rans::SparseHistogram< source_T >::SparseHistogram ( )
default

◆ SparseHistogram() [2/2]

template<typename source_T >
template<typename freq_IT >
o2::rans::SparseHistogram< source_T >::SparseHistogram ( freq_IT  begin,
freq_IT  end,
source_type  offset 
)
inline

Definition at line 56 of file SparseHistogram.h.

Member Function Documentation

◆ addFrequencies() [1/2]

template<typename source_T >
template<typename freq_IT >
derived_T & o2::rans::internal::HistogramConcept< source_T, value_T, difference_T, derived_T >::addFrequencies ( freq_IT  begin,
freq_IT  end,
difference_type  offset 
)
inline

Definition at line 55 of file HistogramConcept.h.

◆ addFrequencies() [2/2]

template<typename source_T >
derived_T & o2::rans::internal::HistogramConcept< source_T, value_T, difference_T, derived_T >::addFrequencies ( gsl::span< const value_type frequencies,
difference_type  offset 
)
inline

Definition at line 66 of file HistogramConcept.h.

◆ addFrequenciesImpl() [1/2]

template<typename source_T >
template<typename freq_IT >
SparseHistogram & o2::rans::SparseHistogram< source_T >::addFrequenciesImpl ( freq_IT  begin,
freq_IT  end,
source_type  offset 
)
protected

◆ addFrequenciesImpl() [2/2]

template<typename source_T >
template<typename freq_IT >
auto o2::rans::SparseHistogram< source_T >::addFrequenciesImpl ( freq_IT  begin,
freq_IT  end,
source_type  offset 
) -> SparseHistogram&

Definition at line 104 of file SparseHistogram.h.

◆ addSamples() [1/2]

template<typename source_T >
derived_T & o2::rans::internal::HistogramConcept< source_T, value_T, difference_T, derived_T >::addSamples ( gsl::span< const source_type samples)
inline

Definition at line 49 of file HistogramConcept.h.

◆ addSamples() [2/2]

template<typename source_T >
template<typename source_IT >
derived_T & o2::rans::internal::HistogramConcept< source_T, value_T, difference_T, derived_T >::addSamples ( source_IT  begin,
source_IT  end 
)
inline

Definition at line 38 of file HistogramConcept.h.

◆ addSamplesImpl() [1/3]

template<typename source_T >
SparseHistogram & o2::rans::SparseHistogram< source_T >::addSamplesImpl ( gsl::span< const source_type samples)
inlineprotected

Definition at line 67 of file SparseHistogram.h.

◆ addSamplesImpl() [2/3]

template<typename source_T >
template<typename source_IT >
SparseHistogram & o2::rans::SparseHistogram< source_T >::addSamplesImpl ( source_IT  begin,
source_IT  end 
)
protected

◆ addSamplesImpl() [3/3]

template<typename source_T >
template<typename source_IT >
auto o2::rans::SparseHistogram< source_T >::addSamplesImpl ( source_IT  begin,
source_IT  end 
) -> SparseHistogram&

Definition at line 75 of file SparseHistogram.h.


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