0024947: Redesign OCCT legacy type system
[occt.git] / src / TDataStd / TDataStd_IntPackedMap.lxx
CommitLineData
b311480e 1// Created on: 2008-01-24
2// Created by: Sergey ZARITCHNY
973c2be1 3// Copyright (c) 2008-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
16#include <TColStd_HPackedMapOfInteger.hxx>
17//=======================================================================
18//function : GetHMap
19//purpose :
20//=======================================================================
21inline const Handle(TColStd_HPackedMapOfInteger)& TDataStd_IntPackedMap::GetHMap () const
22{
23 return myMap;
24}
25
26//=======================================================================
27//function :
28//purpose :
29//=======================================================================
30
31inline const TColStd_PackedMapOfInteger& TDataStd_IntPackedMap::GetMap () const
32{
33 return myMap->Map();
34}
35
36//=======================================================================
37//function : IsEmpty
38//purpose :
39//=======================================================================
40inline Standard_Boolean TDataStd_IntPackedMap::IsEmpty() const
41{
42 return myMap->Map().IsEmpty();
43}
44
45//=======================================================================
46//function : Extent
47//purpose :
48//=======================================================================
49inline Standard_Integer TDataStd_IntPackedMap::Extent() const
50{
51 return myMap->Map().Extent();
52}
53
54//=======================================================================
55//function : RemoveMap
56//purpose :
57//=======================================================================
58inline void TDataStd_IntPackedMap::RemoveMap(void)
59{
60 myMap.Nullify();
61}
62
63
64//=======================================================================
65//function : SetDelta
66//purpose :
67//=======================================================================
68inline void TDataStd_IntPackedMap::SetDelta(const Standard_Boolean isDelta)
69{
70 myIsDelta = isDelta;
71}
72//=======================================================================
73//function : GetDelta
74//purpose :
75//=======================================================================
76inline Standard_Boolean TDataStd_IntPackedMap::GetDelta(void) const
77{
78 return myIsDelta;
79}