Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-16 09:18:53

0001 // Created on: 2007-08-17
0002 // Created by: Sergey ZARITCHNY
0003 // Copyright (c) 2007-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _TDataStd_HDataMapOfStringHArray1OfInteger_HeaderFile
0017 #define _TDataStd_HDataMapOfStringHArray1OfInteger_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <TCollection_ExtendedString.hxx>
0022 #include <Standard_Integer.hxx>
0023 #include <NCollection_Array1.hxx>
0024 #include <NCollection_HArray1.hxx>
0025 #include <NCollection_DataMap.hxx>
0026 #include <Standard_Transient.hxx>
0027 
0028 //! Extension of NCollection_DataMap<TCollection_ExtendedString,
0029 //! occ::handle<NCollection_HArray1<int>>> class to be manipulated by handle.
0030 class TDataStd_HDataMapOfStringHArray1OfInteger : public Standard_Transient
0031 {
0032   DEFINE_STANDARD_RTTIEXT(TDataStd_HDataMapOfStringHArray1OfInteger, Standard_Transient)
0033 public:
0034   Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfInteger(const int NbBuckets = 1);
0035 
0036   Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfInteger(
0037     const NCollection_DataMap<TCollection_ExtendedString, occ::handle<NCollection_HArray1<int>>>&
0038       theOther);
0039 
0040   const NCollection_DataMap<TCollection_ExtendedString, occ::handle<NCollection_HArray1<int>>>&
0041     Map() const
0042   {
0043     return myMap;
0044   }
0045 
0046   NCollection_DataMap<TCollection_ExtendedString, occ::handle<NCollection_HArray1<int>>>&
0047     ChangeMap()
0048   {
0049     return myMap;
0050   }
0051 
0052 private:
0053   NCollection_DataMap<TCollection_ExtendedString, occ::handle<NCollection_HArray1<int>>> myMap;
0054 };
0055 
0056 #endif // _TDataStd_HDataMapOfStringHArray1OfInteger_HeaderFile