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);
label size() const noexcept
The number of elements in table.
Mesh consisting of general polyhedral cells.
virtual void invert(const label maxLen)
Invert contents.
virtual bool unset(const label id)
Unset an index.
boolList & addressing() noexcept
Access the boolList.
const boolList & addressing() const noexcept
Return the boolList.
virtual void subset(const labelUList &elems)
Subset contents. Only elements present in both sets remain.
virtual void subtractSet(const labelUList &elems)
Subtract given elements from the set.
topoBoolSet(const polyMesh &mesh, const word &setName)
Construct (no-read) with empty selection.
void reset()
Set values to false, leaving the size untouched.
virtual bool contains(const label id) const
Has the given index?
virtual void updateLabels(const labelUList &map)
Update map from map.
virtual ~topoBoolSet()=default
Destructor.
virtual bool set(const label id)
Set an index.
virtual void check(const label maxSize)
Check limits on addressable range.
virtual void addSet(const labelUList &elems)
Add given elements to the set.
General set of labels of mesh quantity (points, cells, faces).
topoSet(const topoSet &)=delete
No copy construct.
virtual label maxSize(const polyMesh &mesh) const =0
Return max allowable index (+1). Not implemented.
A class for handling words, derived from Foam::string.
List< bool > boolList
A List of bools.
UList< label > labelUList
A UList of labels.