Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Aspect / Aspect_TypeMap.cdl
CommitLineData
7fd59977 1--
2-- File: Aspect_TypeMap.cdl
3-- Created: 07/09/93
4-- Author: GG
5--
6---Copyright: MatraDatavision 1993
7--
8
9class TypeMap from Aspect inherits TShared from MMgt
10
11 ---Version: 0.0
12
13 ---Purpose: This class defines a TypeMap object.
14 ---Keywords:
15 ---Warning:
16 ---References:
17uses
18 LineStyle from Aspect,
19 TypeMapEntry from Aspect,
20 SequenceOfTypeMapEntry from Aspect
21
22raises
23 BadAccess from Aspect
24
25is
26 Create returns mutable TypeMap from Aspect;
27
28 AddEntry (me : mutable; AnEntry : TypeMapEntry from Aspect)
29 ---Level: Public
30 ---Purpose: Adds an entry in the type map <me>.
31 -- Warning: Raises BadAccess if TypeMap size is exceeded.
32 raises BadAccess from Aspect;
33
34 AddEntry (me : mutable; aStyle : LineStyle from Aspect)
35 returns Integer from Standard;
36 ---Level: Public
37 ---Purpose: Search an identical type style entry in the type map <me>
38 -- and returns the TypeMapEntry Index if exist.
39 -- Or add a new entry and returns the computed TypeMapEntry index used.
40
41 Size( me ) returns Integer from Standard is static;
42 ---Level: Public
43 ---Purpose: Returns the Allocated typemap Size
44
45 Index( me ; aTypemapIndex : Integer ) returns Integer from Standard
46 ---Level: Public
47 ---Purpose: Returns the TypeMapEntry.Index of the TypeMap
48 -- at rank <aTypemapIndex> .
49 raises BadAccess from Aspect is static;
50 ---Trigger: Raises BadAccess if the index less than 1 or
51 -- greater than Size.
52
53 Dump( me ) ;
54
55 Entry ( me ;
56 AnIndex : Integer from Standard )
57 returns TypeMapEntry from Aspect
58 ---Level: Public
59 ---Purpose: Returns the Type map entry with the index <AnIndex>.
60 -- Warning: Raises BadAccess if the index less than 1 or
61 -- greater than Size.
62 raises BadAccess from Aspect is static;
63 ---C++: return const &
64
65fields
66
67 mydata : SequenceOfTypeMapEntry from Aspect is protected;
68
69end TypeMap ;