src/GEOMAlgo/GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00002 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00003 // 
00004 // This library is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU Lesser General Public
00006 // License as published by the Free Software Foundation; either 
00007 // version 2.1 of the License.
00008 // 
00009 // This library is distributed in the hope that it will be useful 
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00012 // Lesser General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU Lesser General Public  
00015 // License along with this library; if not, write to the Free Software 
00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00017 //
00018 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00019 
00020 #ifndef _GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape_HeaderFile
00021 #define _GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape_HeaderFile
00022 
00023 #ifndef _Standard_HeaderFile
00024 #include <Standard.hxx>
00025 #endif
00026 #ifndef _Handle_GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape_HeaderFile
00027 #include <Handle_GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape.hxx>
00028 #endif
00029 
00030 #ifndef _Standard_Integer_HeaderFile
00031 #include <Standard_Integer.hxx>
00032 #endif
00033 #ifndef _TopoDS_Shape_HeaderFile
00034 #include <TopoDS_Shape.hxx>
00035 #endif
00036 #ifndef _TCollection_MapNodePtr_HeaderFile
00037 #include <TCollection_MapNodePtr.hxx>
00038 #endif
00039 #ifndef _TCollection_MapNode_HeaderFile
00040 #include <TCollection_MapNode.hxx>
00041 #endif
00042 class TopoDS_Shape;
00043 class TColStd_MapIntegerHasher;
00044 class GEOMAlgo_IndexedDataMapOfIntegerShape;
00045 
00046 
00047 class GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape : public TCollection_MapNode {
00048 
00049 public:
00050 
00051     void* operator new(size_t,void* anAddress) 
00052       {
00053         return anAddress;
00054       }
00055     void* operator new(size_t size) 
00056       { 
00057         return Standard::Allocate(size); 
00058       }
00059     void  operator delete(void *anAddress) 
00060       { 
00061         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
00062       }
00063  // Methods PUBLIC
00064  // 
00065 GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape(const Standard_Integer& K1,const Standard_Integer K2,const TopoDS_Shape& I,const TCollection_MapNodePtr& n1,const TCollection_MapNodePtr& n2);
00066   Standard_Integer& Key1() const;
00067   Standard_Integer& Key2() const;
00068   TCollection_MapNodePtr& Next2() const;
00069   TopoDS_Shape& Value() const;
00070 Standard_EXPORT ~GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape();
00071 
00072 
00073 
00074 
00075  // Type management
00076  //
00077  Standard_EXPORT friend Handle_Standard_Type& GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape_Type_();
00078  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
00079  Standard_EXPORT Standard_Boolean         IsKind(const Handle(Standard_Type)&) const;
00080 
00081 protected:
00082 
00083  // Methods PROTECTED
00084  // 
00085 
00086 
00087  // Fields PROTECTED
00088  //
00089 
00090 
00091 private: 
00092 
00093  // Methods PRIVATE
00094  // 
00095 
00096 
00097  // Fields PRIVATE
00098  //
00099 Standard_Integer myKey1;
00100 Standard_Integer myKey2;
00101 TopoDS_Shape myValue;
00102 TCollection_MapNodePtr myNext2;
00103 
00104 
00105 };
00106 
00107 #define TheKey Standard_Integer
00108 #define TheKey_hxx <Standard_Integer.hxx>
00109 #define TheItem TopoDS_Shape
00110 #define TheItem_hxx <TopoDS_Shape.hxx>
00111 #define Hasher TColStd_MapIntegerHasher
00112 #define Hasher_hxx <TColStd_MapIntegerHasher.hxx>
00113 #define TCollection_IndexedDataMapNode GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape
00114 #define TCollection_IndexedDataMapNode_hxx <GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape.hxx>
00115 #define Handle_TCollection_IndexedDataMapNode Handle_GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape
00116 #define TCollection_IndexedDataMapNode_Type_() GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfIntegerShape_Type_()
00117 #define TCollection_IndexedDataMap GEOMAlgo_IndexedDataMapOfIntegerShape
00118 #define TCollection_IndexedDataMap_hxx <GEOMAlgo_IndexedDataMapOfIntegerShape.hxx>
00119 
00120 #include <TCollection_IndexedDataMapNode.lxx>
00121 
00122 #undef TheKey
00123 #undef TheKey_hxx
00124 #undef TheItem
00125 #undef TheItem_hxx
00126 #undef Hasher
00127 #undef Hasher_hxx
00128 #undef TCollection_IndexedDataMapNode
00129 #undef TCollection_IndexedDataMapNode_hxx
00130 #undef Handle_TCollection_IndexedDataMapNode
00131 #undef TCollection_IndexedDataMapNode_Type_
00132 #undef TCollection_IndexedDataMap
00133 #undef TCollection_IndexedDataMap_hxx
00134 
00135 
00136 // other Inline functions and methods (like "C++: function call" methods)
00137 //
00138 
00139 
00140 #endif