41 output.
resize(2*select.count());
43 for (label i = select.find_first(); i >= 0; i = select.find_next(i))
55 const label len = select.
size();
60 for (label i = 0; i < len; ++i)
83 auto const max = std::max_element(locations.
begin(), locations.
end());
84 const label len = (
max != locations.
end() ? (1 + *
max) : 0);
93 for (
const label i : locations)
bool insert(const Key &key)
Insert a new entry, not overwriting existing entries.
void resize(const label sz)
Resize the hash table for efficiency.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void size(const label n)
Older name for setAddressableSize.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
label setMany(InputIter first, InputIter last)
labelHashSet used(const bitSet &select)
Convert a bitset to a labelHashSet of the indices used.
bitSet bitset(const labelHashSet &locations)
Transform the on locations to a bitSet.
List< bool > bools(const labelHashSet &locations)