CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/PhysicsTools/SelectorUtils/src/strbitset.cc

Go to the documentation of this file.
00001 #include "PhysicsTools/SelectorUtils/interface/strbitset.h"
00002 
00003 namespace pat {
00004 
00005 
00006  const std::string strbitset::dummy_ = std::string("");
00007 
00008 
00009   strbitset operator&(const strbitset& l, const strbitset& r) {
00010     strbitset ret = r;
00011     ret &= l;
00012     return ret;
00013   }
00014 
00015   strbitset operator|(const strbitset& l, const strbitset& r) {
00016     strbitset ret = r;
00017     ret |= l;
00018     return ret;
00019   }
00020 
00021   strbitset operator^(const strbitset& l, const strbitset& r){
00022     strbitset ret = r;
00023     ret ^= l;
00024     return ret;
00025   }
00026 
00027   std::ostream & operator<<(std::ostream & out, const strbitset::index_type & r) {
00028     out << r.i_;
00029     return out;
00030   }
00031 
00032 }