Project
Loading...
Searching...
No Matches
testCTFEntropyCoder.cxx File Reference
#include <cassert>
#include <vector>
#include <cstring>
#include <random>
#include <algorithm>
#include <version>
#include <boost/test/unit_test.hpp>
#include <boost/mp11.hpp>
#include <fmt/core.h>
#include "DetectorsCommonDataFormats/internal/Packer.h"
#include "DetectorsCommonDataFormats/internal/ExternalEntropyCoder.h"
#include "DetectorsCommonDataFormats/internal/InplaceEntropyCoder.h"
#include "rANS/histogram.h"
#include "rANS/metrics.h"
#include "rANS/factory.h"
#include "rANS/iterator.h"

Go to the source code of this file.

Classes

class  SourceMessage< source_T >
 
class  SourceMessageProxy< source_T >
 
class  ShiftFunctor< value_T, shift >
 
class  ExternalEncoderDecoderProxy
 

Macros

#define BOOST_TEST_MODULE   Test CTFEntropyCoder class
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Typedefs

using buffer_type = uint32_t
 
using source_types = boost::mp11::mp_list< uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t >
 

Functions

template<typename source_IT >
void encodeInplace (source_IT begin, source_IT end)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testInplaceEncoderEmpty, source_T, source_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testInplaceEncoderPTR, source_T, source_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testInplaceEncoderIter, source_T, source_types)
 
template<typename iterA_T , typename iterB_T , typename F >
auto makeInputIterators (iterA_T iterA, iterB_T iterB, size_t nElements, F functor)
 
 BOOST_AUTO_TEST_CASE (testInplaceEncoderCombinedIterator)
 
template<typename source_IT >
void encodeExternal (source_IT begin, source_IT end)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testExternalEncoderEmpty, source_T, source_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testExternalEncoderPTR, source_T, source_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (testExternalEncoderIter, source_T, source_types)
 
 BOOST_AUTO_TEST_CASE (testExternalEncoderCombinedIterator)
 

Variables

const SourceMessageProxy MessageProxy {}
 
ExternalEncoderDecoderProxy ExternalEncoders {}
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 18 of file testCTFEntropyCoder.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 17 of file testCTFEntropyCoder.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test CTFEntropyCoder class

Definition at line 16 of file testCTFEntropyCoder.cxx.

Typedef Documentation

◆ buffer_type

using buffer_type = uint32_t

Definition at line 43 of file testCTFEntropyCoder.cxx.

◆ source_types

using source_types = boost::mp11::mp_list<uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t>

Definition at line 44 of file testCTFEntropyCoder.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( testExternalEncoderCombinedIterator  )

Definition at line 341 of file testCTFEntropyCoder.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( testInplaceEncoderCombinedIterator  )

Definition at line 196 of file testCTFEntropyCoder.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/6]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testExternalEncoderEmpty  ,
source_T  ,
source_types   
)

Definition at line 323 of file testCTFEntropyCoder.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/6]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testExternalEncoderIter  ,
source_T  ,
source_types   
)

Definition at line 335 of file testCTFEntropyCoder.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/6]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testExternalEncoderPTR  ,
source_T  ,
source_types   
)

Definition at line 329 of file testCTFEntropyCoder.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/6]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testInplaceEncoderEmpty  ,
source_T  ,
source_types   
)

Definition at line 150 of file testCTFEntropyCoder.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/6]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testInplaceEncoderIter  ,
source_T  ,
source_types   
)

Definition at line 162 of file testCTFEntropyCoder.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/6]

BOOST_AUTO_TEST_CASE_TEMPLATE ( testInplaceEncoderPTR  ,
source_T  ,
source_types   
)

Definition at line 156 of file testCTFEntropyCoder.cxx.

◆ encodeExternal()

template<typename source_IT >
void encodeExternal ( source_IT  begin,
source_IT  end 
)

Definition at line 295 of file testCTFEntropyCoder.cxx.

◆ encodeInplace()

template<typename source_IT >
void encodeInplace ( source_IT  begin,
source_IT  end 
)

Definition at line 111 of file testCTFEntropyCoder.cxx.

◆ makeInputIterators()

template<typename iterA_T , typename iterB_T , typename F >
auto makeInputIterators ( iterA_T  iterA,
iterB_T  iterB,
size_t  nElements,
functor 
)

Definition at line 188 of file testCTFEntropyCoder.cxx.

Variable Documentation

◆ ExternalEncoders

ExternalEncoderDecoderProxy ExternalEncoders {}

Definition at line 292 of file testCTFEntropyCoder.cxx.

◆ MessageProxy

const SourceMessageProxy MessageProxy {}
inline

Definition at line 108 of file testCTFEntropyCoder.cxx.