Public Types | Static Public Member Functions | List of all members
art::detail::TwoArgInsert< cet::map_vector< T > > Struct Template Reference

#include "/cvmfs/"

Public Types

using mv_t = cet::map_vector< T >

Static Public Member Functions

static void concatenate (mv_t &out, mv_t in)

Detailed Description

template<typename T>
struct art::detail::TwoArgInsert< cet::map_vector< T > >

Definition at line 246 of file CollectionUtilities.h.

Member Typedef Documentation

template<typename T >
using art::detail::TwoArgInsert< cet::map_vector< T > >::mv_t = cet::map_vector<T>

Definition at line 247 of file CollectionUtilities.h.

Member Function Documentation

template<typename T >
static void art::detail::TwoArgInsert< cet::map_vector< T > >::concatenate ( mv_t out,
mv_t  in 

Definition at line 249 of file CollectionUtilities.h.

References art::concatContainers(), art::detail::TwoArgInsert< CONTAINER >::concatenate(), d, in, cet::map_vector< Value >::insert(), art::detail::mix_offset< C >::offset(), confusionMatrixTree::out, and gammaraytel::pr.

250  {
251  // The offset is necessary for concatenating map_vectors so
252  // that all elements will be preserved.
253  auto const d = detail::mix_offset<mv_t>::offset(out);
254  for (auto& pr : in) {
255  pr.first = cet::map_vector_key{pr.first.asInt() + d};
256  }
257  out.insert(in.begin(), in.end());
258  }
static size_t offset(C const &c)
Float_t d
Definition: plot.C:236
ifstream in
Definition: comparison.C:7

The documentation for this struct was generated from the following file: