0024509: Suspect unused variable in TPrsStd_ConstraintTools.cxx
[occt.git] / src / GraphTools / GraphTools_SC.cxx
1 // Created on: 1993-09-30
2 // Created by: Denis PASCAL
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 #include <GraphTools_SC.ixx>
18
19 //=======================================================================
20 //function : GraphTools_SC
21 //purpose  : 
22 //=======================================================================
23
24 GraphTools_SC::GraphTools_SC () {}
25
26
27 //=======================================================================
28 //function : Reset
29 //purpose  : 
30 //=======================================================================
31
32 void  GraphTools_SC::Reset()
33 {
34   myBackSC.Clear();
35   myVertices.Clear();
36   myFrontSC.Clear();
37 }
38
39
40 //=======================================================================
41 //function : AddVertex
42 //purpose  : 
43 //=======================================================================
44
45 void  GraphTools_SC::AddVertex(const Standard_Integer V) 
46 {
47   myVertices.Append (V);
48 }
49
50
51 //=======================================================================
52 //function : NbVertices
53 //purpose  : 
54 //=======================================================================
55
56 Standard_Integer  GraphTools_SC::NbVertices() const
57 {
58   return myVertices.Length();
59 }
60
61
62
63 //=======================================================================
64 //function : GetVertex
65 //purpose  : 
66 //=======================================================================
67
68 Standard_Integer  GraphTools_SC::GetVertex
69   (const Standard_Integer index) const
70 {
71   return myVertices(index);
72 }
73
74 //=======================================================================
75 //function : AddFrontSC
76 //purpose  : 
77 //=======================================================================
78
79 void  GraphTools_SC::AddFrontSC(const Handle(GraphTools_SC)& SC)
80 {
81   myFrontSC.Append(SC);
82 }
83
84
85 //=======================================================================
86 //function : GetFrontSC
87 //purpose  : 
88 //=======================================================================
89
90 const GraphTools_SCList&  GraphTools_SC::GetFrontSC() const
91 {
92   return myFrontSC;
93 }
94
95
96 //=======================================================================
97 //function : AddBackSC
98 //purpose  : 
99 //=======================================================================
100
101 void  GraphTools_SC::AddBackSC(const Handle(GraphTools_SC)& SC)
102 {
103   myBackSC.Append(SC);
104 }
105
106 //=======================================================================
107 //function : GetBackSC
108 //purpose  : 
109 //=======================================================================
110
111 const GraphTools_SCList&  GraphTools_SC::GetBackSC() const
112 {
113   return myBackSC;
114 }
115
116