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

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Persistency/Common/CollectionUtilities.h"

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 248 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 249 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 
)
inlinestatic

Definition at line 251 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.

252  {
253  // The offset is necessary for concatenating map_vectors so
254  // that all elements will be preserved.
255  auto const d = detail::mix_offset<mv_t>::offset(out);
256  for (auto& pr : in) {
257  pr.first = cet::map_vector_key{pr.first.asInt() + d};
258  }
259  out.insert(in.begin(), in.end());
260  }
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: