CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Attributes
edm::ThinnedRefSet< C > Class Template Reference

#include <ThinnedRefSet.h>

Classes

class  Filler
 

Public Member Functions

void clear ()
 
bool contains (unsigned int key) const
 
Filler fill (RefProd< C > thinned, edm::EDProductGetter const &prodGetter)
 
 ThinnedRefSet (ThinnedRefSetMode mode=ThinnedRefSetMode::throwOnInvalidParentRef)
 

Private Attributes

ThinnedRefSetMode invalidParentRefMode_
 
std::unordered_set< unsigned int > keys_
 

Detailed Description

template<typename C>
class edm::ThinnedRefSet< C >

Definition at line 57 of file ThinnedRefSet.h.

Constructor & Destructor Documentation

◆ ThinnedRefSet()

Definition at line 85 of file ThinnedRefSet.h.

Member Function Documentation

◆ clear()

template<typename C>
void edm::ThinnedRefSet< C >::clear ( void  )
inline

Definition at line 92 of file ThinnedRefSet.h.

92 { keys_.clear(); }

References edm::ThinnedRefSet< C >::keys_.

Referenced by BeautifulSoup.Tag::setString().

◆ contains()

template<typename C>
bool edm::ThinnedRefSet< C >::contains ( unsigned int  key) const
inline

Definition at line 94 of file ThinnedRefSet.h.

94 { return keys_.find(key) != keys_.end(); }

References crabWrapper::key, and edm::ThinnedRefSet< C >::keys_.

Referenced by LumiList.LumiList::__contains__().

◆ fill()

template<typename C>
Filler edm::ThinnedRefSet< C >::fill ( RefProd< C >  thinned,
edm::EDProductGetter const &  prodGetter 
)
inline

Definition at line 88 of file ThinnedRefSet.h.

88  {
89  return Filler(this, thinned, prodGetter);
90  }

Member Data Documentation

◆ invalidParentRefMode_

template<typename C>
ThinnedRefSetMode edm::ThinnedRefSet< C >::invalidParentRefMode_
private

Definition at line 98 of file ThinnedRefSet.h.

◆ keys_

template<typename C>
std::unordered_set<unsigned int> edm::ThinnedRefSet< C >::keys_
private
edm::ThinnedRefSet::invalidParentRefMode_
ThinnedRefSetMode invalidParentRefMode_
Definition: ThinnedRefSet.h:98
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
edm::ThinnedRefSet::keys_
std::unordered_set< unsigned int > keys_
Definition: ThinnedRefSet.h:97
crabWrapper.key
key
Definition: crabWrapper.py:19