creates bitset from the given blocks of bits
| 83 | |
| 84 | /// creates bitset from the given blocks of bits |
| 85 | static BitSet fromBlocks( std::vector<block_type> && blocks ) |
| 86 | { |
| 87 | BitSet res; |
| 88 | res.blocks_ = std::move( blocks ); |
| 89 | res.numBits_ = res.blocks_.size() * bits_per_block; |
| 90 | return res; |
| 91 | } |
| 92 | |
| 93 | void reserve( size_type numBits ) { blocks_.reserve( calcNumBlocks_( numBits ) ); } |
| 94 | MRMESH_API void resize( size_type numBits, bool fillValue = false ); |