This commit is contained in:
parent
2bc1ad8c20
commit
3c3149cd5f
1 changed files with 6 additions and 0 deletions
|
@ -139,6 +139,12 @@ namespace EydLib {
|
||||||
return ((1 << this->_group_size)-1);
|
return ((1 << this->_group_size)-1);
|
||||||
}
|
}
|
||||||
unsigned long int BitGroup::getValue(){
|
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(){
|
std::string BitGroup::toString(){
|
||||||
|
|
Loading…
Reference in a new issue