Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 #ifndef MeshedSurfaceIOAllocator_H
00036 #define MeshedSurfaceIOAllocator_H
00037 
00038 #include <OpenFOAM/pointIOField.H>
00039 #include <OpenFOAM/faceIOList.H>
00040 #include <surfMesh/surfZoneIOList.H>
00041 
00042 
00043 
00044 namespace Foam
00045 {
00046 
00047 
00048 
00049 
00050 
00051 
00052 class MeshedSurfaceIOAllocator
00053 {
00054     
00055 
00056         
00057         pointIOField   points_;
00058 
00059         
00060         faceIOList     faces_;
00061 
00062         
00063         surfZoneIOList zones_;
00064 
00065 
00066     
00067 
00068         
00069         MeshedSurfaceIOAllocator(const MeshedSurfaceIOAllocator&);
00070 
00071         
00072         void operator=(const MeshedSurfaceIOAllocator&);
00073 
00074 
00075 public:
00076 
00077     
00078 
00079         
00080         MeshedSurfaceIOAllocator
00081         (
00082             const IOobject& ioPoints,
00083             const IOobject& ioFaces,
00084             const IOobject& ioZones
00085         );
00086 
00087         
00088         MeshedSurfaceIOAllocator
00089         (
00090             const IOobject& ioPoints,
00091             const pointField& points,
00092             const IOobject& ioFaces,
00093             const faceList& faces,
00094             const IOobject& ioZones,
00095             const surfZoneList& zones
00096         );
00097 
00098         
00099         MeshedSurfaceIOAllocator
00100         (
00101             const IOobject& ioPoints,
00102             const Xfer< pointField >& points,
00103             const IOobject& ioFaces,
00104             const Xfer< faceList >& faces,
00105             const IOobject& ioZones,
00106             const Xfer< surfZoneList >& zones
00107         );
00108 
00109     
00110 
00111 
00112     
00113 
00114         
00115 
00116             
00117             pointIOField& storedIOPoints()
00118             {
00119                 return points_;
00120             }
00121 
00122             
00123             faceIOList& storedIOFaces()
00124             {
00125                 return faces_;
00126             }
00127 
00128             
00129             surfZoneIOList& storedIOZones()
00130             {
00131                 return zones_;
00132             }
00133 
00134             
00135             const pointIOField& storedIOPoints() const
00136             {
00137                 return points_;
00138             }
00139 
00140             
00141             const faceIOList& storedIOFaces() const
00142             {
00143                 return faces_;
00144             }
00145 
00146             
00147             const surfZoneIOList& storedIOZones() const
00148             {
00149                 return zones_;
00150             }
00151 
00152 
00153         
00154 
00155             
00156             void clear();
00157 
00158             
00159             
00160             void resetFaces
00161             (
00162                 const Xfer< faceList >& faces,
00163                 const Xfer< surfZoneList >& zones
00164             );
00165 
00166             
00167             
00168             void reset
00169             (
00170                 const Xfer< pointField >& points,
00171                 const Xfer< faceList >& faces,
00172                 const Xfer< surfZoneList >& zones
00173             );
00174 
00175             
00176             
00177             void reset
00178             (
00179                 const Xfer< List<point> >& points,
00180                 const Xfer< faceList >& faces,
00181                 const Xfer< surfZoneList >& zones
00182             );
00183 };
00184 
00185 
00186 
00187 
00188 } 
00189 
00190 
00191 
00192 #endif
00193 
00194