Container utils
Detailed DescriptionFunction Documentation◆ filter_discard() [1/2]
template<typename CONTAINER , typename FN >
Filter a collection by copy, removing the subset that passes the supplied function
<
References Rivet::ifilter_discard(). ◆ filter_discard() [2/2]
template<typename CONTAINER , typename FN >
Filter a collection by copy into a supplied container, removing the subset that passes the supplied function
References Rivet::filter_discard(). ◆ filter_select() [1/2]
template<typename CONTAINER , typename FN >
Filter a collection by copy, keeping the subset that passes the supplied function
<
References Rivet::ifilter_select(). ◆ filter_select() [2/2]
template<typename CONTAINER , typename FN >
Filter a collection by copy into a supplied container, keeping the subset that passes the supplied function
References Rivet::filter_select(). ◆ head()
template<typename CONTAINER >
Head slice of the n first container elements. Negative n means to take the head excluding the n -element tail ◆ ifilter_discard()
template<typename CONTAINER , typename FN >
Filter a collection in-place, removing the subset that passes the supplied function
◆ ifilter_select()
template<typename CONTAINER , typename FN >
Filter a collection in-place, keeping the subset that passes the supplied function
References Rivet::ifilter_discard(). ◆ isum() [1/2]
template<typename CONTAINER , typename FN , typename T >
In-place generic sum function, adding fn(
◆ isum() [2/2]
template<typename CONTAINER , typename T >
In-place generic sum function, adding
◆ slice() [1/2]
template<typename CONTAINER >
Tail slice of the container elements cf. Python's [i:] syntax. Single-index specialisation of References Rivet::slice(). ◆ slice() [2/2]
template<typename CONTAINER >
Slice of the container elements cf. Python's [i:j] syntax. The element at the j index is not included in the returned container. i and j can be negative, treated as backward offsets from the end of the container. Referenced by Rivet::DressedLepton::photons(), and Rivet::slice(). ◆ sum() [1/2]
template<typename CONTAINER >
Generic sum function, adding
Referenced by Rivet::PercentileProjection::PercentileProjection(). ◆ sum() [2/2]
template<typename CONTAINER , typename T >
Generic sum function, adding
◆ tail()
template<typename CONTAINER >
Tail slice of the n last container elements. Negative n means to take the tail from after the n th element ◆ transform()
template<typename CONTAINER1 , typename T2 >
A single-container-arg, return-value version of std::transform, aka
Referenced by Rivet::toLower(), Rivet::toUpper(), and Rivet::transform(). Generated on Fri May 13 2022 23:02:06 for Rivet by |