Add Bitmap::isFull()
This commit is contained in:
parent
eb7997c037
commit
9f115c3dea
1 changed files with 8 additions and 0 deletions
|
@ -85,11 +85,19 @@ struct Bitmap
|
||||||
mBitmap = ~(0);
|
mBitmap = ~(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
isFull()
|
||||||
|
const
|
||||||
|
{
|
||||||
|
return mBitmap != ~(0);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FieldType mBitmap;
|
FieldType mBitmap;
|
||||||
|
|
||||||
inline bool
|
inline bool
|
||||||
isValid(usize bit)
|
isValid(usize bit)
|
||||||
|
const
|
||||||
{
|
{
|
||||||
return bit >= 0 && bit < Bitmap::length;
|
return bit >= 0 && bit < Bitmap::length;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue