|
| unsigned int | count (const UList< bool > &bools, const bool val=true) |
| | Count number of 'true' entries.
|
| bool | all (const UList< bool > &bools) |
| | True if all entries are 'true' or if the list is empty.
|
| bool | any (const UList< bool > &bools) |
| | True if any entries are 'true'.
|
| bool | none (const UList< bool > &bools) |
| | True if no entries are 'true'.
|
| void | set (List< bool > &bools, const labelUList &locations) |
| | Set the listed locations (assign 'true').
|
| void | set (List< bool > &bools, const labelRange &range) |
| | Set the specified range 'on' in a boolList.
|
| void | set (labelHashSet &hashset, const labelRange &range) |
| | Set the specified range in a labelHashSet.
|
| void | set (bitSet &bitset, const labelRange &range) |
| | Forward to bitSet::set(labelRange).
|
| void | unset (List< bool > &bools, const labelUList &locations) |
| | Unset the listed locations (assign 'false').
|
| void | unset (List< bool > &bools, const labelRange &range) |
| | Unset the specified range 'on' in a boolList.
|
| void | unset (labelHashSet &hashset, const labelRange &range) |
| | Unset the specified range in a labelHashSet.
|
| void | unset (bitSet &bitset, const labelRange &range) |
| | Forward to bitSet::unset(labelRange).
|
| List< bool > | select (const label n, const labelUList &locations) |
| | Construct a selection list of bools (all false) with the given pre-size, subsequently add specified locations as true, auto-vivify entries if needed.
|
| List< bool > | select (const labelUList &locations) |
| | Construct an auto-sized selection list of bools (all false), and populate the specified locations as true.
|
| unsigned int | count (const bitSet &bitset, const bool on=true) |
| | Forward to bitSet::count().
|
| List< label > | toc (const UList< bool > &bools) |
| | Return the (sorted) values corresponding to 'true' entries.
|
| List< label > | sortedToc (const UList< bool > &bools) |
| | Return the (sorted) values corresponding to 'true' entries.
|
| List< label > | toc (const bitSet &bitset) |
| | Forward to bitSet::toc(), the sorted values of the 'on' entries.
|
| List< label > | sortedToc (const bitSet &bitset) |
| | Forward to bitSet::sortedToc(), the sorted values of the 'on' entries.
|
| List< label > | toc (const labelHashSet &hashset) |
| | Forward to labelHashSet::sortedToc(), the sorted values of the 'on' entries.
|
| List< label > | sortedToc (const labelHashSet &hashset) |
| | Forward to labelHashSet::sortedToc(), the sorted values of the 'on' entries.
|
| template<class UIntType> |
| unsigned int | bit_count (UIntType x) |
| | Count arbitrary number of bits (of an integral type).
|
| template<> |
| unsigned int | bit_count (uint32_t x) |
| | Count bits in a 32-bit value (Hamming weight method).
|
| template<> |
| unsigned int | bit_count (uint64_t x) |
| | Count bits in a 64-bit value (Hamming weight method).
|
| template<class UIntType, unsigned BitWidth> |
| UIntType | repeat_value (unsigned val) |
| | Repeat a value of the given BitWidth into the destination output type.
|
| template<class UIntType> |
| Ostream & | print (Ostream &os, UIntType value, char off='0', char on='1') |
| | Print 0/1 bits in the (unsigned) integral type.
|
| bitSet | create (const label n, const labelHashSet &locations, const bool on=true) |
| | Create a bitSet with length n with the specified on locations.
|
| bitSet | create (const label n, const labelUList &locations, const bool on=true) |
| | Create a bitSet with length n with the specified on locations.
|
| bitSet | create (const label n, const label select, const labelUList &values, const bool on=true) |
| | Create a bitSet with length n with the specified on locations when the list values are equal to the select value.
|
| template<class UIntType> |
| Ostream & | operator<< (Ostream &os, const BitOps::bitInfo< UIntType > &info) |
| | Print 0/1 bits of an (unsigned) integral type via an adapter.
|
Original source file BitOps.H
Definition in file BitOps.H.