0025112: Undo of modification of the attribute TDataStd_IntPackedMap works wrong
[occt.git] / src / TDataStd / TDataStd_IntegerList.cdl
CommitLineData
b311480e 1-- Created on: 2007-05-29
2-- Created by: Vlad Romashko
973c2be1 3-- Copyright (c) 2007-2014 OPEN CASCADE SAS
b311480e 4--
973c2be1 5-- This file is part of Open CASCADE Technology software library.
b311480e 6--
d5f74e42 7-- This library is free software; you can redistribute it and/or modify it under
8-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9-- by the Free Software Foundation, with special exception defined in the file
10-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 12--
973c2be1 13-- Alternatively, this file may be used under the terms of Open CASCADE
14-- commercial license or contractual agreement.
7fd59977 15
16class IntegerList from TDataStd inherits Attribute from TDF
17
18 ---Purpose: Contains a list of integers.
19
20uses
21
22 Attribute from TDF,
23 GUID from Standard,
24 Label from TDF,
25 RelocationTable from TDF,
26 ListOfInteger from TColStd
27
28is
29
30 ---Purpose: Static methods
31 -- ==============
32
33 GetID (myclass)
34 ---C++: return const &
35 ---Purpose: Returns the ID of the list of integer attribute.
36 returns GUID from Standard;
37
38 Set (myclass; label : Label from TDF)
39 ---Purpose: Finds or creates a list of integer values attribute.
40 returns IntegerList from TDataStd;
41
42
43 ---Category: IntegerList methods
44 -- ===================
45
46 Create
6e33d3ce 47 returns IntegerList from TDataStd;
7fd59977 48
49 IsEmpty (me)
50 returns Boolean from Standard;
51
52 Extent (me)
53 returns Integer from Standard;
54
55 Prepend (me : mutable;
56 value : Integer from Standard);
57
58 Append (me : mutable;
59 value : Integer from Standard);
60
61 InsertBefore (me : mutable;
62 value : Integer from Standard;
63 before_value : Integer from Standard)
64 ---Purpose: Inserts the <value> before the first meet of <before_value>.
65 returns Boolean from Standard;
66
67 InsertAfter (me : mutable;
68 value : Integer from Standard;
69 after_value : Integer from Standard)
70 ---Purpose: Inserts the <value> after the first meet of <after_value>.
71 returns Boolean from Standard;
72
73 Remove (me : mutable;
74 value : Integer from Standard)
75 ---Purpose: Removes the first meet of the <value>.
76 returns Boolean from Standard;
77
78 Clear (me : mutable);
79
80 First (me)
81 returns Integer from Standard;
82
83 Last (me)
84 returns Integer from Standard;
85
86 List (me)
87 ---C++: return const &
88 returns ListOfInteger from TColStd;
89
90 ---Category: Methodes of TDF_Attribute
91 -- =========================
92
93 ID (me)
94 ---C++: return const &
95 returns GUID from Standard;
96
97 Restore (me: mutable; With : Attribute from TDF);
98
99 NewEmpty (me)
6e33d3ce 100 returns Attribute from TDF;
7fd59977 101
6e33d3ce 102 Paste (me; Into : Attribute from TDF;
103 RT : RelocationTable from TDF);
7fd59977 104
105 Dump(me; anOS : in out OStream from Standard)
106 returns OStream from Standard
107 is redefined;
108 ---C++: return &
109
110
111fields
112
113 myList : ListOfInteger from TColStd;
114
115
116end IntegerList;