Back to index

salome-gui  6.5.0
SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.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 //  SALOME SALOMEGUI : implementation of desktop and GUI kernel
00024 //  File   : SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx
00025 //  Module : SALOME
00026 //
00027 #ifndef _SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_HeaderFile
00028 #define _SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_HeaderFile
00029 
00030 #ifndef _Standard_HeaderFile
00031 #include <Standard.hxx>
00032 #endif
00033 #ifndef _Handle_SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_HeaderFile
00034 #include "Handle_SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx"
00035 #endif
00036 
00037 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
00038 #include "Handle_SALOME_InteractiveObject.hxx"
00039 #endif
00040 #ifndef _TColStd_IndexedMapOfInteger_HeaderFile
00041 #include <TColStd_IndexedMapOfInteger.hxx>
00042 #endif
00043 #ifndef _TCollection_MapNode_HeaderFile
00044 #include <TCollection_MapNode.hxx>
00045 #endif
00046 #ifndef _TCollection_MapNodePtr_HeaderFile
00047 #include <TCollection_MapNodePtr.hxx>
00048 #endif
00049 class SALOME_InteractiveObject;
00050 class TColStd_IndexedMapOfInteger;
00051 class TColStd_MapTransientHasher;
00052 class SALOME_DataMapOfIOMapOfInteger;
00053 class SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger;
00054 
00055 
00056 class SALOME_DataMapNodeOfDataMapOfIOMapOfInteger : public TCollection_MapNode {
00057 
00058 public:
00059 
00060     inline void* operator new(size_t,void* anAddress) 
00061       {
00062         return anAddress;
00063       }
00064     inline void* operator new(size_t size) 
00065       { 
00066         return Standard::Allocate(size); 
00067       }
00068     inline void  operator delete(void *anAddress) 
00069       { 
00070         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
00071       }
00072 //    inline void  operator delete(void *anAddress, size_t size) 
00073 //      { 
00074 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
00075 //      }
00076  // Methods PUBLIC
00077  // 
00078 Standard_EXPORT inline SALOME_DataMapNodeOfDataMapOfIOMapOfInteger(const Handle(SALOME_InteractiveObject)& K,const TColStd_IndexedMapOfInteger& I,const TCollection_MapNodePtr& n);
00079 Standard_EXPORT inline   Handle_SALOME_InteractiveObject& Key() const;
00080 Standard_EXPORT inline   TColStd_IndexedMapOfInteger& Value() const;
00081 Standard_EXPORT ~SALOME_DataMapNodeOfDataMapOfIOMapOfInteger();
00082 
00083 
00084 
00085 
00086  // Type management
00087  //
00088  Standard_EXPORT friend Handle_Standard_Type& SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_Type_();
00089  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
00090  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
00091 
00092 protected:
00093 
00094  // Methods PROTECTED
00095  // 
00096 
00097 
00098  // Fields PROTECTED
00099  //
00100 
00101 
00102 private: 
00103 
00104  // Methods PRIVATE
00105  // 
00106 
00107 
00108  // Fields PRIVATE
00109  //
00110 Handle_SALOME_InteractiveObject myKey;
00111 TColStd_IndexedMapOfInteger myValue;
00112 
00113 
00114 };
00115 
00116 #define TheKey Handle_SALOME_InteractiveObject
00117 #define TheKey_hxx "SALOME_InteractiveObject.hxx"
00118 #define TheItem TColStd_IndexedMapOfInteger
00119 #define TheItem_hxx <TColStd_IndexedMapOfInteger.hxx>
00120 #define Hasher TColStd_MapTransientHasher
00121 #define Hasher_hxx <TColStd_MapTransientHasher.hxx>
00122 #define TCollection_DataMapNode SALOME_DataMapNodeOfDataMapOfIOMapOfInteger
00123 #define TCollection_DataMapNode_hxx "SALOME_DataMapNodeOfDataMapOfIOMapOfInteger.hxx"
00124 #define TCollection_DataMapIterator SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger
00125 #define TCollection_DataMapIterator_hxx "SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger.hxx"
00126 #define Handle_TCollection_DataMapNode Handle_SALOME_DataMapNodeOfDataMapOfIOMapOfInteger
00127 #define TCollection_DataMapNode_Type_() SALOME_DataMapNodeOfDataMapOfIOMapOfInteger_Type_()
00128 #define TCollection_DataMap SALOME_DataMapOfIOMapOfInteger
00129 #define TCollection_DataMap_hxx "SALOME_DataMapOfIOMapOfInteger.hxx"
00130 
00131 #include <TCollection_DataMapNode.lxx>
00132 
00133 #undef TheKey
00134 #undef TheKey_hxx
00135 #undef TheItem
00136 #undef TheItem_hxx
00137 #undef Hasher
00138 #undef Hasher_hxx
00139 #undef TCollection_DataMapNode
00140 #undef TCollection_DataMapNode_hxx
00141 #undef TCollection_DataMapIterator
00142 #undef TCollection_DataMapIterator_hxx
00143 #undef Handle_TCollection_DataMapNode
00144 #undef TCollection_DataMapNode_Type_
00145 #undef TCollection_DataMap
00146 #undef TCollection_DataMap_hxx
00147 
00148 
00149 // other inline functions and methods (like "C++: function call" methods)
00150 //
00151 
00152 
00153 #endif