Back to index

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