CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes
edm::IDVectorMap< ID, C, P > Class Template Reference

#include <IDVectorMap.h>

Classes

struct  const_iterator
 
struct  id_iterator
 
struct  match_iterator
 
struct  range
 

Public Types

typedef C::const_iterator container_iterator
 
typedef std::map< ID, C > map
 
typedef map::const_iterator map_iterator
 
typedef C::value_type value_type
 

Public Member Functions

const_iterator begin () const
 
template<typename M >
match_iterator< M > begin (const M &m) const
 
const_iterator end () const
 
template<typename M >
match_iterator< M > end (const M &m) const
 
range get (ID id) const
 
id_iterator id_begin () const
 
id_iterator id_end () const
 
size_t id_size () const
 
 IDVectorMap ()
 
void insert (ID id, const value_type &t)
 
template<typename CI >
void insert (ID id, CI begin, CI end)
 
IDVectorMapoperator= (IDVectorMap const &rhs)
 
void swap (IDVectorMap &other)
 

Private Attributes

collection_
 
map map_
 

Detailed Description

template<typename ID, typename C, typename P>
class edm::IDVectorMap< ID, C, P >

Definition at line 9 of file IDVectorMap.h.

Member Typedef Documentation

◆ container_iterator

template<typename ID, typename C, typename P>
typedef C::const_iterator edm::IDVectorMap< ID, C, P >::container_iterator

Definition at line 12 of file IDVectorMap.h.

◆ map

template<typename ID, typename C, typename P>
typedef std::map<ID, C> edm::IDVectorMap< ID, C, P >::map

Definition at line 13 of file IDVectorMap.h.

◆ map_iterator

template<typename ID, typename C, typename P>
typedef map::const_iterator edm::IDVectorMap< ID, C, P >::map_iterator

Definition at line 14 of file IDVectorMap.h.

◆ value_type

template<typename ID, typename C, typename P>
typedef C::value_type edm::IDVectorMap< ID, C, P >::value_type

Definition at line 11 of file IDVectorMap.h.

Constructor & Destructor Documentation

◆ IDVectorMap()

template<typename ID, typename C, typename P>
edm::IDVectorMap< ID, C, P >::IDVectorMap ( )
inline

Definition at line 74 of file IDVectorMap.h.

74 {}

Member Function Documentation

◆ begin() [1/2]

template<typename ID, typename C, typename P>
const_iterator edm::IDVectorMap< ID, C, P >::begin ( void  ) const
inline

Definition at line 75 of file IDVectorMap.h.

References edm::IDVectorMap< ID, C, P >::map_.

Referenced by edm::IDVectorMap< ID, C, P >::get(), and edm::IDVectorMap< ID, C, P >::insert().

75 { return const_iterator(map_.end(), map_.begin(), map_.begin()->second.begin()); }

◆ begin() [2/2]

template<typename ID, typename C, typename P>
template<typename M >
match_iterator<M> edm::IDVectorMap< ID, C, P >::begin ( const M &  m) const
inline

Definition at line 150 of file IDVectorMap.h.

References visualization-live-secondInstance_cfg::m, and edm::IDVectorMap< ID, C, P >::map_.

150  {
151  return match_iterator<M>(m, map_.end(), map_.begin(), map_.begin()->second.begin());
152  }

◆ end() [1/2]

template<typename ID, typename C, typename P>
const_iterator edm::IDVectorMap< ID, C, P >::end ( void  ) const
inline

◆ end() [2/2]

template<typename ID, typename C, typename P>
template<typename M >
match_iterator<M> edm::IDVectorMap< ID, C, P >::end ( const M &  m) const
inline

◆ get()

template<typename ID, typename C, typename P>
range edm::IDVectorMap< ID, C, P >::get ( ID  id) const
inline

Definition at line 89 of file IDVectorMap.h.

References edm::IDVectorMap< ID, C, P >::begin(), edm::IDVectorMap< ID, C, P >::end(), mps_fire::i, edm::IDVectorMap< ID, C, P >::map_, and FastTimerService_cff::range.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), rrapi.RRApi::count(), util.rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), util.rrapi.RRApi::report(), rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), rrapi.RRApi::tables(), util.rrapi.RRApi::tables(), util.rrapi.RRApi::tags(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().

89  {
91  map_iterator i = map_.find(id);
92  if (i != map_.end()) {
93  begin = i->second.begin();
94  end = i->second.end();
95  } else {
96  begin = end;
97  }
98  return range(begin, end);
99  }
const_iterator end() const
Definition: IDVectorMap.h:76
const_iterator begin() const
Definition: IDVectorMap.h:75
C::const_iterator container_iterator
Definition: IDVectorMap.h:12
map::const_iterator map_iterator
Definition: IDVectorMap.h:14

◆ id_begin()

template<typename ID, typename C, typename P>
id_iterator edm::IDVectorMap< ID, C, P >::id_begin ( ) const
inline

Definition at line 194 of file IDVectorMap.h.

References edm::IDVectorMap< ID, C, P >::map_.

194 { return id_iterator(map_.begin()); }

◆ id_end()

template<typename ID, typename C, typename P>
id_iterator edm::IDVectorMap< ID, C, P >::id_end ( ) const
inline

Definition at line 195 of file IDVectorMap.h.

References edm::IDVectorMap< ID, C, P >::map_.

195 { return id_iterator(map_.end()); }

◆ id_size()

template<typename ID, typename C, typename P>
size_t edm::IDVectorMap< ID, C, P >::id_size ( ) const
inline

Definition at line 196 of file IDVectorMap.h.

References edm::IDVectorMap< ID, C, P >::map_.

196 { return map_.size(); }

◆ insert() [1/2]

template<typename ID, typename C, typename P>
void edm::IDVectorMap< ID, C, P >::insert ( ID  id,
const value_type t 
)
inline

Definition at line 77 of file IDVectorMap.h.

References clone(), l1ctLayer2EG_cff::id, edm::IDVectorMap< ID, C, P >::map_, and submitPVValidationJobs::t.

Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly(), and BeautifulSoup.PageElement::append().

77 { map_[id].push_back(P::clone(t)); }
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135

◆ insert() [2/2]

template<typename ID, typename C, typename P>
template<typename CI >
void edm::IDVectorMap< ID, C, P >::insert ( ID  id,
CI  begin,
CI  end 
)
inline

Definition at line 79 of file IDVectorMap.h.

References edm::IDVectorMap< ID, C, P >::begin(), correctionTermsCaloMet_cff::C, c, clone(), edm::IDVectorMap< ID, C, P >::end(), mps_fire::i, l1ctLayer2EG_cff::id, and edm::IDVectorMap< ID, C, P >::map_.

Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly(), and BeautifulSoup.PageElement::append().

79  {
80  C& c = map_[id];
81  for (CI i = begin; i != end; ++i)
82  c.push_back(P::clone(*i));
83  }
const_iterator end() const
Definition: IDVectorMap.h:76
const_iterator begin() const
Definition: IDVectorMap.h:75
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135

◆ operator=()

template<typename ID, typename C, typename P>
IDVectorMap< ID, C, P > & edm::IDVectorMap< ID, C, P >::operator= ( IDVectorMap< ID, C, P > const &  rhs)
inline

Definition at line 212 of file IDVectorMap.h.

References edm::swap(), and groupFilesInBlocks::temp.

212  {
213  IDVectorMap<ID, C, P> temp(rhs);
214  this->swap(temp);
215  return *this;
216  }
void swap(IDVectorMap &other)
Definition: IDVectorMap.h:206

◆ swap()

template<typename ID, typename C, typename P>
void edm::IDVectorMap< ID, C, P >::swap ( IDVectorMap< ID, C, P > &  other)
inline

Definition at line 206 of file IDVectorMap.h.

References trackingPlots::other.

206  {
207  collection_.swap(other.collection_);
208  map_.swap(other.map_);
209  }

Member Data Documentation

◆ collection_

template<typename ID, typename C, typename P>
C edm::IDVectorMap< ID, C, P >::collection_
private

Definition at line 201 of file IDVectorMap.h.

◆ map_

template<typename ID, typename C, typename P>
map edm::IDVectorMap< ID, C, P >::map_
private