CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::ModuleLabelSelector Class Reference

#include <Selector.h>

Inheritance diagram for edm::ModuleLabelSelector:
edm::SelectorBase

Public Member Functions

virtual ModuleLabelSelectorclone () const
 
virtual bool doMatch (ConstBranchDescription const &p) const
 
 ModuleLabelSelector (const std::string &label)
 
- Public Member Functions inherited from edm::SelectorBase
bool match (ConstBranchDescription const &p) const
 
virtual ~SelectorBase ()
 

Private Attributes

std::string label_
 

Detailed Description

Class ModuleLabelSelector. Selects EDProducts based upon module label.

Definition at line 122 of file Selector.h.

Constructor & Destructor Documentation

edm::ModuleLabelSelector::ModuleLabelSelector ( const std::string &  label)
inline

Definition at line 124 of file Selector.h.

Referenced by clone().

124  :
125  label_(label) {
126  }

Member Function Documentation

virtual ModuleLabelSelector* edm::ModuleLabelSelector::clone ( void  ) const
inlinevirtual

Implements edm::SelectorBase.

Definition at line 132 of file Selector.h.

References ModuleLabelSelector().

132  {
133  return new ModuleLabelSelector(*this);
134  }
ModuleLabelSelector(const std::string &label)
Definition: Selector.h:124
virtual bool edm::ModuleLabelSelector::doMatch ( ConstBranchDescription const &  p) const
inlinevirtual

Implements edm::SelectorBase.

Definition at line 128 of file Selector.h.

References label_, and edm::ConstBranchDescription::moduleLabel().

128  {
129  return p.moduleLabel() == label_;
130  }

Member Data Documentation

std::string edm::ModuleLabelSelector::label_
private