ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MultiIndexTests.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <cstdint>
#include <type_traits>
#include <unordered_set>
#include <boost/mpl/list.hpp>
#include "Acts/Utilities/MultiIndex.hpp"
+ Include dependency graph for MultiIndexTests.cpp:

Go to the source code of this file.

Typedefs

using Index32 = Acts::MultiIndex< uint32_t, 16, 8, 8 >
 
using Index64 = Acts::MultiIndex< uint64_t, 13, 17, 21, 13 >
 
using Indices = boost::mpl::list< Index32, Index64 >
 

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (triviality, T, Indices)
 
 BOOST_AUTO_TEST_CASE (index32_construct)
 
 BOOST_AUTO_TEST_CASE (index32_set)
 
 BOOST_AUTO_TEST_CASE (index32_set_overflow)
 
 BOOST_AUTO_TEST_CASE (index64_set_overflow)
 
 BOOST_AUTO_TEST_CASE (index32_encode)
 
 BOOST_AUTO_TEST_CASE (index64_encode)
 
 BOOST_AUTO_TEST_CASE (uint32_sibling)
 
 BOOST_AUTO_TEST_CASE (uint64_sibling)
 
 BOOST_AUTO_TEST_CASE (uint32_descendant)
 
 BOOST_AUTO_TEST_CASE (uint64_descendant)
 
 BOOST_AUTO_TEST_CASE (index32_as_key)
 
 BOOST_AUTO_TEST_CASE (index64_as_key)
 

Typedef Documentation

using Index32 = Acts::MultiIndex<uint32_t, 16, 8, 8>

Definition at line 20 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 20 of file MultiIndexTests.cpp

using Index64 = Acts::MultiIndex<uint64_t, 13, 17, 21, 13>

Definition at line 22 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 22 of file MultiIndexTests.cpp

using Indices = boost::mpl::list<Index32, Index64>

Definition at line 23 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 23 of file MultiIndexTests.cpp

Function Documentation

BOOST_AUTO_TEST_CASE ( index32_construct  )

Definition at line 38 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 38 of file MultiIndexTests.cpp

References incremental_prev_tag::idx, Acts::MultiIndex< T, BitsPerLevel >::level(), Acts::UnitConstants::u, and Acts::MultiIndex< T, BitsPerLevel >::value().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( index32_set  )

Definition at line 57 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 57 of file MultiIndexTests.cpp

References incremental_prev_tag::idx, Acts::MultiIndex< T, BitsPerLevel >::level(), Acts::MultiIndex< T, BitsPerLevel >::set(), Acts::UnitConstants::u, Acts::MultiIndex< T, BitsPerLevel >::value(), and Acts::MultiIndex< T, BitsPerLevel >::Zeros().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( index32_set_overflow  )

Definition at line 73 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 73 of file MultiIndexTests.cpp

References Acts::UnitConstants::u, and Acts::MultiIndex< T, BitsPerLevel >::Zeros().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( index64_set_overflow  )

Definition at line 89 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 89 of file MultiIndexTests.cpp

References Acts::UnitConstants::u, and Acts::MultiIndex< T, BitsPerLevel >::Zeros().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( index32_encode  )

Definition at line 106 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 106 of file MultiIndexTests.cpp

References Acts::MultiIndex< T, BitsPerLevel >::Encode(), Acts::UnitConstants::u, and Acts::MultiIndex< T, BitsPerLevel >::Zeros().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( index64_encode  )

Definition at line 131 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 131 of file MultiIndexTests.cpp

References Acts::MultiIndex< T, BitsPerLevel >::Encode(), Acts::UnitConstants::u, and Acts::MultiIndex< T, BitsPerLevel >::Zeros().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( uint32_sibling  )

Definition at line 166 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 166 of file MultiIndexTests.cpp

References Acts::MultiIndex< T, BitsPerLevel >::Encode(), incremental_prev_tag::idx, and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( uint64_sibling  )

Definition at line 173 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 173 of file MultiIndexTests.cpp

References Acts::MultiIndex< T, BitsPerLevel >::Encode(), incremental_prev_tag::idx, and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( uint32_descendant  )

Definition at line 181 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 181 of file MultiIndexTests.cpp

References Acts::MultiIndex< T, BitsPerLevel >::Encode(), incremental_prev_tag::idx, and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( uint64_descendant  )

Definition at line 189 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 189 of file MultiIndexTests.cpp

References Acts::MultiIndex< T, BitsPerLevel >::Encode(), incremental_prev_tag::idx, max3(), and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( index32_as_key  )

Definition at line 204 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 204 of file MultiIndexTests.cpp

References Acts::MultiIndex< T, BitsPerLevel >::Encode(), and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( index64_as_key  )

Definition at line 220 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 220 of file MultiIndexTests.cpp

References Acts::MultiIndex< T, BitsPerLevel >::Encode(), and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE_TEMPLATE ( triviality  ,
T  ,
Indices   
)

Definition at line 25 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 25 of file MultiIndexTests.cpp