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 "Acts/Utilities/MultiIndex.hpp"
#include <cstdint>
#include <type_traits>
#include <unordered_set>
#include <boost/mpl/list.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 37 of file MultiIndexTests.cpp.

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

References 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 56 of file MultiIndexTests.cpp.

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

References 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 72 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 72 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 88 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 88 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 105 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 105 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 130 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 130 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 165 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 165 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 ( uint64_sibling  )

Definition at line 172 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 172 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 ( 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(), 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(), and Acts::UnitConstants::u.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( index32_as_key  )

Definition at line 206 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 206 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 222 of file MultiIndexTests.cpp.

View newest version in sPHENIX GitHub at line 222 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