Version: 6.3.1

src/NMTDS/NMTDS_InterfPool.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
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 _NMTDS_InterfPool_HeaderFile
00021 #define _NMTDS_InterfPool_HeaderFile
00022 
00023 #ifndef _NMTDS_MapOfPassKeyBoolean_HeaderFile
00024 #include <NMTDS_MapOfPassKeyBoolean.hxx>
00025 #endif
00026 #ifndef _NMTDS_ListOfPassKeyBoolean_HeaderFile
00027 #include <NMTDS_ListOfPassKeyBoolean.hxx>
00028 #endif
00029 #ifndef _Standard_Integer_HeaderFile
00030 #include <Standard_Integer.hxx>
00031 #endif
00032 #ifndef _BOPTools_CArray1OfSSInterference_HeaderFile
00033 #include <BOPTools_CArray1OfSSInterference.hxx>
00034 #endif
00035 #ifndef _BOPTools_CArray1OfESInterference_HeaderFile
00036 #include <BOPTools_CArray1OfESInterference.hxx>
00037 #endif
00038 #ifndef _BOPTools_CArray1OfVSInterference_HeaderFile
00039 #include <BOPTools_CArray1OfVSInterference.hxx>
00040 #endif
00041 #ifndef _BOPTools_CArray1OfEEInterference_HeaderFile
00042 #include <BOPTools_CArray1OfEEInterference.hxx>
00043 #endif
00044 #ifndef _BOPTools_CArray1OfVEInterference_HeaderFile
00045 #include <BOPTools_CArray1OfVEInterference.hxx>
00046 #endif
00047 #ifndef _BOPTools_CArray1OfVVInterference_HeaderFile
00048 #include <BOPTools_CArray1OfVVInterference.hxx>
00049 #endif
00050 #ifndef _Standard_Boolean_HeaderFile
00051 #include <Standard_Boolean.hxx>
00052 #endif
00053 #ifndef _NMTDS_InterfType_HeaderFile
00054 #include <NMTDS_InterfType.hxx>
00055 #endif
00056 class NMTDS_PassKeyBoolean;
00057 class NMTDS_ListOfPassKeyBoolean;
00058 class BOPTools_CArray1OfSSInterference;
00059 class BOPTools_CArray1OfESInterference;
00060 class BOPTools_CArray1OfVSInterference;
00061 class BOPTools_CArray1OfEEInterference;
00062 class BOPTools_CArray1OfVEInterference;
00063 class BOPTools_CArray1OfVVInterference;
00064 
00065 
00066 #ifndef _Standard_HeaderFile
00067 #include <Standard.hxx>
00068 #endif
00069 #ifndef _Standard_Macro_HeaderFile
00070 #include <Standard_Macro.hxx>
00071 #endif
00072 
00073 
00074 class NMTDS_InterfPool  {
00075 
00076 public:
00077 
00078     void* operator new(size_t,void* anAddress) 
00079       {
00080         return anAddress;
00081       }
00082     void* operator new(size_t size) 
00083       { 
00084         return Standard::Allocate(size); 
00085       }
00086     void  operator delete(void *anAddress) 
00087       { 
00088         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
00089       }
00090  // Methods PUBLIC
00091  // 
00092 
00093 
00094 Standard_EXPORT NMTDS_InterfPool();
00095 Standard_EXPORT virtual ~NMTDS_InterfPool();
00096 
00097 
00098 Standard_EXPORT   Standard_Boolean Add(const NMTDS_PassKeyBoolean& aPKB,const NMTDS_InterfType aType) ;
00099 
00100 
00101 Standard_EXPORT   Standard_Boolean Add(const Standard_Integer aInd1,const Standard_Integer aInd2,const NMTDS_InterfType aType) ;
00102 
00103 
00104 Standard_EXPORT   Standard_Boolean Add(const Standard_Integer aInd1,const Standard_Integer aInd2,const Standard_Boolean bFlag,const NMTDS_InterfType aType) ;
00105 
00106 
00107 Standard_EXPORT   Standard_Boolean Contains(const NMTDS_PassKeyBoolean& aPKB) const;
00108 
00109 
00110 Standard_EXPORT   Standard_Boolean Contains(const Standard_Integer aInd1,const Standard_Integer aInd2) const;
00111 
00112 
00113 Standard_EXPORT  const NMTDS_ListOfPassKeyBoolean& Get() const;
00114 
00115 
00116 Standard_EXPORT  const NMTDS_ListOfPassKeyBoolean& Get(const NMTDS_InterfType aType) const;
00117 
00118 
00119 Standard_EXPORT  const NMTDS_ListOfPassKeyBoolean& Get(const Standard_Integer aInd) const;
00120 
00121 
00122 Standard_EXPORT  const NMTDS_ListOfPassKeyBoolean& Get(const Standard_Integer aInd,const NMTDS_InterfType aType) const;
00123 
00124 
00126 Standard_EXPORT   BOPTools_CArray1OfSSInterference& SSInterferences() ;
00127 
00128 
00130 Standard_EXPORT   BOPTools_CArray1OfESInterference& ESInterferences() ;
00131 
00132 
00134 Standard_EXPORT   BOPTools_CArray1OfVSInterference& VSInterferences() ;
00135 
00136 
00138 Standard_EXPORT   BOPTools_CArray1OfEEInterference& EEInterferences() ;
00139 
00140 
00142 Standard_EXPORT   BOPTools_CArray1OfVEInterference& VEInterferences() ;
00143 
00144 
00146 Standard_EXPORT   BOPTools_CArray1OfVVInterference& VVInterferences() ;
00147 
00148 
00149 
00150 
00151 
00152 protected:
00153 
00154  // Methods PROTECTED
00155  // 
00156 
00157 
00158  // Fields PROTECTED
00159  //
00160 NMTDS_MapOfPassKeyBoolean myTable[6];
00161 NMTDS_ListOfPassKeyBoolean myList;
00162 Standard_Integer myMaxInd;
00163 BOPTools_CArray1OfSSInterference mySSInterferences;
00164 BOPTools_CArray1OfESInterference myESInterferences;
00165 BOPTools_CArray1OfVSInterference myVSInterferences;
00166 BOPTools_CArray1OfEEInterference myEEInterferences;
00167 BOPTools_CArray1OfVEInterference myVEInterferences;
00168 BOPTools_CArray1OfVVInterference myVVInterferences;
00169 
00170 
00171 private: 
00172 
00173  // Methods PRIVATE
00174  // 
00175 
00176 
00177  // Fields PRIVATE
00178  //
00179 
00180 
00181 };
00182 
00183 
00184 
00185 
00186 
00187 // other Inline functions and methods (like "C++: function call" methods)
00188 //
00189 
00190 
00191 #endif
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS