[bitset] get_nr_bits() method
This commit is contained in:
parent
fd061fab15
commit
b32a3b9fb9
@ -46,6 +46,10 @@ namespace persistent_data {
|
||||
return array_.get_root();
|
||||
}
|
||||
|
||||
unsigned get_nr_bits() const {
|
||||
return nr_bits_;
|
||||
}
|
||||
|
||||
void grow(unsigned new_nr_bits, bool default_value) {
|
||||
pad_last_block(default_value);
|
||||
resize_array(new_nr_bits, default_value);
|
||||
@ -214,6 +218,12 @@ bitset::get_root() const
|
||||
return impl_->get_root();
|
||||
}
|
||||
|
||||
unsigned
|
||||
bitset::get_nr_bits() const
|
||||
{
|
||||
return impl_->get_nr_bits();
|
||||
}
|
||||
|
||||
void
|
||||
bitset::grow(unsigned new_nr_bits, bool default_value)
|
||||
{
|
||||
|
@ -54,6 +54,7 @@ namespace persistent_data {
|
||||
bitset(tm_ptr tm);
|
||||
bitset(tm_ptr tm, block_address root, unsigned nr_bits);
|
||||
block_address get_root() const;
|
||||
unsigned get_nr_bits() const;
|
||||
void grow(unsigned new_nr_bits, bool default_value);
|
||||
void destroy();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user