32 void Foam::meshObjects::Delete(regIOobject& io)
34 if (meshObjects::debug)
39 if (io.ownedByRegistry())
46 <<
"Attempt to checkout and delete object " << io.name()
47 <<
" not owned by registry."
63 if (meshObjects::debug)
65 Pout<<
"meshObjects::movePoints(objectRegistry&) :"
67 <<
" meshObjects for region " << obr.
name() <<
endl;
79 if (meshObjects::debug)
87 Delete<Mesh>(iter()->io_);
105 if (meshObjects::debug)
107 Pout<<
"meshObjects::distribute(objectRegistry&, "
108 "const polyDistributionMap& map) : updating "
110 <<
" meshObjects for region " << obr.
name() <<
endl;
122 if (meshObjects::debug)
131 Delete<Mesh>(iter()->io_);
149 if (meshObjects::debug)
151 Pout<<
"meshObjects::topoChange(objectRegistry&, "
153 <<
" meshObjects for region " << obr.
name() <<
endl;
165 if (meshObjects::debug)
174 Delete<Mesh>(iter()->io_);
192 if (meshObjects::debug)
194 Pout<<
"meshObjects::mapMesh(objectRegistry&, "
196 <<
" meshObjects for region " << obr.
name() <<
endl;
208 if (meshObjects::debug)
216 Delete<Mesh>(iter()->io_);
234 if (meshObjects::debug)
236 Pout<<
"meshObjects::swap(objectRegistry&, "
238 <<
" meshObjects for region " << obr.
name() <<
endl;
250 if (meshObjects::debug)
259 Delete<Mesh>(iter()->io_);
273 if (meshObjects::debug)
275 Pout<<
"meshObjects::addPatch(objectRegistry&, "
277 <<
" meshObjects for region " << obr.
name() <<
endl;
289 if (meshObjects::debug)
291 Pout<<
" Adding patch to " << iter()->io_.
name() <<
endl;
298 Delete<Mesh>(iter()->io_);
309 const bool validBoundary
317 if (meshObjects::debug)
319 Pout<<
"meshObjects::addPatch(objectRegistry&, "
321 <<
" meshObjects for region " << obr.
name() <<
endl;
333 if (meshObjects::debug)
335 Pout<<
" Adding patch to " << iter()->io_.
name() <<
endl;
345 Delete<Mesh>(iter()->io_);
359 if (meshObjects::debug)
361 Pout<<
"meshObjects::reset(objectRegistry&) :"
363 <<
" meshObjects for region " << obr.
name() <<
endl;
375 if (meshObjects::debug)
383 Delete<Mesh>(iter()->io_);
390 template<
class Mesh,
template<
class>
class MeshObjectType>
398 if (meshObjects::debug)
400 Pout<<
"meshObjects::clear(objectRegistry&) :"
402 <<
" meshObjects for region " << obr.
name() <<
endl;
409 if (meshObjects::debug)
417 Delete<Mesh>(iter()->io_);
426 template<
class>
class FromType,
427 template<
class>
class ToType
436 if (meshObjects::debug)
438 Pout<<
"meshObjects::clearUpto(objectRegistry&) :"
440 <<
" meshObjects for region " << obr.
name() <<
endl;
445 if (!
isA<ToType<Mesh>>(*iter()))
447 Delete<Mesh>(iter()->io_);
453 template<
class Mesh,
template<
class>
class MeshObjectType>
461 if (meshObjects::debug)
463 Pout<<
"meshObjects::clear(objectRegistry&) :"
465 <<
" meshObjects for region " << obr.
name() <<
endl;
470 Delete<Mesh>(iter()->io_);
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
An STL-conforming hash table.
const word & name() const
Return name.
virtual const fileName & name() const
Return the name of the stream.
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
static void clearUpto(objectRegistry &)
Clear all meshObjects derived from FromType up to (but not including)
static void movePoints(objectRegistry &)
static void mapMesh(objectRegistry &, const polyMeshMap &)
static void reset(objectRegistry &)
static void clearAll(objectRegistry &)
Clear all meshObjects of type MeshObjectType.
static void clear(objectRegistry &)
Clear all but permanent meshObjects of type MeshObjectType.
static void distribute(objectRegistry &, const polyDistributionMap &)
static void addPatch(objectRegistry &, const label patchi)
static void swap(objectRegistry &, Mesh &otherMesh)
static void topoChange(objectRegistry &, const polyTopoChangeMap &)
static void reorderPatches(objectRegistry &, const labelUList &newToOld, const bool validBoundary)
Registry of regIOobjects.
HashTable< const Type * > lookupClass(const bool strict=false) const
Lookup and return all objects of the given Type.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
errorManip< error > abort(error &err)
bool isA(const Type &t)
Check if a dynamic_cast to typeid is possible.
prefixOSstream Pout(cout, "Pout")