Go to the documentation of this file.
56 label i =
bools.size();
61 while (i < slice.
start())
69 for (label i = slice.
first(); i <= slice.
last(); ++i)
82 for (label i = slice.
first(); i <= slice.
last(); ++i)
98 for (label i =
range.first(); i <=
range.last(); ++i)
107 for (label i =
range.first(); i <=
range.last(); ++i)
131 for (
const label idx : locations)
153 for (
const label idx : locations)
179 for (label idx = 0; idx < len; ++idx)
181 if (select ==
values[idx])
bitSet create(const label n, const labelHashSet &locations, const bool on=true)
Create a bitSet with length n with the specified on locations.
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
static Ostream & output(Ostream &os, const IntRange< T > &range)
List< bool > bools(const labelHashSet &locations)
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
void resize(const label len)
Adjust allocated size of list.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
bitSet & unset(const bitSet &other)
void adjust() noexcept
Adjust the start to avoid negative indices.
void set(const bitSet &bitset)
Set specified bits from another bitset.
void unset(List< bool > &bools, const labelRange &range)
Unset the specified range 'on' in a boolList.
bitSet bitset(const labelHashSet &locations)
Transform the on locations to a bitSet.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
label after() const noexcept
The value after the last element in the range.
bool empty() const noexcept
True if range is empty (zero-sized)
A range or interval of labels defined by a start and a size.
bool unset(const Key &key)
Unset the specified key - same as erase.
IntType first() const noexcept
The (inclusive) lower value of the range. Same as start()
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
IntType start() const noexcept
The (inclusive) lower value of the range.
bool set(const Key &key)
Same as insert (no value to overwrite)
IntType last() const noexcept
The (inclusive) upper value of the range.