ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::bins::dynamic_array< entry_t >::data Struct Reference

Metadata describing one bin's range in shared storage. More...

#include <detray/utils/grid/grid_bins.hpp>

Public Member Functions

constexpr bool operator== (const data &rhs) const =default
 Compares the bin metadata fields.
constexpr void update_offset (std::size_t shift)
 Moves this bin's starting offset by a storage shift.

Public Attributes

dindex capacity {0u}
 Number of storage slots reserved for this bin.
dindex offset {0u}
 Offset of this bin in the shared entry storage.
dindex size {0u}
 Number of valid entries in this bin.

Detailed Description

template<typename entry_t>
struct detray::bins::dynamic_array< entry_t >::data

Metadata describing one bin's range in shared storage.

Member Function Documentation

◆ operator==()

template<typename entry_t>
bool detray::bins::dynamic_array< entry_t >::data::operator== ( const data & rhs) const
constexprdefault

Compares the bin metadata fields.

Parameters
rhsMetadata to compare with.
Returns
Whether all metadata fields are equal.

◆ update_offset()

template<typename entry_t>
void detray::bins::dynamic_array< entry_t >::data::update_offset ( std::size_t shift)
constexpr

Moves this bin's starting offset by a storage shift.

Parameters
shiftNumber of storage slots by which to advance the offset.