80 const label initialCapacity,
151 reader.readIOcontents(
typeName, labels);
152 reader.checkLabels(labels,
mesh.nPoints());
167 const label len =
mesh.nPoints();
171 for (
const label pointi : labels)
173 contents.
set(pointi);
182 for (label pointi=0; pointi < len; ++pointi)
184 if (contents.
test(pointi))
194 return mesh.nPoints();
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))
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
bool set(const Key &key)
Same as insert (no value to overwrite).
void reserve(label numEntries)
Reserve space for at least the specified number of elements (not the number of buckets) and regenerat...
label size() const noexcept
The number of elements in table.
void clear()
Remove all entries from table.
registerOption
Enumeration for use with registerObject(). Values map to bool (false/true).
@ NO_REGISTER
Do not request registration (bool: false).
readOption
Enumeration defining read preferences.
writeOption
Enumeration defining write preferences.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool test(const label i) const
Test bool value at specified position, always false for out-of-range access.
void size(const label n)
Older name for setAddressableSize.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
void distributePointData(List< T > &values) const
Distribute list of point data.
label nOldPoints() const noexcept
Number of points in mesh before distribution.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const labelList & reversePointMap() const noexcept
Reverse point map.
virtual void distribute(const mapDistributePolyMesh &)
Update any stored data for mesh redistribution.
virtual label maxSize(const polyMesh &mesh) const
Return max index+1.
static labelHashSet readContents(const polyMesh &mesh, const word &name)
Read and return contents. Intermediate IOobject is not registered.
pointSet(const IOobject &io)
Construct from IOobject.
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.
virtual void updateMesh(const mapPolyMesh &morphMap)
Update any stored data for new labels.
Mesh consisting of general polyhedral cells.
virtual const pointField & points() const
Return raw points.
Cell-face mesh analysis engine.
General set of labels of mesh quantity (points, cells, faces).
topoSet(const topoSet &)=delete
No copy construct.
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 writeDebug(Ostream &os, const label maxElem, labelHashSet::const_iterator &iter) const
Write part of contents nicely formatted.
virtual void updateLabels(const labelUList &map)
Update map from map.
virtual bool set(const label id)
Set an index.
virtual void check(const label maxSize)
Check limits on addressable range.
A class for handling words, derived from Foam::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
#define defineTypeName(Type)
Define the typeName.
OBJstream os(runTime.globalPath()/outputName)
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
static void check(const int retVal, const char *what)
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
List< bool > boolList
A List of bools.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
UList< label > labelUList
A UList of labels.