011bbb0bddbe798414ded74db3275de371df60cb
[occt.git] / src / TCollection / TCollection_HSet.lxx
1 // Created on: 1993-03-02
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 //=======================================================================
18 //function : Extent
19 //purpose  : 
20 //=======================================================================
21
22 inline Standard_Integer TCollection_HSet::Extent() const
23 {
24   return mySet.Extent();
25 }
26
27 //=======================================================================
28 //function : IsEmpty
29 //purpose  : 
30 //=======================================================================
31
32 inline Standard_Boolean TCollection_HSet::IsEmpty() const
33 {
34   return mySet.IsEmpty();
35 }
36
37 //=======================================================================
38 //function : Clear
39 //purpose  : 
40 //=======================================================================
41
42 inline void TCollection_HSet::Clear() 
43 {
44   mySet.Clear();
45 }
46
47 //=======================================================================
48 //function : Add
49 //purpose  : 
50 //=======================================================================
51
52 inline Standard_Boolean TCollection_HSet::Add(const Item& T)
53 {
54   return mySet.Add(T);
55 }
56
57 //=======================================================================
58 //function : Remove
59 //purpose  : 
60 //=======================================================================
61
62 inline Standard_Boolean TCollection_HSet::Remove(const Item& T)
63 {
64   return mySet.Remove(T);
65 }
66
67 //=======================================================================
68 //function : Contains
69 //purpose  : 
70 //=======================================================================
71
72 inline Standard_Boolean TCollection_HSet::Contains(const Item& T) const
73 {
74   return mySet.Contains(T);
75 }
76
77 //=======================================================================
78 //function : IsASubset
79 //purpose  : 
80 //=======================================================================
81
82 inline Standard_Boolean TCollection_HSet::IsASubset
83   (const Handle(TCollection_HSet)& S) const
84 {
85   return mySet.IsASubset(S->Set());
86 }
87
88 //=======================================================================
89 //function : IsAProperSubset
90 //purpose  : 
91 //=======================================================================
92
93 inline Standard_Boolean TCollection_HSet::IsAProperSubset
94   (const Handle(TCollection_HSet)& S) const
95 {
96   return mySet.IsAProperSubset(S->Set());
97 }
98
99 //=======================================================================
100 //function : Set
101 //purpose  : 
102 //=======================================================================
103
104 inline const TheSet& TCollection_HSet::Set() const
105 {
106   return mySet;
107 }
108
109 //=======================================================================
110 //function : ChangeSet
111 //purpose  : 
112 //=======================================================================
113
114 inline TheSet& TCollection_HSet::ChangeSet()
115 {
116   return mySet;
117 }