CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
StatusSelector Struct Reference

#include <StatusSelector.h>

Public Member Functions

template<typename T >
bool operator() (const T &t) const
 
StatusSelectoroperator== (const StatusSelector &o)
 
 StatusSelector (const std::vector< int > &status)
 
 StatusSelector (const StatusSelector &o)
 

Private Attributes

std::vector< int >::const_iterator begin_
 
std::vector< int >::const_iterator end_
 
std::vector< int > status_
 

Detailed Description

Definition at line 12 of file StatusSelector.h.

Constructor & Destructor Documentation

StatusSelector::StatusSelector ( const std::vector< int > &  status)
inline

Definition at line 13 of file StatusSelector.h.

References begin_, end_, mps_fire::i, and status_.

13  {
14  for (std::vector<int>::const_iterator i = status.begin(); i != status.end(); ++i)
15  status_.push_back(*i);
16  begin_ = status_.begin();
17  end_ = status_.end();
18  }
std::vector< int >::const_iterator end_
std::vector< int > status_
list status
Definition: mps_update.py:107
std::vector< int >::const_iterator begin_
StatusSelector::StatusSelector ( const StatusSelector o)
inline

Definition at line 19 of file StatusSelector.h.

19 : status_(o.status_), begin_(status_.begin()), end_(status_.end()) {}
std::vector< int >::const_iterator end_
std::vector< int > status_
std::vector< int >::const_iterator begin_

Member Function Documentation

template<typename T >
bool StatusSelector::operator() ( const T t) const
inline

Definition at line 25 of file StatusSelector.h.

References begin_, end_, and spr::find().

25  {
26  return std::find(begin_, end_, t.status()) != end_;
27  }
std::vector< int >::const_iterator end_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
std::vector< int >::const_iterator begin_
StatusSelector& StatusSelector::operator== ( const StatusSelector o)
inline

Definition at line 20 of file StatusSelector.h.

References class-composition::o.

20  {
21  *this = o;
22  return *this;
23  }

Member Data Documentation

std::vector<int>::const_iterator StatusSelector::begin_
private

Definition at line 31 of file StatusSelector.h.

Referenced by operator()(), and StatusSelector().

std::vector<int>::const_iterator StatusSelector::end_
private

Definition at line 31 of file StatusSelector.h.

Referenced by operator()(), and StatusSelector().

std::vector<int> StatusSelector::status_
private

Definition at line 30 of file StatusSelector.h.

Referenced by StatusSelector().