CbmRoot
|
#include <PartitionedSpan.h>
Public Member Functions | |
PartitionedSpan () | |
template<typename Allocator > | |
PartitionedSpan (std::vector< T, Allocator > &container, gsl::span< const size_t > offsets, gsl::span< const u32 > addresses) | |
template<typename Allocator > | |
PartitionedSpan (const std::vector< T, Allocator > &container, gsl::span< const size_t > offsets, gsl::span< const u32 > addresses) | |
template<size_t N> | |
PartitionedSpan (std::array< T, N > &container, gsl::span< const size_t > offsets, gsl::span< const u32 > addresses) | |
template<size_t N> | |
PartitionedSpan (const std::array< T, N > &container, gsl::span< const size_t > offsets, gsl::span< const u32 > addresses) | |
PartitionedSpan (gsl::span< T > data, gsl::span< const size_t > offsets, gsl::span< const u32 > addresses) | |
template<typename U , typename Allocator , typename = detail::EnableOnConst<U, T>> | |
PartitionedSpan (const PartitionedVector< U, Allocator > &container) | |
template<typename U , typename Allocator , typename = detail::EnableOnNonConst<U, T>> | |
PartitionedSpan (PartitionedVector< U, Allocator > &container) | |
template<typename U , typename = detail::EnableOnConst<U, T>> | |
PartitionedSpan (PartitionedSpan< U > other) | |
gsl::span< T > | operator[] (size_t i) const |
u32 | Address (size_t i) const |
std::pair< gsl::span< T >, u32 > | Partition (size_t i) const |
size_t | NPartitions () const |
size_t | Size (size_t i) const |
size_t | NElements () const |
gsl::span< T > | Data () const |
gsl::span< const u32 > | Addresses () const |
gsl::span< const size_t > | Offsets () const |
Private Member Functions | |
void | EnsureDimensions () const |
void | EnsureBounds (size_t i) const |
size_t | UnsafeSize (size_t i) const |
gsl::span< T > | UnsafePartitionSpan (size_t i) const |
Private Attributes | |
gsl::span< T > | fData |
gsl::span< const size_t > | fOffsets |
gsl::span< const u32 > | fAdresses |
Static Private Attributes | |
static constexpr size_t | NullOffset [1] = {0} |
Definition at line 19 of file PartitionedVector.h.
|
inline |
Definition at line 33 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureDimensions().
|
inline |
Definition at line 38 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureDimensions().
|
inline |
Definition at line 49 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureDimensions().
|
inline |
Definition at line 59 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureDimensions().
|
inline |
Definition at line 69 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureDimensions().
|
inline |
Definition at line 78 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureDimensions().
|
inline |
Definition at line 87 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureDimensions().
|
inline |
Definition at line 96 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureDimensions().
|
inline |
Definition at line 105 of file PartitionedSpan.h.
|
inline |
Definition at line 118 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureBounds(), and cbm::algo::PartitionedSpan< T >::fAdresses.
Referenced by PartitionedSpanTest::Ensure(), and TEST_F().
|
inline |
Definition at line 142 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::fAdresses.
|
inline |
Definition at line 140 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::fData.
|
inlineprivate |
Definition at line 167 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::fAdresses.
Referenced by cbm::algo::PartitionedSpan< T >::Address(), cbm::algo::PartitionedSpan< T >::operator[](), cbm::algo::PartitionedSpan< T >::Partition(), and cbm::algo::PartitionedSpan< T >::Size().
|
inlineprivate |
Definition at line 156 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::fAdresses, cbm::algo::PartitionedSpan< T >::fData, and cbm::algo::PartitionedSpan< T >::fOffsets.
Referenced by cbm::algo::PartitionedSpan< T >::PartitionedSpan(), cbm::algo::PartitionedSpan< T >::PartitionedSpan(), cbm::algo::PartitionedSpan< T >::PartitionedSpan(), cbm::algo::PartitionedSpan< T >::PartitionedSpan(), cbm::algo::PartitionedSpan< T >::PartitionedSpan(), cbm::algo::PartitionedSpan< T >::PartitionedSpan(), cbm::algo::PartitionedSpan< T >::PartitionedSpan(), and cbm::algo::PartitionedSpan< T >::PartitionedSpan().
|
inline |
Definition at line 138 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::fData.
Referenced by PartitionedSpanTest::Ensure(), and TEST_F().
|
inline |
Definition at line 130 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::fAdresses.
Referenced by PartitionedSpanTest::Ensure(), cbm::algo::sts::HitfinderChain::SplitHitsIntoStreams(), and TEST_F().
|
inline |
Definition at line 144 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::fOffsets.
|
inline |
Definition at line 112 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureBounds(), and cbm::algo::PartitionedSpan< T >::UnsafePartitionSpan().
|
inline |
Definition at line 124 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureBounds(), cbm::algo::PartitionedSpan< T >::fAdresses, and cbm::algo::PartitionedSpan< T >::UnsafePartitionSpan().
Referenced by PartitionedSpanTest::Ensure(), and TEST_F().
|
inline |
Definition at line 132 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::EnsureBounds(), and cbm::algo::PartitionedSpan< T >::UnsafeSize().
Referenced by PartitionedSpanTest::Ensure(), and TEST_F().
|
inlineprivate |
Definition at line 174 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::fData, cbm::algo::PartitionedSpan< T >::fOffsets, and cbm::algo::PartitionedSpan< T >::UnsafeSize().
Referenced by cbm::algo::PartitionedSpan< T >::operator[](), and cbm::algo::PartitionedSpan< T >::Partition().
|
inlineprivate |
Definition at line 172 of file PartitionedSpan.h.
References cbm::algo::PartitionedSpan< T >::fOffsets.
Referenced by cbm::algo::PartitionedSpan< T >::Size(), and cbm::algo::PartitionedSpan< T >::UnsafePartitionSpan().
|
private |
Definition at line 152 of file PartitionedSpan.h.
Referenced by cbm::algo::PartitionedSpan< T >::Address(), cbm::algo::PartitionedSpan< T >::Addresses(), cbm::algo::PartitionedSpan< T >::EnsureBounds(), cbm::algo::PartitionedSpan< T >::EnsureDimensions(), cbm::algo::PartitionedSpan< T >::NPartitions(), and cbm::algo::PartitionedSpan< T >::Partition().
|
private |
Definition at line 150 of file PartitionedSpan.h.
Referenced by cbm::algo::PartitionedSpan< T >::Data(), cbm::algo::PartitionedSpan< T >::EnsureDimensions(), cbm::algo::PartitionedSpan< T >::NElements(), and cbm::algo::PartitionedSpan< T >::UnsafePartitionSpan().
|
private |
Definition at line 151 of file PartitionedSpan.h.
Referenced by cbm::algo::PartitionedSpan< T >::EnsureDimensions(), cbm::algo::PartitionedSpan< T >::Offsets(), cbm::algo::PartitionedSpan< T >::UnsafePartitionSpan(), and cbm::algo::PartitionedSpan< T >::UnsafeSize().
|
staticconstexprprivate |
Definition at line 148 of file PartitionedSpan.h.