This commit is contained in:
glenux 2005-10-29 20:19:29 +00:00
parent 2bc1ad8c20
commit 3c3149cd5f

View file

@ -139,6 +139,12 @@ namespace EydLib {
return ((1 << this->_group_size)-1);
}
unsigned long int BitGroup::getValue(){
unsigned long int result;
result = 0;
for (int i=0; i<this->_group_size; i++){
result = (result << 1) | this->getBitAt(i);
}
return result;
}
std::string BitGroup::toString(){