53 template<
class ZoneType,
class MeshType>
class ZoneMesh;
55 template<
class ZoneType,
class MeshType>
56 Ostream& operator<<(Ostream&, const ZoneMesh<ZoneType, MeshType>&);
62 template<
class ZoneType,
class MeshType>
65 public PtrList<ZoneType>,
71 const MeshType& mesh_;
74 mutable Map<label>* zoneMapPtr_;
83 ZoneMesh(
const ZoneMesh&);
86 void operator=(
const ZoneMesh<ZoneType, MeshType>&);
90 void calcZoneMap()
const;
117 const PtrList<ZoneType>&
128 const MeshType&
mesh()
const 192 friend Ostream& operator<< <ZoneType, MeshType>
const MeshType & mesh() const
Return the mesh reference.
label findIndex(const keyType &) const
Return zone index for the first match, return -1 if not found.
bool checkParallelSync(const bool report=false) const
Check whether all procs have all zones and in same order. Return.
A class for handling keywords in dictionaries.
wordList types() const
Return a list of zone types.
void clearAddressing()
Clear addressing.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void clear()
Clear the zones.
const Map< label > & zoneMap() const
Map of zones containing zone index for all zoned elements.
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
void movePoints(const pointField &)
Correct zone mesh after moving points.
label findZoneID(const word &zoneName) const
Find zone index given a name.
A class for handling words, derived from string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
PackedBoolList findMatching(const keyType &) const
Mark cells that match the zone specification.
labelList findIndices(const keyType &) const
Return zone indices for all matches.
const ZoneType & operator[](const word &) const
Return const reference to ZoneType by name.
label whichZone(const label objectIndex) const
Given a global object index, return the zone it is in.
label size() const
Return the number of elements in the UPtrList.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
wordList names() const
Return a list of zone names.
bool writeData(Ostream &) const
writeData member function required by regIOobject