Unit tests on TupleLookupByTag.h utilities.
More...
#include "lardata/Utilities/TupleLookupByTag.h"#include "larcorealg/CoreUtils/UncopiableAndUnmovableClass.h"#include <tuple>#include <type_traits>#include <memory>#include <utility>#include <cstddef>#include <cassert>Go to the source code of this file.
Classes | |
| struct | TestTagged< Tag > |
| struct | TestTagA |
| struct | TestTagB |
| struct | TestTagC |
| struct | TestExtractTag< Tagged > |
| class | my::MyTuple< Data > |
| class | std::tuple_element< I, my::MyTuple< T... > > |
| class | std::tuple_size< my::MyTuple< T... > > |
| struct | TaggedType< Tag, Payload > |
| struct | TaggedType< Tag, void > |
Namespaces | |
| my | |
Typedefs | |
| using | TestTaggedA = TestTagged< TestTagA > |
| using | TestTaggedB = TestTagged< TestTagB > |
| using | TestTaggedC = TestTagged< TestTagC > |
| using | TestTuple_t = std::tuple< int, char, int > |
| using | TestTaggedTuple_t = std::tuple< TestTaggedA, TestTaggedB, TestTaggedA > |
| using | TagA = util::TagN< 0 > |
| using | TagB = util::TagN< 1 > |
| using | TagC = util::TagN< 2 > |
Functions | |
| template<typename... Data> | |
| auto | my::make_my_tuple (Data &&...data) |
| template<std::size_t I, typename... T> | |
| auto | my::get (MyTuple< T... > const &t) -> decltype(auto) |
| void | testMakeTagged () |
| int | main () |
Unit tests on TupleLookupByTag.h utilities.
Most of the tests are static and their failure will trigger compilation errors.
Definition in file TupleLookupByTag_test.cc.
| using TagA = util::TagN<0> |
Definition at line 359 of file TupleLookupByTag_test.cc.
| using TagB = util::TagN<1> |
Definition at line 360 of file TupleLookupByTag_test.cc.
| using TagC = util::TagN<2> |
Definition at line 361 of file TupleLookupByTag_test.cc.
| using TestTaggedA = TestTagged<TestTagA> |
Definition at line 48 of file TupleLookupByTag_test.cc.
| using TestTaggedB = TestTagged<TestTagB> |
Definition at line 49 of file TupleLookupByTag_test.cc.
| using TestTaggedC = TestTagged<TestTagC> |
Definition at line 50 of file TupleLookupByTag_test.cc.
| using TestTaggedTuple_t = std::tuple<TestTaggedA, TestTaggedB, TestTaggedA> |
Definition at line 53 of file TupleLookupByTag_test.cc.
| using TestTuple_t = std::tuple<int, char, int> |
Definition at line 52 of file TupleLookupByTag_test.cc.
| int main | ( | void | ) |
Definition at line 391 of file TupleLookupByTag_test.cc.
| void testMakeTagged | ( | ) |
Definition at line 364 of file TupleLookupByTag_test.cc.
1.8.11