Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
bitSet Class Reference

A bitSet stores bits (elements with only two states) in packed internal format and supports a variety of bit-set operations. Its behaviour is largely list-like, with some HashSet features. More...

Inheritance diagram for bitSet:
Inheritance graph
[legend]
Collaboration diagram for bitSet:
Collaboration graph
[legend]

Classes

class  const_iterator
 
class  reference
 

Public Types

typedef unsigned int const_reference
 
- Public Types inherited from PackedList< 1 >
typedef unsigned int block_type
 
typedef unsigned int const_reference
 

Public Member Functions

 ClassName ("bitSet")
 
 bitSet () noexcept
 
 bitSet (Istream &is)
 
 bitSet (const label n)
 
 bitSet (const label n, const bool val)
 
 bitSet (const bitSet &bitset)
 
 bitSet (bitSet &&bitset)
 
 bitSet (const bitSet &bitset, const labelUList &addr)
 
template<class Addr >
 bitSet (const bitSet &bitset, const IndirectListBase< label, Addr > &addr)
 
 bitSet (const bitSet &bitset, const labelRange &range)
 
 bitSet (const UList< bool > &bools)
 
 bitSet (const label n, const labelUList &locations)
 
template<class Addr >
 bitSet (const label n, const IndirectListBase< label, Addr > &locations)
 
template<unsigned N>
 bitSet (const label n, const FixedList< label, N > &locations)
 
 bitSet (const label n, std::initializer_list< label > locations)
 
 bitSet (const labelUList &locations)
 
template<class Addr >
 bitSet (const IndirectListBase< label, Addr > &locations)
 
template<unsigned N>
 bitSet (const FixedList< label, N > &locations)
 
autoPtr< bitSetclone () const
 
bool all () const
 
bool any () const
 
bool none () const
 
bool uniform () const
 
unsigned int count (const bool on=true) const
 
bool intersects (const bitSet &other) const
 
bool test (const label pos) const
 
bool found (const label pos) const
 
label find_first () const
 
label find_first_not () const
 
label find_last () const
 
label find_next (label pos) const
 
labelList toc () const
 
labelList sortedToc () const
 
List< boolvalues () const
 
void fill (const bool val)
 
void assign (const UList< bool > &bools)
 
void set (const bitSet &bitset)
 
void set (const labelRange &range)
 
bitSetunset (const bitSet &other)
 
void unset (const labelRange &range)
 
void flip ()
 
void flip (const label pos)
 
void swap (bitSet &bitset)
 
void transfer (bitSet &bitset)
 
bitSetbound (const label maxSize)
 
bitSetbound (const bitSet &other)
 
bitSetextend (const label minSize)
 
bitSetextend (const bitSet &other)
 
template<class InputIter >
label setMany (InputIter first, InputIter last)
 
label set (const labelUList &locations)
 
template<class Addr >
label set (const IndirectListBase< label, Addr > &locations)
 
template<unsigned N>
label set (const FixedList< label, N > &locations)
 
template<class InputIter >
label unset (InputIter first, InputIter last)
 
label unset (const labelUList &locations)
 
template<class Addr >
label unset (const IndirectListBase< label, Addr > &locations)
 
template<unsigned N>
label unset (const FixedList< label, N > &locations)
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator begin (label pos) const
 
const_iterator cbegin (label pos) const
 
const_iterator end () const noexcept
 
const_iterator cend () const noexcept
 
bool operator() (const label pos) const
 
unsigned int operator[] (const label i) const
 
reference operator[] (const label i)
 
bitSetoperator= (const bitSet &bitset)
 
bitSetoperator= (bitSet &&bitset)
 
bitSetoperator= (const bool val)
 
bitSetoperator&= (const bitSet &other)
 
bitSetoperator|= (const bitSet &other)
 
bitSetoperator^= (const bitSet &other)
 
bitSetoperator-= (const bitSet &other)
 
InfoProxy< bitSetinfo () const
 
void assign (const unsigned int val)
 
template<class Addr >
Foam::label set (const IndirectListBase< label, Addr > &locations)
 
template<class Addr >
Foam::label unset (const IndirectListBase< label, Addr > &locations)
 
template<class InputIter >
Foam::label setMany (InputIter first, InputIter last)
 
template<class InputIter >
Foam::label unset (InputIter first, InputIter last)
 
template<unsigned N>
Foam::label set (const FixedList< label, N > &locations)
 
template<unsigned N>
Foam::label unset (const FixedList< label, N > &locations)
 
- Public Member Functions inherited from PackedList< 1 >
void writeEntry (const word &keyword, Ostream &os) const
 
constexpr PackedList () noexcept
 
 PackedList (const label numElem)
 
 PackedList (const label numElem, const unsigned int val)
 
 PackedList (Istream &is)
 
 PackedList (const PackedList< Width > &list)
 
 PackedList (PackedList< Width > &&list)
 
 PackedList (const PackedList< Width > &list, const labelUList &addr)
 
 PackedList (const PackedList< Width > &list, const IndirectListBase< label, Addr > &addr)
 
 PackedList (const PackedList< Width > &list, const labelRange &range)
 
 PackedList (const labelUList &values)
 
 PackedList (const IndirectListBase< label, Addr > &values)
 
 PackedList (const PackedList< Width > &list, const labelUList &addr)
 
 PackedList (const PackedList< Width > &list, const labelRange &range)
 
constexpr PackedList () noexcept
 
 PackedList (const label numElem)
 
 PackedList (const label numElem, const unsigned int val)
 
 PackedList (Istream &is)
 
 PackedList (const PackedList< Width > &list)
 
 PackedList (PackedList< Width > &&list)
 
 PackedList (const labelUList &values)
 
autoPtr< PackedList< Width > > clone () const
 
void checkIndex (const label i) const
 
label size () const noexcept
 
bool empty () const noexcept
 
label capacity () const noexcept
 
bool uniform () const
 
bool equal (const PackedList< Width > &other) const
 
unsigned int get (const label i) const
 
bool set (const label i, unsigned int val=~0u)
 
bool unset (const label i)
 
labelList values () const
 
List< IntType > unpack () const
 
List< IntType > unpack (const labelRange &range) const
 
List< IntType > unpack (const labelUList &locations) const
 
Foam::List< IntType > unpack () const
 
Foam::List< IntType > unpack (const labelRange &range) const
 
Foam::List< IntType > unpack (const labelUList &locations) const
 
void fill (const unsigned int val)
 
bool trim (label minpos=-1)
 
void reset ()
 
void setCapacity (const label numElem)
 
void resize (const label numElem, const unsigned int val=0u)
 
void resize_nocopy (const label numElem)
 
void reserve (const label numElem)
 
void clear ()
 
void clearStorage ()
 
void shrink ()
 
void swap (PackedList< Width > &rhs)
 
void transfer (PackedList< Width > &rhs)
 
label nBlocks () const
 
const List< unsigned int > & storage () const
 
List< unsigned int > & storage ()
 
const unsigned int * cdata () const noexcept
 
unsigned int * data () noexcept
 
const char * cdata_bytes () const noexcept
 
char * data_bytes () noexcept
 
std::streamsize size_bytes () const noexcept
 
std::streamsize byteSize () const noexcept
 
OstreamprintBits (Ostream &os, bool debugOutput=false) const
 
IstreamreadList (Istream &is)
 
OstreamwriteList (Ostream &os, const label shortLen=0) const
 
PackedList< Width > & append (const unsigned int val)
 
unsigned int remove ()
 
unsigned int operator[] (const label i) const
 
reference operator[] (const label i)
 
void operator= (const PackedList< Width > &lst)
 
void operator= (PackedList< Width > &&lst)
 
void operator= (const unsigned int val)
 
InfoProxy< PackedList< Width > > info () const
 
void assign (const unsigned int val)
 
void assign (const PackedList< Width > &rhs)
 
void setSize (const label n, unsigned int val=0u)
 

Static Public Member Functions

static const bitSetnull ()
 
- Static Public Member Functions inherited from PackedList< 1 >
static constexpr label num_blocks (label numElem) noexcept
 
static constexpr block_type mask_lower (unsigned elementOffset)
 

Protected Member Functions

bitSetminusEq (const bitSet &other)
 
bitSetandEq (const bitSet &other)
 
bitSetorEq (const bitSet &other, const bool strict=true)
 
bitSetxorEq (const bitSet &other, const bool strict=true)
 
- Protected Member Functions inherited from PackedList< 1 >
unsigned int repeated_value (unsigned val)
 
unsigned int readValue (Istream &is)
 
void setPair (Istream &is)
 
void setPair (Istream &is)
 
void writeEntry (Ostream &os) const
 
void clear_trailing_bits ()
 
void copyAssign (const PackedList< Width > &rhs)
 

Additional Inherited Members

- Static Public Attributes inherited from PackedList< 1 >
static constexpr unsigned bits_per_block
 
static constexpr unsigned element_width
 
static constexpr unsigned elem_per_block
 
static constexpr block_type max_value
 
- Protected Types inherited from PackedList< 1 >
typedef List< block_typeblock_container
 
- Static Protected Member Functions inherited from PackedList< 1 >
static unsigned int repeated_value (unsigned val)
 
static unsigned int readValue (Istream &is)
 
- Protected Attributes inherited from PackedList< 1 >
block_container blocks_
 
label size_
 

Detailed Description

A bitSet stores bits (elements with only two states) in packed internal format and supports a variety of bit-set operations. Its behaviour is largely list-like, with some HashSet features.

Source files
See also
Foam::BitOps Foam::PackedList

Definition at line 59 of file bitSet.H.

Member Typedef Documentation

◆ const_reference

typedef unsigned int const_reference

Definition at line 118 of file bitSet.H.

Constructor & Destructor Documentation

◆ bitSet() [1/17]

bitSet ( )
inlinenoexcept

Definition at line 70 of file bitSetI.H.

◆ bitSet() [2/17]

bitSet ( Istream is)
explicit

Definition at line 283 of file bitSet.C.

◆ bitSet() [3/17]

bitSet ( const label  n)
inlineexplicit

Definition at line 76 of file bitSetI.H.

◆ bitSet() [4/17]

bitSet ( const label  n,
const bool  val 
)
inline

Definition at line 82 of file bitSetI.H.

References bitSet::fill().

Here is the call graph for this function:

◆ bitSet() [5/17]

bitSet ( const bitSet bitset)
inline

Definition at line 90 of file bitSetI.H.

◆ bitSet() [6/17]

bitSet ( bitSet &&  bitset)
inline

Definition at line 96 of file bitSetI.H.

◆ bitSet() [7/17]

bitSet ( const bitSet bitset,
const labelUList addr 
)

Definition at line 291 of file bitSet.C.

References Foam::HashSetOps::bitset(), PackedList::get(), bitSet::set(), and UList::size().

Here is the call graph for this function:

◆ bitSet() [8/17]

bitSet ( const bitSet bitset,
const IndirectListBase< label, Addr > &  addr 
)

Definition at line 48 of file bitSetTemplates.C.

References Foam::HashSetOps::bitset(), PackedList::get(), Foam::BitOps::set(), and IndirectListBase< T, Addr >::size().

Here is the call graph for this function:

◆ bitSet() [9/17]

bitSet ( const bitSet bitset,
const labelRange range 
)

Definition at line 304 of file bitSet.C.

References Foam::HashSetOps::bitset(), PackedList::get(), Foam::pos(), range, and bitSet::set().

Here is the call graph for this function:

◆ bitSet() [10/17]

bitSet ( const UList< bool > &  bools)
inlineexplicit

Definition at line 102 of file bitSetI.H.

References bitSet::assign(), and Foam::HashSetOps::bools().

Here is the call graph for this function:

◆ bitSet() [11/17]

bitSet ( const label  n,
const labelUList locations 
)
inline

Definition at line 110 of file bitSetI.H.

References UList::begin(), UList::end(), and bitSet::setMany().

Here is the call graph for this function:

◆ bitSet() [12/17]

bitSet ( const label  n,
const IndirectListBase< label, Addr > &  locations 
)
inline

Definition at line 120 of file bitSetI.H.

References IndirectListBase< T, Addr >::begin(), and IndirectListBase< T, Addr >::end().

Here is the call graph for this function:

◆ bitSet() [13/17]

bitSet ( const label  n,
const FixedList< label, N > &  locations 
)

Definition at line 27 of file bitSetTemplates.C.

References FixedList::begin(), FixedList::end(), and bitSet::setMany().

Here is the call graph for this function:

◆ bitSet() [14/17]

bitSet ( const label  n,
std::initializer_list< label >  locations 
)
inline

Definition at line 132 of file bitSetI.H.

◆ bitSet() [15/17]

bitSet ( const labelUList locations)
inlineexplicit

Definition at line 143 of file bitSetI.H.

References UList::begin(), UList::end(), and bitSet::setMany().

Here is the call graph for this function:

◆ bitSet() [16/17]

bitSet ( const IndirectListBase< label, Addr > &  locations)
inlineexplicit

Definition at line 153 of file bitSetI.H.

References IndirectListBase< T, Addr >::begin(), and IndirectListBase< T, Addr >::end().

Here is the call graph for this function:

◆ bitSet() [17/17]

bitSet ( const FixedList< label, N > &  locations)
explicit

Definition at line 37 of file bitSetTemplates.C.

References FixedList::begin(), FixedList::end(), and bitSet::setMany().

Here is the call graph for this function:

Member Function Documentation

◆ minusEq()

Foam::bitSet & minusEq ( const bitSet other)
protected

◆ andEq()

Foam::bitSet & andEq ( const bitSet other)
protected

Definition at line 70 of file bitSet.C.

References PackedList::blocks_, Foam::expressions::patchExpr::debug, PackedList::empty(), InfoInFunction, Foam::min(), Foam::nl, reset(), and PackedList::size().

Referenced by bitSet::operator&=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ orEq()

Foam::bitSet & orEq ( const bitSet other,
const bool  strict = true 
)
protected

Definition at line 111 of file bitSet.C.

References PackedList::blocks_, Foam::expressions::patchExpr::debug, PackedList::empty(), InfoInFunction, Foam::min(), Foam::nl, resize(), PackedList::size(), and Foam::stringOps::trim().

Referenced by bitSet::operator|=(), and bitSet::set().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xorEq()

Foam::bitSet & xorEq ( const bitSet other,
const bool  strict = true 
)
protected

Definition at line 198 of file bitSet.C.

References PackedList::blocks_, Foam::expressions::patchExpr::debug, PackedList::empty(), InfoInFunction, Foam::min(), Foam::nl, reset(), resize(), PackedList::size(), and Foam::stringOps::trim().

Referenced by bitSet::operator^=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ null()

const Foam::bitSet & null ( )
inlinestatic

Definition at line 447 of file bitSetI.H.

◆ ClassName()

ClassName ( "bitSet"  )

◆ clone()

Foam::autoPtr< Foam::bitSet > clone ( ) const
inline

Definition at line 163 of file bitSetI.H.

References autoPtr::New().

Here is the call graph for this function:

◆ all()

bool all ( ) const
inline

Definition at line 453 of file bitSetI.H.

References PackedList< 1 >::empty().

Referenced by triSurface::checkTriangles(), NASedgeFormat::read(), STARCDedgeFormat::read(), sampledMeshedSurface::sampledMeshedSurface(), and bitSet::uniform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ any()

bool any ( ) const
inline

Definition at line 461 of file bitSetI.H.

References PackedList< 1 >::blocks_, PackedList< 1 >::num_blocks(), and PackedList< 1 >::size().

Referenced by ensightMesh::correct(), bitSet::none(), ABAQUSCore::readHelper::purge_solids(), Foam::HashSetOps::used(), inverseDistance::walkFront(), and writeObjects::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ none()

bool none ( ) const
inline

Definition at line 480 of file bitSetI.H.

References bitSet::any().

Referenced by ensightMesh::correct(), distanceSurface::createGeometry(), distanceSurface::filterRegionProximity(), sampledMeshedSurface::sampledMeshedSurface(), and bitSet::uniform().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uniform()

bool uniform ( ) const
inline

Definition at line 486 of file bitSetI.H.

References bitSet::all(), bitSet::none(), PackedList< 1 >::size(), and bitSet::test().

Here is the call graph for this function:

◆ count()

unsigned int count ( const bool  on = true) const
inline

◆ intersects()

bool intersects ( const bitSet other) const

Definition at line 341 of file bitSet.C.

References PackedList::blocks_, Foam::min(), and PackedList::size().

Here is the call graph for this function:

◆ test()

bool test ( const label  pos) const
inline

Definition at line 513 of file bitSetI.H.

References PackedList< 1 >::get(), and Foam::pos().

Referenced by snappyLayerDriver::addLayers(), polyMeshTetDecomposition::adjustTetBasePtIs(), extendedEdgeMesh::autoMap(), polyDualMesh::calcFeatures(), Foam::calcNormalDistance_filtered(), dynamicRefineFvMesh::calculateProtectedCells(), primitiveMeshTools::cellDeterminant(), dynamicRefineFvMesh::checkEightAnchorPoints(), ensightFaces::classify(), edgeCollapser::consistentCollapse(), hexRef8::consistentSlowRefinement2(), hexRef8::consistentUnrefinement(), ensightMesh::correct(), meshRefinement::countHits(), snappyLayerDriver::doLayers(), dynamicRefineFvMesh::extendMarkedCells(), distanceSurface::filterKeepLargestRegion(), distanceSurface::filterKeepNearestRegions(), distanceSurface::filterPrepareRegionSplit(), meshRefinement::findRegions(), meshRefinement::gAverage(), dynamicRefineFvMesh::init(), meshRefinement::intersectedPoints(), isoSurfaceTopo::isoSurfaceTopo(), edgeMesh::mergeEdges(), bitSet::operator()(), cell::opposingFace(), plicRDF::reconstruct(), distanceSurface::refineBlockedCells(), snappySnapDriver::repatchToSurface(), dynamicRefineFvMesh::selectRefineCells(), dynamicRefineFvMesh::selectUnrefinePoints(), fvMeshSubset::setCellSubset(), motionSmootherAlgo::setDisplacement(), lumpedPointMovement::setInterpolator(), faceAreaWeightAMI::setNextFaces(), edgeCollapser::setRefinement(), hexRef8::setRefinement(), fieldSmoother::smoothLambdaMuDisplacement(), fieldSmoother::smoothNormals(), extendedEdgeMesh::sortPointsAndEdges(), triSurface::subsetMesh(), bitSet::uniform(), meshRefinement::updateIntersections(), cellVolumeWeight::walkFront(), inverseDistance::walkFront(), meshRefinement::weightedSum(), and meshRefinement::zonify().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ found()

bool found ( const label  pos) const
inline

Definition at line 519 of file bitSetI.H.

References PackedList< 1 >::get(), and Foam::pos().

Here is the call graph for this function:

◆ find_first()

Foam::label find_first ( ) const
inline

Definition at line 307 of file bitSetI.H.

References PackedList< 1 >::blocks_, PackedList< 1 >::elem_per_block, PackedList< 1 >::num_blocks(), Foam::pos(), and PackedList< 1 >::size().

Referenced by Foam::ListOps::setValue(), and Foam::HashSetOps::used().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_first_not()

Foam::label find_first_not ( ) const
inline

Definition at line 335 of file bitSetI.H.

References PackedList< 1 >::blocks_, PackedList< 1 >::elem_per_block, and Foam::pos().

Here is the call graph for this function:

◆ find_last()

Foam::label find_last ( ) const
inline

Definition at line 367 of file bitSetI.H.

References PackedList< 1 >::blocks_, PackedList< 1 >::elem_per_block, PackedList< 1 >::num_blocks(), Foam::pos(), and PackedList< 1 >::size().

Referenced by topoBitSet::check(), writerCaching::latestGeomIndex(), and topoBitSet::updateLabels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_next()

Foam::label find_next ( label  pos) const
inline

Definition at line 393 of file bitSetI.H.

References PackedList< 1 >::blocks_, PackedList< 1 >::elem_per_block, PackedList< 1 >::num_blocks(), Foam::pos(), and PackedList< 1 >::size().

Referenced by faceAreaWeightAMI::setNextFaces(), Foam::ListOps::setValue(), and Foam::HashSetOps::used().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toc()

Foam::labelList toc ( ) const

Definition at line 520 of file bitSet.C.

References Foam::BitOps::any(), Foam::BitOps::count(), Foam::output(), and Foam::pos().

Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), and bitSet::sortedToc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sortedToc()

Foam::labelList sortedToc ( ) const
inline

Definition at line 525 of file bitSetI.H.

References bitSet::toc().

Referenced by faMesh::boundaryPoints(), dynamicMultiMotionSolverFvMesh::init(), faMesh::internalPoints(), noiseModel::octaves(), fvMeshSubset::setCellSubset(), PatchTools::subsetMap(), and reconstructionSchemes::surface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ values()

Foam::List< bool > values ( ) const

Definition at line 559 of file bitSet.C.

References Foam::output(), and Foam::pos().

Referenced by faceBitSet::distribute(), and pointBitSet::distribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill()

void fill ( const bool  val)
inline

Definition at line 543 of file bitSetI.H.

References PackedList< 1 >::blocks_, PackedList< 1 >::clear_trailing_bits(), PackedList< 1 >::empty(), PackedList< 1 >::num_blocks(), and PackedList< 1 >::size().

Referenced by bitSet::assign(), bitSet::bitSet(), and bitSet::operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ assign() [1/2]

void assign ( const UList< bool > &  bools)

Definition at line 321 of file bitSet.C.

References Foam::HashSetOps::bools(), clear(), resize(), and Foam::BitOps::set().

Referenced by bitSet::bitSet(), pointBitSet::distribute(), and faceBitSet::distribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set() [1/7]

void set ( const bitSet bitset)
inline

Definition at line 567 of file bitSetI.H.

References Foam::HashSetOps::bitset(), and bitSet::orEq().

Referenced by geometric::add(), snappyLayerDriver::addLayers(), polyMeshTetDecomposition::adjustTetBasePtIs(), Foam::apply(), extendedEdgeMesh::autoMap(), Foam::bandCompression(), bitSet::bitSet(), PatchTools::calcBounds(), polyDualMesh::calcFeatures(), createShellMesh::calcPointRegions(), dynamicRefineFvMesh::calculateProtectedCells(), dynamicOversetFvMesh::cellAverage(), cuttingSurfaceBase::cellSelection(), dynamicRefineFvMesh::checkEightAnchorPoints(), edgeCollapser::checkMeshQuality(), ABAQUSCore::readHelper::compact_nodes(), edgeCollapser::consistentCollapse(), hexRef8::consistentUnrefinement(), fvMeshSubsetProxy::correct(), ensightMesh::correct(), AABBTree::createBoxes(), inverseDistance::createStencil(), snappyLayerDriver::doLayers(), dynamicRefineFvMesh::extendMarkedCells(), distanceSurface::filterFaceProximity(), distanceSurface::filterKeepLargestRegion(), distanceSurface::filterKeepNearestRegions(), distanceSurface::filterPrepareRegionSplit(), distanceSurface::filterRegionProximity(), meshRefinement::findRegions(), syncTools::getMasterEdges(), meshRefinement::getMasterEdges(), syncTools::getMasterPoints(), meshRefinement::getMasterPoints(), isoSurfaceBase::ignoreCyclics(), dynamicMultiMotionSolverFvMesh::init(), dynamicRefineFvMesh::init(), meshRefinement::intersectedPoints(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), isoSurfaceTopo::isoSurfaceTopo(), dynamicRefineFvMesh::mapFields(), meshRefinement::markOutsideFaces(), Foam::markupBoundaryPoints(), PatchTools::matchEdges(), edgeMesh::mergeEdges(), dynamicOversetFvMesh::normalisation(), noiseModel::octaves(), bitSet::reference::operator=(), cell::opposingFace(), cuttingSurfaceBase::performCut(), ABAQUSCore::readHelper::purge_solids(), NASedgeFormat::read(), STARCDedgeFormat::read(), plicRDF::reconstruct(), dynamicRefineFvMesh::refine(), distanceSurface::refineBlockedCells(), snappySnapDriver::repatchToSurface(), sampledMeshedSurface::sampledMeshedSurface(), sampledSurface::sampleOnPoints(), sampledPatch::sampleOnPoints(), sampledFaceZone::sampleOnPoints(), inverseDistance::seedCell(), ZoneMesh< cellZone, polyMesh >::selection(), dynamicRefineFvMesh::selectRefineCandidates(), dynamicRefineFvMesh::selectUnrefinePoints(), Foam::BitOps::set(), lumpedPointMovement::setInterpolator(), edgeCollapser::setRefinement(), hexRef8::setRefinement(), Foam::simpleGeometricFilter(), fieldSmoother::smoothNormals(), PatchTools::subsetMap(), triSurface::subsetMesh(), reconstructionSchemes::surface(), dynamicRefineFvMesh::unrefine(), rawTopoChangerFvMesh::update(), dynamicRefineFvMesh::update(), topoBitSet::updateLabels(), ReactingLookupTableInjection< CloudType >::updateMesh(), ThermoLookupTableInjection< CloudType >::updateMesh(), ReactingMultiphaseLookupTableInjection< CloudType >::updateMesh(), ConeInjection< CloudType >::updateMesh(), FieldActivatedInjection< CloudType >::updateMesh(), KinematicLookupTableInjection< CloudType >::updateMesh(), cellVolumeWeight::walkFront(), inverseDistance::walkFront(), writeObjects::write(), and triSurface::writeStats().

Here is the call graph for this function:

◆ set() [2/7]

void set ( const labelRange range)

Definition at line 361 of file bitSet.C.

References labelRange::adjust(), labelRange::after(), IntRange< IntType >::empty(), IntRange< IntType >::first(), range, resize(), and IntRange< IntType >::start().

Here is the call graph for this function:

◆ unset() [1/9]

Foam::bitSet & unset ( const bitSet other)
inline

◆ unset() [2/9]

void unset ( const labelRange range)

Definition at line 439 of file bitSet.C.

References labelRange::after(), IntRange< IntType >::empty(), IntRange< IntType >::first(), range, resize(), and IntRange< IntType >::start().

Here is the call graph for this function:

◆ flip() [1/2]

void flip ( )
inline

◆ flip() [2/2]

void flip ( const label  pos)
inline

Definition at line 626 of file bitSetI.H.

References bitSet::reference::flip(), and PackedList< 1 >::size().

Here is the call graph for this function:

◆ swap()

void swap ( bitSet bitset)
inline

Definition at line 531 of file bitSetI.H.

References Foam::HashSetOps::bitset(), and PackedList::swap().

Here is the call graph for this function:

◆ transfer()

void transfer ( bitSet bitset)
inline

Definition at line 537 of file bitSetI.H.

References Foam::HashSetOps::bitset(), and PackedList::transfer().

Referenced by fvMeshSubsetProxy::correct(), bitSet::operator=(), cellVolumeWeight::walkFront(), and inverseDistance::walkFront().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bound() [1/2]

Foam::bitSet & bound ( const label  maxSize)
inline

Definition at line 635 of file bitSetI.H.

References PackedList< 1 >::resize(), and PackedList< 1 >::size().

Referenced by bitSet::bound().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bound() [2/2]

Foam::bitSet & bound ( const bitSet other)
inline

Definition at line 646 of file bitSetI.H.

References bitSet::bound(), and PackedList::size().

Here is the call graph for this function:

◆ extend() [1/2]

Foam::bitSet & extend ( const label  minSize)
inline

Definition at line 652 of file bitSetI.H.

References PackedList< 1 >::resize(), and PackedList< 1 >::size().

Referenced by bitSet::extend().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ extend() [2/2]

Foam::bitSet & extend ( const bitSet other)
inline

Definition at line 663 of file bitSetI.H.

References bitSet::extend(), and PackedList::size().

Here is the call graph for this function:

◆ setMany() [1/2]

label setMany ( InputIter  first,
InputIter  last 
)

Referenced by bitSet::bitSet(), and bitSet::set().

Here is the caller graph for this function:

◆ set() [3/7]

Foam::label set ( const labelUList locations)
inline

Definition at line 573 of file bitSetI.H.

References UList::begin(), UList::end(), and bitSet::setMany().

Here is the call graph for this function:

◆ set() [4/7]

label set ( const IndirectListBase< label, Addr > &  locations)
inline

◆ set() [5/7]

label set ( const FixedList< label, N > &  locations)

◆ unset() [3/9]

label unset ( InputIter  first,
InputIter  last 
)

◆ unset() [4/9]

Foam::label unset ( const labelUList locations)
inline

Definition at line 589 of file bitSetI.H.

References UList::begin(), UList::end(), and bitSet::unset().

Here is the call graph for this function:

◆ unset() [5/9]

label unset ( const IndirectListBase< label, Addr > &  locations)
inline

◆ unset() [6/9]

label unset ( const FixedList< label, N > &  locations)

◆ begin() [1/2]

Foam::bitSet::const_iterator begin ( ) const
inline

Definition at line 271 of file bitSetI.H.

◆ cbegin() [1/2]

Foam::bitSet::const_iterator cbegin ( ) const
inline

Definition at line 277 of file bitSetI.H.

◆ begin() [2/2]

Foam::bitSet::const_iterator begin ( label  pos) const
inline

Definition at line 283 of file bitSetI.H.

References Foam::pos().

Here is the call graph for this function:

◆ cbegin() [2/2]

Foam::bitSet::const_iterator cbegin ( label  pos) const
inline

Definition at line 289 of file bitSetI.H.

References Foam::pos().

Here is the call graph for this function:

◆ end()

Foam::bitSet::const_iterator end ( ) const
inlinenoexcept

Definition at line 295 of file bitSetI.H.

◆ cend()

Foam::bitSet::const_iterator cend ( ) const
inlinenoexcept

Definition at line 301 of file bitSetI.H.

◆ operator()()

bool operator() ( const label  pos) const
inline

Definition at line 671 of file bitSetI.H.

References Foam::pos(), and bitSet::test().

Here is the call graph for this function:

◆ operator[]() [1/2]

unsigned int operator[] ( const label  i) const
inline

Definition at line 677 of file bitSetI.H.

References PackedList< 1 >::get().

Here is the call graph for this function:

◆ operator[]() [2/2]

Foam::bitSet::reference operator[] ( const label  i)
inline

Definition at line 683 of file bitSetI.H.

References PackedList< 1 >::checkIndex().

Here is the call graph for this function:

◆ operator=() [1/3]

Foam::bitSet & operator= ( const bitSet bitset)
inline

Definition at line 692 of file bitSetI.H.

References Foam::HashSetOps::bitset(), and PackedList::operator=().

Here is the call graph for this function:

◆ operator=() [2/3]

Foam::bitSet & operator= ( bitSet &&  bitset)
inline

Definition at line 699 of file bitSetI.H.

References Foam::HashSetOps::bitset(), and bitSet::transfer().

Here is the call graph for this function:

◆ operator=() [3/3]

Foam::bitSet & operator= ( const bool  val)
inline

Definition at line 706 of file bitSetI.H.

References bitSet::fill().

Here is the call graph for this function:

◆ operator&=()

Foam::bitSet & operator&= ( const bitSet other)
inline

Definition at line 713 of file bitSetI.H.

References bitSet::andEq().

Here is the call graph for this function:

◆ operator|=()

Foam::bitSet & operator|= ( const bitSet other)
inline

Definition at line 719 of file bitSetI.H.

References bitSet::orEq().

Here is the call graph for this function:

◆ operator^=()

Foam::bitSet & operator^= ( const bitSet other)
inline

Definition at line 725 of file bitSetI.H.

References bitSet::xorEq().

Here is the call graph for this function:

◆ operator-=()

Foam::bitSet & operator-= ( const bitSet other)
inline

Definition at line 731 of file bitSetI.H.

References bitSet::minusEq().

Here is the call graph for this function:

◆ info()

InfoProxy<bitSet> info ( ) const
inline

Definition at line 578 of file bitSet.H.

◆ assign() [2/2]

void assign ( const unsigned int  val)
inline

Definition at line 588 of file bitSet.H.

References bitSet::fill().

Here is the call graph for this function:

◆ set() [6/7]

Foam::label set ( const IndirectListBase< label, Addr > &  locations)
inline

Definition at line 581 of file bitSetI.H.

References IndirectListBase< T, Addr >::begin(), IndirectListBase< T, Addr >::end(), and bitSet::setMany().

Here is the call graph for this function:

◆ unset() [7/9]

Foam::label unset ( const IndirectListBase< label, Addr > &  locations)
inline

Definition at line 597 of file bitSetI.H.

References IndirectListBase< T, Addr >::begin(), IndirectListBase< T, Addr >::end(), and bitSet::unset().

Here is the call graph for this function:

◆ setMany() [2/2]

Foam::label setMany ( InputIter  first,
InputIter  last 
)

Definition at line 68 of file bitSetTemplates.C.

References Foam::max(), and Foam::BitOps::set().

Here is the call graph for this function:

◆ unset() [8/9]

Foam::label unset ( InputIter  first,
InputIter  last 
)

Definition at line 94 of file bitSetTemplates.C.

References Foam::BitOps::unset().

Here is the call graph for this function:

◆ set() [7/7]

Foam::label set ( const FixedList< label, N > &  locations)

Definition at line 111 of file bitSetTemplates.C.

References FixedList::begin(), and FixedList::end().

Here is the call graph for this function:

◆ unset() [9/9]

Foam::label unset ( const FixedList< label, N > &  locations)

Definition at line 118 of file bitSetTemplates.C.

References FixedList::begin(), FixedList::end(), and Foam::BitOps::unset().

Here is the call graph for this function:

The documentation for this class was generated from the following files: