36 template<
class SetType>
37 void Foam::polyMeshFilter::updateSets(
const mapPolyMesh& map)
39 HashTable<const SetType*> sets =
40 map.mesh().objectRegistry::lookupClass<
const SetType>();
44 SetType&
set =
const_cast<SetType&
>(*iter());
52 map.mesh().facesInstance(),
56 IOobjectList fileSets(objs.lookupClass<SetType>());
60 if (!sets.found(iter.key()))
72 template<
class SetType>
73 void Foam::polyMeshFilter::copySets
75 const polyMesh& oldMesh,
76 const polyMesh& newMesh
79 HashTable<const SetType*> sets =
80 oldMesh.objectRegistry::lookupClass<
const SetType>();
84 const SetType&
set = *iter();
87 newMesh.objectRegistry::getObjectPtr<SetType>(
set.name());
92 (*origSet).sync(newMesh);
98 new SetType(newMesh,
set.
name(),
set,
set.writeOpt())
102 newSet->sync(newMesh);
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
#define forAllIters(container, iter)
Iterate across all elements in the container object.
forAllConstIters(mixture.phases(), phase)