37 #ifndef Foam_topoBitSet_H 38 #define Foam_topoBitSet_H 131 virtual bool contains(
const label
id)
const;
134 virtual bool found(
const label
id)
const;
137 virtual bool set(
const label id);
140 virtual bool unset(
const label
id);
150 virtual void invert(
const label maxLen);
virtual label maxSize(const polyMesh &mesh) const =0
Return max allowable index (+1). Not implemented.
virtual void subtractSet(const labelUList &elems)
Subtract given elements from the set.
virtual void updateLabels(const labelUList &map)
Update map from map.
void reset()
Set values to false, leaving the size untouched.
Base for a special purpose topoSet using labels stored as a bitSet.
virtual bool found(const label id) const
Has the given index?
label size() const noexcept
The number of elements in table.
virtual void invert(const label maxLen)
Invert contents.
virtual void subset(const labelUList &elems)
Subset contents. Only elements present in both sets remain.
A class for handling words, derived from Foam::string.
virtual void check(const label maxSize)
Check limits on addressable range.
General set of labels of mesh quantity (points, cells, faces).
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
const bitSet & addressing() const noexcept
Return the bitSet.
topoBitSet(const polyMesh &mesh, const word &setName)
Construct (no-read) with empty selection.
void reset()
Clear all bits but do not adjust the addressable size.
Mesh consisting of general polyhedral cells.
virtual ~topoBitSet()=default
Destructor.
virtual bool unset(const label id)
Unset an index.
virtual bool contains(const label id) const
Has the given index?
virtual void addSet(const labelUList &elems)
Add given elements to the set.