![]() |
Project
|
#include <boost/test/unit_test.hpp>
#include <boost/mpl/vector.hpp>
#include <vector>
#include <numeric>
#include <iterator>
#include "rANS/histogram.h"
#include "rANS/internal/containers/DenseSymbolTable.h"
#include "rANS/internal/containers/AdaptiveSymbolTable.h"
#include "rANS/internal/containers/SparseSymbolTable.h"
#include "rANS/internal/containers/Symbol.h"
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE Utility test |
#define | BOOST_TEST_MAIN |
#define | BOOST_TEST_DYN_LINK |
Typedefs | |
using | histogram_t = boost::mpl::vector< DenseHistogram< uint8_t >, DenseHistogram< int8_t >, DenseHistogram< uint16_t >, DenseHistogram< int16_t >, DenseHistogram< uint32_t >, DenseHistogram< int32_t >, AdaptiveHistogram< uint32_t >, AdaptiveHistogram< int32_t >, SparseHistogram< uint32_t >, SparseHistogram< int32_t > > |
Functions | |
template<typename T > | |
size_t | getNUniqueSymbols (const T &container) |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_empty, histogram_T, histogram_t) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_symbolTable, histogram_T, histogram_t) | |
Definition in file test_ransSymbolTables.cxx.
#define BOOST_TEST_DYN_LINK |
Definition at line 18 of file test_ransSymbolTables.cxx.
#define BOOST_TEST_MAIN |
Definition at line 17 of file test_ransSymbolTables.cxx.
#define BOOST_TEST_MODULE Utility test |
Definition at line 16 of file test_ransSymbolTables.cxx.
using histogram_t = boost::mpl::vector<DenseHistogram<uint8_t>, DenseHistogram<int8_t>, DenseHistogram<uint16_t>, DenseHistogram<int16_t>, DenseHistogram<uint32_t>, DenseHistogram<int32_t>, AdaptiveHistogram<uint32_t>, AdaptiveHistogram<int32_t>, SparseHistogram<uint32_t>, SparseHistogram<int32_t> > |
Definition at line 41 of file test_ransSymbolTables.cxx.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_empty | , |
histogram_T | , | ||
histogram_t | |||
) |
Definition at line 52 of file test_ransSymbolTables.cxx.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_symbolTable | , |
histogram_T | , | ||
histogram_t | |||
) |
Definition at line 98 of file test_ransSymbolTables.cxx.
size_t getNUniqueSymbols | ( | const T & | container | ) |
Definition at line 36 of file test_ransSymbolTables.cxx.