37 #ifndef Foam_topoBoolSet_H 38 #define Foam_topoBoolSet_H 130 virtual bool contains(
const label
id)
const;
133 virtual bool found(
const label
id)
const;
136 virtual bool set(
const label id);
139 virtual bool unset(
const label
id);
149 virtual void invert(
const label maxLen);
virtual void subset(const labelUList &elems)
Subset contents. Only elements present in both sets remain.
virtual label maxSize(const polyMesh &mesh) const =0
Return max allowable index (+1). Not implemented.
void reset()
Set values to false, leaving the size untouched.
virtual bool unset(const label id)
Unset an index.
virtual bool contains(const label id) const
Has the given index?
virtual void invert(const label maxLen)
Invert contents.
const boolList & addressing() const noexcept
Return the boolList.
virtual ~topoBoolSet()=default
Destructor.
label size() const noexcept
The number of elements in table.
Base for a special purpose topoSet using labels stored as a boolList.
A class for handling words, derived from Foam::string.
virtual void addSet(const labelUList &elems)
Add given elements to the set.
virtual bool found(const label id) const
Has the given index?
List< bool > bools(const labelHashSet &locations)
Transform the on locations to a boolList, with true for each non-negative location and false for all ...
virtual void subtractSet(const labelUList &elems)
Subtract given elements from the set.
General set of labels of mesh quantity (points, cells, faces).
topoBoolSet(const polyMesh &mesh, const word &setName)
Construct (no-read) with empty selection.
virtual void updateLabels(const labelUList &map)
Update map from map.
Mesh consisting of general polyhedral cells.
virtual void check(const label maxSize)
Check limits on addressable range.