CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edmNew::dstvdetails::ToRM< B > Struct Template Reference

#include <DetSet2RangeMap.h>

Public Member Functions

template<typename T >
void operator() (edmNew::DetSet< T > const &ds)
 
 ToRM (edm::RangeMap< det_id_type, edm::OwnVector< B > > &irm)
 

Public Attributes

edm::RangeMap< det_id_type, edm::OwnVector< B > > * rm
 

Detailed Description

template<typename B>
struct edmNew::dstvdetails::ToRM< B >

Definition at line 16 of file DetSet2RangeMap.h.

Constructor & Destructor Documentation

template<typename B>
edmNew::dstvdetails::ToRM< B >::ToRM ( edm::RangeMap< det_id_type, edm::OwnVector< B > > &  irm)
inline

Definition at line 17 of file DetSet2RangeMap.h.

17 : rm(&irm) {}
edm::RangeMap< det_id_type, edm::OwnVector< B > > * rm

Member Function Documentation

template<typename B>
template<typename T >
void edmNew::dstvdetails::ToRM< B >::operator() ( edmNew::DetSet< T > const &  ds)
inline

Definition at line 20 of file DetSet2RangeMap.h.

References edmNew::DetSet< T >::begin(), edmNew::DetSet< T >::empty(), edmNew::DetSet< T >::end(), edmNew::DetSet< T >::id(), and edm::RangeMap< ID, C, P >::put().

20  {
21  // make it easy
22  // std::vector<T const *> v(ds.size());
23  //std::transform(ds.begin(),ds.end(),v.begin(),dstvdetails::Pointer());
24  if (!ds.empty())
25  rm->put(ds.id(), ds.begin(), ds.end());
26  }
bool empty() const
Definition: DetSetNew.h:70
void put(ID id, CI begin, CI end)
insert an object range with specified identifier
Definition: RangeMap.h:111
edm::RangeMap< det_id_type, edm::OwnVector< B > > * rm
iterator end()
Definition: DetSetNew.h:56
id_type id() const
Definition: DetSetNew.h:64
iterator begin()
Definition: DetSetNew.h:54

Member Data Documentation

template<typename B>
edm::RangeMap<det_id_type, edm::OwnVector<B> >* edmNew::dstvdetails::ToRM< B >::rm

Definition at line 18 of file DetSet2RangeMap.h.

Referenced by edmNew::copy().