Version: 8.3.0
MED_Algorithm.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 #ifndef MED_Algorithm_HeaderFile
23 #define MED_Algorithm_HeaderFile
24 
25 #include "MED_WrapperBase.hxx"
26 #include "MED_Structures.hxx"
27 
28 #include <set>
29 
30 namespace MED
31 {
32  //---------------------------------------------------------------
33  typedef std::map<EGeometrieElement,PElemInfo> TGeom2ElemInfo;
34  typedef std::map<EEntiteMaillage,TGeom2ElemInfo> TEntity2TGeom2ElemInfo;
35 
39  GetEntity2TGeom2ElemInfo(const PWrapper& theWrapper,
40  const PMeshInfo& theMeshInfo,
41  const MED::TEntityInfo& theEntityInfo);
42 
43 
44  //---------------------------------------------------------------
45  typedef std::set<PFamilyInfo> TFamilyInfoSet;
46 
50  GetFamilyInfoSet(const PWrapper& theWrapper,
51  const PMeshInfo& theMeshInfo);
52 
53 
54  //---------------------------------------------------------------
55  typedef boost::tuple<PFamilyInfo,TInt> TFamilyTSize;
56 
57  bool
58  operator<(const TFamilyTSize& theLeft, const TFamilyTSize& theRight);
59  typedef std::set<TFamilyTSize> TFamilyTSizeSet;
60 
61 
62  //---------------------------------------------------------------
63  typedef std::map<EEntiteMaillage,TFamilyTSizeSet> TEntity2FamilySet;
64 
68  GetEntity2FamilySet(const PWrapper& theWrapper,
69  const TEntity2TGeom2ElemInfo& theEntity2TGeom2ElemInfo,
70  const TFamilyInfoSet& theFamilyInfoSet);
71 
72 
73  //---------------------------------------------------------------
74  typedef std::map<std::string,TFamilyInfoSet> TGroupInfo;
75 
79  GetGroupInfo(const TFamilyInfoSet& theFamilyInfoSet);
80 
81 
82  //---------------------------------------------------------------
83  typedef std::set<PTimeStampInfo> TTimeStampInfoSet;
84  typedef std::map<PFieldInfo,TTimeStampInfoSet> TFieldInfo2TimeStampInfoSet;
85 
89  GetFieldInfo2TimeStampInfoSet(const PWrapper& theWrapper,
90  const PMeshInfo& theMeshInfo,
91  const MED::TEntityInfo& theEntityInfo);
92 
93 
94  //---------------------------------------------------------------
95  typedef std::map<EEntiteMaillage,TFieldInfo2TimeStampInfoSet> TEntite2TFieldInfo2TimeStampInfoSet;
96 
100  GetEntite2TFieldInfo2TimeStampInfoSet(const TFieldInfo2TimeStampInfoSet& theFieldInfo2TimeStampInfoSet);
101 
102 
103  //---------------------------------------------------------------
104  typedef std::map<TGaussInfo::TKey,PGaussInfo,TGaussInfo::TLess> TKey2Gauss;
105 
108  TKey2Gauss
109  GetKey2Gauss(const PWrapper& theWrapper,
110  TErr* theErr = NULL,
111  EModeSwitch theMode = eFULL_INTERLACE);
112 
113 
114  //---------------------------------------------------------------
118  GetProfileInfo(const PWrapper& theWrapper,
119  const std::string& theProfileName,
120  TErr* theErr = NULL,
121  EModeProfil theMode = eCOMPACT);
122 
123 
124  //---------------------------------------------------------------
125  typedef std::map<TProfileInfo::TKey,PProfileInfo> TKey2Profile;
126  typedef boost::tuple<EModeProfil,TKey2Profile> TMKey2Profile;
127 
131  GetMKey2Profile(const PWrapper& theWrapper,
132  TErr* theErr = NULL,
133  EModeProfil theMode = eCOMPACT);
134 
135  //---------------------------------------------------------------
140  TInt theId);
141 
142  typedef std::map<TInt,TInt> TFamilyID2NbCells;
143 
148 
152  ConvertEntity(const EEntiteMaillage& aEntity);
153 
154 }
155 
156 #endif