0025397: Iteration on a tree of nodes is too slow
[occt.git] / src / TDataStd / TDataStd_Expression.cdl
CommitLineData
b311480e 1-- Created on: 1997-12-16
2-- Created by: Denis PASCAL
3-- Copyright (c) 1997-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 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
973c2be1 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class Expression from TDataStd inherits Attribute from TDF
18
19 ---Purpose: Expression attribute.
20 -- ====================
21 --
22 -- * Data Structure of the Expression is stored in a
23 -- string and references to variables used by the string
24 --
25 -- Warning: To be consistent, each Variable referenced by the
26 -- expression must have its equivalent in the string
27
28
29uses Attribute from TDF,
30 Label from TDF,
31 GUID from Standard,
32 Real from Standard,
33 DataSet from TDF,
34 RelocationTable from TDF,
35 ExtendedString from TCollection,
36 AttributeList from TDF
37
38
39is
40
41 ---Purpose: class methods
42 -- =============
43
44 GetID (myclass)
45 ---C++: return const &
46 returns GUID from Standard;
47
48
49 Set (myclass ; label : Label from TDF)
50 ---Purpose: Find, or create, an Expression attribute.
51 returns Expression from TDataStd;
52
53 ---Purpose: Expressionmethods
54 -- ============
55
56 Create
6e33d3ce 57 returns Expression from TDataStd;
7fd59977 58
59 Name (me)
60 ---Purpose: build and return the expression name
61 returns ExtendedString from TCollection;
62
63 SetExpression (me : mutable; E : ExtendedString from TCollection);
64
65 GetExpression (me)
66 returns ExtendedString from TCollection;
67 ---C++: return const &
68
69 GetVariables (me : mutable)
70 ---C++: return &
71 returns AttributeList from TDF;
72
73 ---Category: TDF_Attribute methods
74 -- =====================
75
76 ID (me)
77 ---C++: return const &
78 returns GUID from Standard;
79
80 Restore (me: mutable; With : Attribute from TDF);
81
82 NewEmpty(me)
6e33d3ce 83 returns Attribute from TDF;
7fd59977 84
6e33d3ce 85 Paste (me; Into : Attribute from TDF;
86 RT : RelocationTable from TDF);
7fd59977 87
88 Dump(me; anOS : in out OStream from Standard)
89 returns OStream from Standard
90 is redefined;
91 ---C++: return &
92
93fields
94
95 myExpression : ExtendedString from TCollection;
96 myVariables : AttributeList from TDF;
97
98end Expression;