Back to index

salome-med  6.5.0
MEDPARTITIONER_ConnectZone.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 #ifndef __MEDPARTITIONER_CONNECTZONE_HXX__
00021 #define __MEDPARTITIONER_CONNECTZONE_HXX__
00022 
00023 #include "MEDPARTITIONER.hxx"
00024 #include "MEDCouplingUMesh.hxx"
00025 #include "MEDPARTITIONER_SkyLineArray.hxx"
00026 
00027 #include <map>
00028 #include <string>
00029 
00030 namespace MEDPARTITIONER
00031 {
00032   class MEDPARTITIONER_EXPORT ConnectZone
00033   {
00034   public :
00035     ConnectZone();
00036     ~ConnectZone();
00037     ConnectZone(const ConnectZone & myConnectZone);
00038 
00039     std::string getName() const ;
00040     std::string getDescription() const ;
00041     int getDistantDomainNumber() const ;
00042     int getLocalDomainNumber() const ;
00043     ParaMEDMEM::MEDCouplingUMesh *getLocalMesh() const ;
00044     ParaMEDMEM::MEDCouplingUMesh *getDistantMesh() const ;
00045 
00046     bool isEntityCorrespPresent(int localEntity,int distantEntity) const;
00047     const int *getNodeCorrespIndex() const;
00048     const int *getNodeCorrespValue() const;
00049     int getNodeNumber() const;
00050     const int *getFaceCorrespIndex() const;
00051     const int *getFaceCorrespValue() const;
00052     int getFaceNumber() const;
00053     const int *getEntityCorrespIndex(int localEntity,
00054                                      int distantEntity) const;
00055     const int *getEntityCorrespValue(int localEntity,
00056                                      int distantEntity) const;
00057     int getEntityCorrespNumber(int localEntity,
00058                                int distantEntity) const;
00059     int getEntityCorrespLength(int localEntity,
00060                                int distantEntity) const;
00061     void setName(const std::string& name) ;
00062     void setDescription(const std::string& description) ;
00063     void setDistantDomainNumber(int distantDomainNumber) ;
00064     void setLocalDomainNumber(int distantDomainNumber) ;
00065     void setLocalMesh(ParaMEDMEM::MEDCouplingUMesh * localMesh) ;
00066     void setDistantMesh(ParaMEDMEM::MEDCouplingUMesh * distantMesh) ;
00067 
00068     void setNodeCorresp(int * nodeCorresp, int nbnode);
00069     void setNodeCorresp(MEDPARTITIONER::SkyLineArray* array);
00070     void setFaceCorresp(int * faceCorresp, int nbface);
00071     void setFaceCorresp(MEDPARTITIONER::SkyLineArray* array);
00072     void setEntityCorresp(int localEntity, int distantEntity,
00073                           int * entityCorresp, int nbentity);
00074     void setEntityCorresp(int localEntity, int distantEntity,
00075                           MEDPARTITIONER::SkyLineArray *array);
00076   private :
00077     std::string _name;
00078     std::string _description;
00079     int _local_domain_number;
00080     int _distant_domain_number;
00081 
00082     ParaMEDMEM::MEDCouplingUMesh * _local_mesh;
00083     ParaMEDMEM::MEDCouplingUMesh * _distant_mesh;
00084 
00085     SkyLineArray * _node_corresp;
00086     SkyLineArray * _face_corresp;
00087   
00088     std::map < std::pair <int,int>, SkyLineArray * > _entity_corresp;
00089   };
00090 }
00091 # endif