45 bitNumber = bitNumber-1;
51 int chunkNumber = station*2 + (bitNumber-1) / size;
52 int bitOffset = bitNumber %
size;
53 if(bitNumber == 64){chunkNumber += 1;}
60 tmp = tmp << bitOffset;
88 int chunkNumber = station*2 + ((bitNumber-1) / size);
89 int bitOffset = bitNumber %
size;
90 if(bitNumber == 64){chunkNumber += 1;}
99 return ((
_buffer[chunkNumber] & tmp) != 0);
107 if (nBits == 0)
return;
109 bool negShift = (nBits < 0);
111 if (negShift) nBits = -nBits;
114 int value_size =
sizeof(transferBits)*8;
120 transferBits = (0x1 << nBits) - 1;
126 transferBits <<= (value_size - nBits);
132 transferBits = (0x1 << nBits) - 1;
133 transferBits <<= (value_size - nBits);
136 transferBits >>= (value_size - nBits);
155 for (
int j = size;
j > 0;
j--){
void CopyFromBuffer(PhiMemoryImage::value_ptr rhs, int offset)
functions///
void SetBit(int station, int bitNumber, bool value=true)
static const int STATIONS
bool GetBit(int station, int bitNumber) const
std::vector< std::vector< double > > tmp
PhiMemoryImage()
constructors///
PhiMemoryImage::value_type _buffer[PhiMemoryImage::TOTAL_UNITS]
unsigned long int value_type
PhiMemoryImage::value_type * value_ptr
static const int TOTAL_UNITS
tuple size
Write out results.