0025397: Iteration on a tree of nodes is too slow
[occt.git] / src / TDataStd / TDataStd_IntPackedMap.lxx
1 // Created on: 2008-01-24
2 // Created by: Sergey ZARITCHNY
3 // Copyright (c) 2008-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #include <TColStd_HPackedMapOfInteger.hxx>
17 //=======================================================================
18 //function : GetHMap
19 //purpose  : 
20 //=======================================================================
21 inline const Handle(TColStd_HPackedMapOfInteger)&  TDataStd_IntPackedMap::GetHMap () const
22 {
23   return myMap;
24 }
25
26 //=======================================================================
27 //function : 
28 //purpose  : 
29 //=======================================================================
30
31 inline const TColStd_PackedMapOfInteger&  TDataStd_IntPackedMap::GetMap () const
32 {
33   return  myMap->Map();
34 }
35
36 //=======================================================================
37 //function : IsEmpty
38 //purpose  : 
39 //=======================================================================
40 inline Standard_Boolean  TDataStd_IntPackedMap::IsEmpty() const
41 {
42   return myMap->Map().IsEmpty();
43 }
44
45 //=======================================================================
46 //function : Extent
47 //purpose  : 
48 //=======================================================================
49 inline Standard_Integer TDataStd_IntPackedMap::Extent() const
50 {
51   return myMap->Map().Extent();
52 }
53
54 //=======================================================================
55 //function : RemoveMap
56 //purpose  : 
57 //=======================================================================
58 inline void TDataStd_IntPackedMap::RemoveMap(void) 
59 {
60   myMap.Nullify(); 
61 }
62
63
64 //=======================================================================
65 //function : SetDelta
66 //purpose  : 
67 //=======================================================================
68 inline void TDataStd_IntPackedMap::SetDelta(const Standard_Boolean isDelta) 
69 {
70   myIsDelta = isDelta;
71 }
72 //=======================================================================
73 //function : GetDelta
74 //purpose  : 
75 //=======================================================================
76 inline Standard_Boolean TDataStd_IntPackedMap::GetDelta(void)  const
77 {
78   return myIsDelta;
79 }