Classes | Namespaces | Functions
BitOps.H File Reference
Include dependency graph for BitOps.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  List
 A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bounds checking, etc. More...
 
struct  bitInfo< UIntType >
 

Namespaces

 Foam::BitOps
 Various bit-wise operations, etc.
 
 Foam::BitSetOps
 Factory and other methods for bitSet. Adaptor methods for other containers that are somewhat similar to bitSet (eg, boolList, labelHashSet).
 
 Foam
 

Functions

unsigned int count (const UList< bool > &bools, const bool val=true)
 
bool all (const UList< bool > &bools)
 
bool any (const UList< bool > &bools)
 
bool none (const UList< bool > &bools)
 
void set (List< bool > &bools, const labelRange &range)
 
void set (labelHashSet &hashset, const labelRange &range)
 
void set (bitSet &bitset, const labelRange &range)
 
void unset (List< bool > &bools, const labelRange &range)
 
void unset (labelHashSet &hashset, const labelRange &range)
 
void unset (bitSet &bitset, const labelRange &range)
 
template<class UIntType >
unsigned int bit_count (UIntType x)
 
template<>
unsigned int bit_count (uint32_t x)
 
template<>
unsigned int bit_count (uint64_t x)
 
template<class UIntType , unsigned BitWidth>
UIntType repeat_value (unsigned val)
 
template<class UIntType >
Ostream & print (Ostream &os, UIntType value, char off='0', char on='1')
 
bitSet create (const label n, const labelHashSet &locations, const bool on=true)
 
bitSet create (const label n, const labelUList &locations, const bool on=true)
 
bitSet create (const label n, const label select, const labelUList &values, const bool on=true)
 
template<class UIntType >
Ostream & operator<< (Ostream &os, const BitOps::bitInfo< UIntType > &info)
 

Detailed Description

Original source file BitOps.H

Definition in file BitOps.H.