73 void set(
unsigned int nbits,
const char* array);
74 void set(
unsigned int nbits,
const G4int* array);
85 void Get(
char* array)
const;
96 void Output(std::ostream &)
const;
120 unsigned int new_size = (bitnumber/8) + 1;
123 if (new_size < 100 * 1024 * 1024) new_size *= 2;
124 unsigned char *old_location =
fAllBits;
125 fAllBits =
new unsigned char[new_size];
129 delete [] old_location;
133 unsigned int loc = bitnumber/8;
134 unsigned char bit = bitnumber%8;
145 if (bitnumber >=
fNBits)
return false;
146 unsigned int loc = bitnumber/8;
148 unsigned char bit = bitnumber%8;
149 G4bool result = (value & (1<<bit)) != 0;