CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

DTTFBitArray< N >::refToBit Class Reference

#include <DTTFBitArray.h>

List of all members.

Public Member Functions

refToBitflip ()
 operator int () const
refToBitoperator= (const refToBit &rtb)
refToBitoperator= (const int val)
int operator~ () const
 refToBit (DTTFBitArray &b, int pos)
 refToBit ()
 ~refToBit ()

Private Attributes

int _pos
unsigned * _word

Friends

class DTTFBitArray

Detailed Description

template<int N>
class DTTFBitArray< N >::refToBit

Definition at line 37 of file DTTFBitArray.h.


Constructor & Destructor Documentation

template<int N>
DTTFBitArray< N >::refToBit::refToBit ( ) [inline]

Definition at line 43 of file DTTFBitArray.h.

{}
template<int N>
DTTFBitArray< N >::refToBit::refToBit ( DTTFBitArray b,
int  pos 
) [inline]
template<int N>
DTTFBitArray< N >::refToBit::~refToBit ( ) [inline]

Definition at line 48 of file DTTFBitArray.h.

{}

Member Function Documentation

template<int N>
refToBit& DTTFBitArray< N >::refToBit::flip ( ) [inline]
template<int N>
DTTFBitArray< N >::refToBit::operator int ( ) const [inline]
template<int N>
refToBit& DTTFBitArray< N >::refToBit::operator= ( const refToBit rtb) [inline]

Definition at line 59 of file DTTFBitArray.h.

References DTTFBitArray< N >::refToBit::_pos, DTTFBitArray< N >::refToBit::_word, and DTTFBitArray< N >::getPosMask().

                                             {
      if( (*(rtb._word) & getPosMask(rtb._pos)) ) {
        *_word |= getPosMask(_pos);
      } else { 
        *_word &= ~getPosMask(_pos);
      }
      return *this;
    }
template<int N>
refToBit& DTTFBitArray< N >::refToBit::operator= ( const int  val) [inline]

Definition at line 50 of file DTTFBitArray.h.

References DTTFBitArray< N >::refToBit::_pos, DTTFBitArray< N >::refToBit::_word, and DTTFBitArray< N >::getPosMask().

                                       {
      if(val) {
        *_word |= getPosMask(_pos);
      } else {
        *_word &= ~(getPosMask(_pos));
      }
      return *this;
    }
template<int N>
int DTTFBitArray< N >::refToBit::operator~ ( ) const [inline]

Friends And Related Function Documentation

template<int N>
friend class DTTFBitArray [friend]

Definition at line 38 of file DTTFBitArray.h.


Member Data Documentation

template<int N>
int DTTFBitArray< N >::refToBit::_pos [private]
template<int N>
unsigned* DTTFBitArray< N >::refToBit::_word [private]