Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-13 09:18:07

0001 // Copyright (c) 2006-2026 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _TColStd_HPackedMapOfInteger_HeaderFile
0015 #define _TColStd_HPackedMapOfInteger_HeaderFile
0016 
0017 #include <TColStd_PackedMapOfInteger.hxx>
0018 #include <Standard_Type.hxx>
0019 #include <Standard_Transient.hxx>
0020 
0021 //! @deprecated This Handle wrapper class is deprecated.
0022 //! Use TColStd_PackedMapOfInteger directly instead.
0023 class TColStd_HPackedMapOfInteger : public Standard_Transient
0024 {
0025 public:
0026   //! Constructor of empty map.
0027   //! @param theNbBuckets initial number of buckets
0028   TColStd_HPackedMapOfInteger(const int theNbBuckets = 1)
0029       : myMap(theNbBuckets)
0030   {
0031   }
0032 
0033   //! Constructor from already existing map; performs copying.
0034   //! @param theOther the map to copy
0035   TColStd_HPackedMapOfInteger(const TColStd_PackedMapOfInteger& theOther)
0036       : myMap(theOther)
0037   {
0038   }
0039 
0040   //! Constructor from already existing map; performs copying.
0041   //! @param theOther the map to copy
0042   TColStd_HPackedMapOfInteger(TColStd_PackedMapOfInteger&& theOther)
0043       : myMap(std::move(theOther))
0044   {
0045   }
0046 
0047   //! Returns const reference to the underlying map.
0048   const TColStd_PackedMapOfInteger& Map() const { return myMap; }
0049 
0050   //! Returns mutable reference to the underlying map.
0051   TColStd_PackedMapOfInteger& ChangeMap() { return myMap; }
0052 
0053   DEFINE_STANDARD_RTTI_INLINE(TColStd_HPackedMapOfInteger, Standard_Transient)
0054 
0055 private:
0056   TColStd_PackedMapOfInteger myMap;
0057 };
0058 
0059 #endif // _TColStd_HPackedMapOfInteger_HeaderFile