36template<
class SetType>
37void 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()))
72template<
class SetType>
73void 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);
void set(List< bool > &bools, const labelUList &locations)
Set the listed locations (assign 'true').
#define forAllIters(container, iter)
Iterate across all elements in the container object.
#define forAllConstIters(container, iter)
Iterate across all elements of the container object with const access.