CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 edmNew::dstvdetails::ToRM< B >::rm.

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()) rm->put(ds.id(), ds.begin(), ds.end());
25  }
bool empty() const
Definition: DetSetNew.h:89
edm::RangeMap< det_id_type, edm::OwnVector< B > > * rm
iterator end()
Definition: DetSetNew.h:70
id_type id() const
Definition: DetSetNew.h:80
iterator begin()
Definition: DetSetNew.h:67

Member Data Documentation

Definition at line 18 of file DetSet2RangeMap.h.

Referenced by edmNew::dstvdetails::ToRM< B >::operator()().