ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::complete< kSORT > Struct Template Reference

A complete populator that adds entries to a bin which contains an array of entries until it is completed - ignored afterwards. More...

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

Public Member Functions

template<typename bin_t, typename entry_t>
void operator() (bin_t &&bin, entry_t &&entry) const
 Complete the bin content with a new entry - forwarding.

Detailed Description

template<bool kSORT = false>
struct detray::complete< kSORT >

A complete populator that adds entries to a bin which contains an array of entries until it is completed - ignored afterwards.

Template Parameters
kSORTsort the entries in the bin content

Member Function Documentation

◆ operator()()

template<bool kSORT = false>
template<typename bin_t, typename entry_t>
void detray::complete< kSORT >::operator() ( bin_t && bin,
entry_t && entry ) const

Complete the bin content with a new entry - forwarding.

Parameters
binthe bin for which to replace the content
entryEntry repeated until the bin reaches capacity.