0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / TNaming / TNaming_ShapesSet.lxx
1 // Created on: 1997-01-09
2 // Created by: Yves FRICAUD
3 // Copyright (c) 1997-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 #include <TopTools_MapOfShape.hxx>
18
19 //=======================================================================
20 //function : TNaming_ShapesSet
21 //purpose  : 
22 //=======================================================================
23
24 inline TNaming_ShapesSet::TNaming_ShapesSet()
25 {
26 }
27
28
29 //=======================================================================
30 //function : Clear
31 //purpose  : 
32 //=======================================================================
33
34 inline void TNaming_ShapesSet::Clear() 
35 {
36   myMap.Clear();
37 }
38
39 //=======================================================================
40 //function : Add
41 //purpose  : 
42 //=======================================================================
43
44 inline Standard_Boolean TNaming_ShapesSet::Add(const TopoDS_Shape& S) 
45 {
46   return myMap.Add(S);
47 }
48
49 //=======================================================================
50 //function : Standard_Boolean
51 //purpose  : 
52 //=======================================================================
53
54 inline Standard_Boolean TNaming_ShapesSet::Contains(const TopoDS_Shape& S) const
55 {
56   return myMap.Contains(S);
57 }
58
59 //=======================================================================
60 //function : Standard_Boolean
61 //purpose  : 
62 //=======================================================================
63
64 inline Standard_Boolean TNaming_ShapesSet::Remove(const TopoDS_Shape& S) 
65 {
66   return myMap.Remove(S);
67 }
68
69 //=======================================================================
70 //function : IsEmpty
71 //purpose  : 
72 //=======================================================================
73
74 inline   Standard_Boolean TNaming_ShapesSet::IsEmpty() const
75 {
76   return myMap.IsEmpty();
77 }
78
79 //=======================================================================
80 //function : NbShapes
81 //purpose  : 
82 //=======================================================================
83
84 inline Standard_Integer TNaming_ShapesSet::NbShapes() const
85 {
86   return myMap.Extent();
87 }
88
89
90 //=======================================================================
91 //function : ChangeMap
92 //purpose  : 
93 //=======================================================================
94
95 inline TopTools_MapOfShape& TNaming_ShapesSet::ChangeMap()
96 {
97   return myMap;
98 }
99
100 //=======================================================================
101 //function : Map
102 //purpose  : 
103 //=======================================================================
104
105 inline const TopTools_MapOfShape& TNaming_ShapesSet::Map() const
106 {
107   return myMap;
108 }