43 #ifndef Foam_HashOps_H 44 #define Foam_HashOps_H 65 template<
class Key=word,
class HashType=Foam::Hash<Key>>
130 namespace HashTableOps
134 template<
class T,
class Key=word,
class HashType=Foam::Hash<Key>>
137 typedef HashTable<T, Key, HashType>
value_type;
147 template<
class T,
class Key,
class Hash>
151 const bool doSort=
false Combine HashSet operation. Equivalent to 'a |= b'.
A HashTable with keys but without contents that is similar to std::unordered_set. ...
HashTable< T, Key, HashType > value_type
labelHashSet used(const bitSet &select)
Convert a bitset to a labelHashSet of the indices used.
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 l...
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
label size() const noexcept
The number of elements in table.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
void operator()(value_type &a, const value_type &b) const
void sort(UList< T > &list)
Sort the list.
A HashTable similar to std::unordered_map.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
List< bool > bools(const labelHashSet &locations)
Transform the on locations to a boolList, with true for each non-negative location and false for all ...
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
HashSet< Key, HashType > value_type
void operator()(value_type &a, const value_type &b) const
static Ostream & output(Ostream &os, const IntRange< T > &range)
bitSet bitset(const labelHashSet &locations)
Transform the on locations to a bitSet.
forAllConstIters(mixture.phases(), phase)