src/GEOMAlgo/GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger.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_DataMapNodeOfDataMapOfPassKeyInteger_HeaderFile
00021 #define _GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_HeaderFile
00022 
00023 #ifndef _Standard_HeaderFile
00024 #include <Standard.hxx>
00025 #endif
00026 #ifndef _Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_HeaderFile
00027 #include <Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger.hxx>
00028 #endif
00029 
00030 #ifndef _GEOMAlgo_PassKey_HeaderFile
00031 #include <GEOMAlgo_PassKey.hxx>
00032 #endif
00033 #ifndef _Standard_Integer_HeaderFile
00034 #include <Standard_Integer.hxx>
00035 #endif
00036 #ifndef _TCollection_MapNode_HeaderFile
00037 #include <TCollection_MapNode.hxx>
00038 #endif
00039 #ifndef _TCollection_MapNodePtr_HeaderFile
00040 #include <TCollection_MapNodePtr.hxx>
00041 #endif
00042 class GEOMAlgo_PassKey;
00043 class GEOMAlgo_PassKeyMapHasher;
00044 class GEOMAlgo_DataMapOfPassKeyInteger;
00045 class GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger;
00046 
00047 
00048 class GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger : public TCollection_MapNode {
00049 
00050 public:
00051 
00052     void* operator new(size_t,void* anAddress) 
00053       {
00054         return anAddress;
00055       }
00056     void* operator new(size_t size) 
00057       { 
00058         return Standard::Allocate(size); 
00059       }
00060     void  operator delete(void *anAddress) 
00061       { 
00062         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
00063       }
00064  // Methods PUBLIC
00065  // 
00066 GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger(const GEOMAlgo_PassKey& K,const Standard_Integer& I,const TCollection_MapNodePtr& n);
00067   GEOMAlgo_PassKey& Key() const;
00068   Standard_Integer& Value() const;
00069 Standard_EXPORT ~GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger();
00070 
00071 
00072 
00073 
00074  // Type management
00075  //
00076  Standard_EXPORT friend Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_Type_();
00077  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
00078  Standard_EXPORT Standard_Boolean         IsKind(const Handle(Standard_Type)&) const;
00079 
00080 protected:
00081 
00082  // Methods PROTECTED
00083  // 
00084 
00085 
00086  // Fields PROTECTED
00087  //
00088 
00089 
00090 private: 
00091 
00092  // Methods PRIVATE
00093  // 
00094 
00095 
00096  // Fields PRIVATE
00097  //
00098 GEOMAlgo_PassKey myKey;
00099 Standard_Integer myValue;
00100 
00101 
00102 };
00103 
00104 #define TheKey GEOMAlgo_PassKey
00105 #define TheKey_hxx <GEOMAlgo_PassKey.hxx>
00106 #define TheItem Standard_Integer
00107 #define TheItem_hxx <Standard_Integer.hxx>
00108 #define Hasher GEOMAlgo_PassKeyMapHasher
00109 #define Hasher_hxx <GEOMAlgo_PassKeyMapHasher.hxx>
00110 #define TCollection_DataMapNode GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger
00111 #define TCollection_DataMapNode_hxx <GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger.hxx>
00112 #define TCollection_DataMapIterator GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger
00113 #define TCollection_DataMapIterator_hxx <GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger.hxx>
00114 #define Handle_TCollection_DataMapNode Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger
00115 #define TCollection_DataMapNode_Type_() GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_Type_()
00116 #define TCollection_DataMap GEOMAlgo_DataMapOfPassKeyInteger
00117 #define TCollection_DataMap_hxx <GEOMAlgo_DataMapOfPassKeyInteger.hxx>
00118 
00119 #include <TCollection_DataMapNode.lxx>
00120 
00121 #undef TheKey
00122 #undef TheKey_hxx
00123 #undef TheItem
00124 #undef TheItem_hxx
00125 #undef Hasher
00126 #undef Hasher_hxx
00127 #undef TCollection_DataMapNode
00128 #undef TCollection_DataMapNode_hxx
00129 #undef TCollection_DataMapIterator
00130 #undef TCollection_DataMapIterator_hxx
00131 #undef Handle_TCollection_DataMapNode
00132 #undef TCollection_DataMapNode_Type_
00133 #undef TCollection_DataMap
00134 #undef TCollection_DataMap_hxx
00135 
00136 
00137 // other Inline functions and methods (like "C++: function call" methods)
00138 //
00139 
00140 
00141 #endif