0023024: Update headers of OCCT files
[occt.git] / src / TFunction / TFunction_GraphNode.cdl
CommitLineData
b311480e 1-- Created on: 2008-06-21
2-- Created by: Vladislav ROMASHKO
3-- Copyright (c) 2008-2012 OPEN CASCADE SAS
4--
5-- The content of this file is subject to the Open CASCADE Technology Public
6-- License Version 6.5 (the "License"). You may not use the content of this file
7-- except in compliance with the License. Please obtain a copy of the License
8-- at http://www.opencascade.org and read it completely before using this file.
9--
10-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12--
13-- The Original Code and all software distributed under the License is
14-- distributed on an "AS IS" basis, without warranty of any kind, and the
15-- Initial Developer hereby disclaims all such warranties, including without
16-- limitation, any warranties of merchantability, fitness for a particular
17-- purpose or non-infringement. Please see the License for the specific terms
18-- and conditions governing the rights and limitations under the License.
19
7fd59977 20
21class GraphNode from TFunction inherits Attribute from TDF
22
23 ---Purpose: Provides links between functions.
24
25uses
26
27 GUID from Standard,
28 OStream from Standard,
29 Attribute from TDF,
30 RelocationTable from TDF,
31 DataSet from TDF,
32 Label from TDF,
33 MapOfInteger from TColStd,
34 ExecutionStatus from TFunction
35
36is
37
38 ---Purpose: Static methods
39 -- ==============
40
41 Set (myclass; L : Label from TDF)
42 ---Purpose: Finds or Creates a graph node attribute at the label <L>.
43 -- Returns the attribute.
44 returns GraphNode from TFunction;
45
46 GetID (myclass)
47 ---Purpose: Returns the GUID for GraphNode attribute.
48 ---C++: return const &
49 returns GUID from Standard;
50
51
52 ---Purpose: Instant methods
53 -- ===============
54
55 Create
56 ---Purpose: Constructor (empty).
57 returns mutable GraphNode from TFunction;
58
59
60 AddPrevious (me : mutable;
61 funcID : Integer from Standard)
62 ---Purpose: Defines a reference to the function as a previous one.
63 returns Boolean from Standard;
64
65 AddPrevious (me : mutable;
66 func : Label from TDF)
67 ---Purpose: Defines a reference to the function as a previous one.
68 returns Boolean from Standard;
69
70 RemovePrevious (me : mutable;
71 funcID : Integer from Standard)
72 ---Purpose: Removes a reference to the function as a previous one.
73 returns Boolean from Standard;
74
75 RemovePrevious (me : mutable;
76 func : Label from TDF)
77 ---Purpose: Removes a reference to the function as a previous one.
78 returns Boolean from Standard;
79
80 GetPrevious (me)
81 ---C++: return const &
82 ---Purpose: Returns a map of previous functions.
83 returns MapOfInteger from TColStd;
84
85 RemoveAllPrevious (me : mutable);
86 ---Purpose: Clears a map of previous functions.
87
88
89 AddNext (me : mutable;
90 funcID : Integer from Standard)
91 ---Purpose: Defines a reference to the function as a next one.
92 returns Boolean from Standard;
93
94 AddNext (me : mutable;
95 func : Label from TDF)
96 ---Purpose: Defines a reference to the function as a next one.
97 returns Boolean from Standard;
98
99 RemoveNext (me : mutable;
100 funcID : Integer from Standard)
101 ---Purpose: Removes a reference to the function as a next one.
102 returns Boolean from Standard;
103
104 RemoveNext (me : mutable;
105 func : Label from TDF)
106 ---Purpose: Removes a reference to the function as a next one.
107 returns Boolean from Standard;
108
109 GetNext (me)
110 ---C++: return const &
111 ---Purpose: Returns a map of next functions.
112 returns MapOfInteger from TColStd;
113
114 RemoveAllNext (me : mutable);
115 ---Purpose: Clears a map of next functions.
116
117
118 GetStatus (me)
119 ---Purpose: Returns the execution status of the function.
120 returns ExecutionStatus from TFunction;
121
122 SetStatus (me : mutable;
123 status : ExecutionStatus from TFunction);
124 ---Purpose: Defines an execution status for a function.
125
126
127 ---Purpose: Implementation of Attribute methods
128 -- ===================================
129
130 ID (me)
131 ---C++: return const &
132 returns GUID from Standard;
133
134 Restore (me: mutable; with : Attribute from TDF)
135 is virtual;
136
137 Paste (me; into : mutable Attribute from TDF;
138 RT : mutable RelocationTable from TDF)
139 is virtual;
140
141 NewEmpty (me)
142 returns mutable Attribute from TDF
143 is redefined;
144
145 References (me;
146 aDataSet : DataSet from TDF)
147 is redefined;
148
149 Dump (me; anOS : in out OStream from Standard)
150 ---C++: return &
151 returns OStream from Standard
152 is redefined;
153
154
155fields
156
157 myPrevious : MapOfInteger from TColStd;
158 myNext : MapOfInteger from TColStd;
159 myStatus : ExecutionStatus from TFunction;
160
161end GraphNode;