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 Types | Private Member Functions | Private Attributes
reco::HLTResult< numberOfBits, word > Class Template Reference

#include <HLTResult.h>

Public Member Functions

 HLTResult ()
 
 HLTResult (word w[])
 
template<unsigned short i>
bool match () const
 
template<unsigned short i>
void set ()
 
template<unsigned short i>
void unSet ()
 

Private Types

enum  { wordSize = sizeof( word ), size = 1 + ( numberOfBits - 1 ) / wordSize }
 
typedef hlt::wordConstants
< numberOfBits, word > 
wordConstants
 

Private Member Functions

 BOOST_STATIC_ASSERT (numberOfBits > 0)
 

Private Attributes

word words_ [size]
 

Detailed Description

template<unsigned int numberOfBits, typename word = unsigned short>
class reco::HLTResult< numberOfBits, word >

Definition at line 39 of file HLTResult.h.

Member Typedef Documentation

template<unsigned int numberOfBits, typename word = unsigned short>
typedef hlt::wordConstants<numberOfBits, word> reco::HLTResult< numberOfBits, word >::wordConstants
private

Definition at line 62 of file HLTResult.h.

Member Enumeration Documentation

template<unsigned int numberOfBits, typename word = unsigned short>
anonymous enum
private
Enumerator
wordSize 
size 

Definition at line 63 of file HLTResult.h.

63 { wordSize = sizeof( word ), size = 1 + ( numberOfBits - 1 ) / wordSize };

Constructor & Destructor Documentation

template<unsigned int numberOfBits, typename word = unsigned short>
reco::HLTResult< numberOfBits, word >::HLTResult ( )
inline
template<unsigned int numberOfBits, typename word = unsigned short>
reco::HLTResult< numberOfBits, word >::HLTResult ( word  w[])
inline

Member Function Documentation

template<unsigned int numberOfBits, typename word = unsigned short>
reco::HLTResult< numberOfBits, word >::BOOST_STATIC_ASSERT ( numberOfBits  ,
 
)
private
template<unsigned int numberOfBits, typename word = unsigned short>
template<unsigned short i>
bool reco::HLTResult< numberOfBits, word >::match ( ) const
inline

Definition at line 46 of file HLTResult.h.

References relativeConstraints::value, and reco::HLTResult< numberOfBits, word >::words_.

46  {
47  typedef hlt::mask<i, wordConstants> mask;
48  return words_[ mask::wordOffset ] & mask::value;
49  }
word words_[size]
Definition: HLTResult.h:64
template<unsigned int numberOfBits, typename word = unsigned short>
template<unsigned short i>
void reco::HLTResult< numberOfBits, word >::set ( )
inline

Definition at line 51 of file HLTResult.h.

References relativeConstraints::value, and reco::HLTResult< numberOfBits, word >::words_.

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

51  {
52  typedef hlt::mask<i, wordConstants> mask;
53  words_[ mask::wordOffset ] |= mask::value;
54  }
word words_[size]
Definition: HLTResult.h:64
template<unsigned int numberOfBits, typename word = unsigned short>
template<unsigned short i>
void reco::HLTResult< numberOfBits, word >::unSet ( )
inline

Definition at line 56 of file HLTResult.h.

References relativeConstraints::value, and reco::HLTResult< numberOfBits, word >::words_.

56  {
57  typedef hlt::mask<i, wordConstants> mask;
58  words_[ mask::wordOffset ] &= ! mask::value;
59  }
word words_[size]
Definition: HLTResult.h:64

Member Data Documentation

template<unsigned int numberOfBits, typename word = unsigned short>
word reco::HLTResult< numberOfBits, word >::words_[size]
private