Go to the documentation of this file.
75 inline label first_not_block()
const;
220 inline
bool all() const;
223 inline
bool any() const;
226 inline
bool none() const;
234 inline
unsigned int count(const
bool on=true) const;
385 template<class InputIter>
412 template<class InputIter>
460 inline operator unsigned int ()
const;
591 Ostream&
operator<<(Ostream& os,
const InfoProxy<bitSet>& info);
599 inline bitSet
operator&(
const bitSet& a,
const bitSet&
b);
603 inline bitSet
operator|(
const bitSet& a,
const bitSet&
b);
607 inline bitSet
operator^(
const bitSet& a,
const bitSet&
b);
611 inline bitSet
operator-(
const bitSet& a,
const bitSet&
b);
bitSet & andEq(const bitSet &other)
The set logical AND.
const_iterator end() const noexcept
Iterator beyond the end of the bitSet.
label ListType::const_reference val
label find_first() const
Locate the first bit that is set.
A class for handling words, derived from Foam::string.
bitSet() noexcept
Construct an empty, zero-sized set.
List< bool > bools(const labelHashSet &locations)
A helper class for outputting values to Ostream.
bool all() const
True if all bits in this bitset are set or if the set is empty.
bitSet & xorEq(const bitSet &other, const bool strict=true)
The set logical XOR.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
friend Ostream & operator(Ostream &os, const InfoProxy< PackedList< Width >> &info)
bitSet & bound(const label maxSize)
Ensure the addressable range does not exceed maxSize.
autoPtr< bitSet > clone() const
Clone.
A reference supporting read/write access to an entry.
bitSet & unset(const bitSet &other)
bool any() const
True if any bits in this bitset are set.
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
ClassName("bitSet")
Define class name and debug.
const_iterator cend() const noexcept
Iterator beyond the end of the bitSet.
const_iterator & operator++()
Move to the next on position.
void set(const bitSet &bitset)
Set specified bits from another bitset.
label setMany(InputIter first, InputIter last)
Set the locations listed by the iterator range,.
void writeEntry(Ostream &os) const
Write as a dictionary entry.
bool test(const label pos) const
Test value at specified position, never auto-vivify entries.
bitSet bitset(const labelHashSet &locations)
Transform the on locations to a bitSet.
label operator*() const noexcept
Return the current on position.
unsigned int count(const bool on=true) const
Count number of bits set.
InfoProxy< bitSet > info() const
Return info proxy.
labelList toc() const
The indices of the on bits as a sorted labelList.
const_iterator cbegin() const
Iterator set to the position of the first on bit.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
label find_last() const
Locate the last bit set.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
A const_iterator for iterating across on values.
label find_first_not() const
Locate the first bit that is unset.
A range or interval of labels defined by a start and a size.
bitSet & minusEq(const bitSet &other)
The set difference.
unsigned int const_reference
const_iterator begin() const
Iterator set to the position of the first on bit.
bool operator!=(const const_iterator &iter) const noexcept
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write bitSet, with line-breaks (ASCII) when length exceeds shortLen.
void flip()
Invert all bits in the addressable region.
bitSet & orEq(const bitSet &other, const bool strict=true)
The set logical OR.
label find_next(label pos) const
Locate the next bit set, starting one beyond the specified position.
bool intersects(const bitSet &other) const
True if any bits in the other bitset intersect (are the same).
bool none() const
True if no bits in this bitset are set.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
bitSet operator~(const bitSet &bitset)
Bitset complement, returns a copy of the bitset with all its bits flipped.
void swap(bitSet &bitset)
Swap contents.
bitSet & extend(const label minSize)
Ensure that minSize is covered by the bitSet.
A dynamic list of packed unsigned integers, with the number of bits per item specified by the <Width>...
bitSet & operator=(const bool val)
Assignment of all entries to the given value.
A 1D vector of objects of type <T> with a fixed length <N>.
bool operator==(const const_iterator &iter) const noexcept
Base for lists with indirect addressing, templated on the list contents type and the addressing type....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const Vector< label > N(dict.get< Vector< label >>("N"))
void assign(const bool val)
Assign all entries to the given value.
bitSet operator^(const bitSet &a, const bitSet &b)
Bitwise-XOR of two bitsets to form a unique bit-set.
bitSet operator|(const bitSet &a, const bitSet &b)
Bitwise-OR of two bitsets.
List< bool > values() const
Return the bitset values as a boolList.
labelList sortedToc() const
The indices of the on bits as a sorted labelList.
Ostream & operator<<(Ostream &, const boundaryPatch &)
void transfer(bitSet &bitset)
dimensionedScalar pos(const dimensionedScalar &ds)