CMS 3D CMS Logo

Public Member Functions | Private Types | Private Member Functions | Private Attributes

reco::HLTResult< numberOfBits, word > Class Template Reference

#include <HLTResult.h>

List of all members.

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.

{ 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_.

                       {
      typedef hlt::mask<i, wordConstants> mask;
      return words_[ mask::wordOffset ] & mask::value;
    }
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_.

               {
      typedef hlt::mask<i, wordConstants> mask;
      words_[ mask::wordOffset ] |= mask::value;
    }
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_.

                 {
      typedef hlt::mask<i, wordConstants> mask;
      words_[ mask::wordOffset ] &= ! mask::value;
    }

Member Data Documentation

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