diff --git a/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMap.H b/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMap.H index b2737e08702c23c095c23bbbfc0e8a3e5314692f..20b1f882e00ab5eec41630fe595fa0b504edfcba 100644 --- a/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMap.H +++ b/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMap.H @@ -49,6 +49,7 @@ class objectMap; inline bool operator==(const objectMap& a, const objectMap& b); inline bool operator!=(const objectMap& a, const objectMap& b); inline Ostream& operator<<(Ostream&, const objectMap&); +inline Istream& operator>>(Istream&, objectMap&); /*---------------------------------------------------------------------------*\ @@ -100,6 +101,8 @@ public: // IOstream Operators friend Ostream& operator<<(Ostream&, const objectMap&); + + friend Istream& operator>>(Istream&, objectMap&); }; diff --git a/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMapI.H b/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMapI.H index 36218fa78c8544fb714eb0056449e89193698ace..5fbc4f8c03528e2f550ed9cc6ba57433507fa890 100644 --- a/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMapI.H +++ b/src/OpenFOAM/meshes/polyMesh/mapPolyMesh/objectMap/objectMapI.H @@ -122,6 +122,19 @@ inline Ostream& operator<<(Ostream& os, const objectMap& a) } +inline Istream& operator>>(Istream& is, objectMap& a) +{ + is.readBegin("objectMap"); + is >> a.index_ >> a.masterObjects_; + is.readEnd("objectMap"); + + // Check state of Istream + is.check("Istream& operator>>(Istream&, objectMap&)"); + + return is; +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // Master namespace Foam