80 const label initialCapacity,
151 reader.readIOcontents(typeName, labels);
171 for (
const label pointi : labels)
173 contents.
set(pointi);
182 for (label pointi=0; pointi < len; ++pointi)
184 if (contents.
test(pointi))
210 for (
const label pointi : labels)
212 contents.
set(pointi);
218 const label len = contents.
size();
222 for (label i=0; i < len; ++i)
224 if (contents.
test(i))
236 for (label i=0; i < len; ++i)
238 if (contents.
test(i))
249 const primitiveMesh&
mesh,
writeOption
Enumeration defining write preferences.
void size(const label n)
Older name for setAddressableSize.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
label nPoints() const noexcept
Number of mesh points.
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
void set(List< bool > &bools, const labelUList &locations)
Set the listed locations (assign 'true').
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Macros for easy insertion into run-time selection tables.
virtual const pointField & points() const
Return raw points.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
defineTypeName(manifoldCellsMeshObject)
static IOobject findIOobject(const polyMesh &mesh, const word &name, IOobjectOption::readOption rOpt=IOobjectOption::MUST_READ, IOobjectOption::writeOption wOpt=IOobjectOption::NO_WRITE, IOobjectOption::registerOption reg=IOobjectOption::LEGACY_REGISTER)
Find IOobject in the polyMesh/sets/ (used as constructor helper)
label nOldPoints() const noexcept
Number of points in mesh before distribution.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
const labelList & reversePointMap() const noexcept
Reverse point map.
label writeDebug(Ostream &os, const label maxElem, labelHashSet::const_iterator &iter) const
Write part of contents nicely formatted.
OBJstream os(runTime.globalPath()/outputName)
static void check(const int retVal, const char *what)
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type test(const label i) const
Test bool value at specified position, always false for out-of-range access.
virtual void distribute(const mapDistributePolyMesh &)
Update any stored data for mesh redistribution.
General set of labels of mesh quantity (points, cells, faces).
registerOption
Enumeration for use with registerObject(). Values map to bool (false/true)
void distributePointData(List< T > &values) const
Distribute list of point data.
static labelHashSet readContents(const polyMesh &mesh, const word &name)
Read and return contents. Intermediate IOobject is not registered.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Mesh consisting of general polyhedral cells.
virtual void sync(const polyMesh &mesh)
Sync set across coupled patches. Adds coupled points to set.
virtual void writeDebug(Ostream &os, const primitiveMesh &, const label maxLen) const
Write maxLen items with label and coordinates.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...
Do not request registration (bool: false)
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
pointSet(const IOobject &io)
Construct from IOobject.
readOption
Enumeration defining read preferences.