/[eiffelstudio]/trunk/eweasel/tests/store014/storable_a55.e
ViewVC logotype

Contents of /trunk/eweasel/tests/store014/storable_a55.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 101090 - (show annotations)
Sun Dec 3 18:34:50 2017 UTC (22 months, 2 weeks ago) by alexk
File size: 4380 byte(s)
Removed obsolete feature calls.
1 class STORABLE_A55
2
3 inherit
4
5 ANY
6 redefine
7 default_create
8 end
9
10 feature {NONE} -- Initialization
11
12 default_create is
13 do
14 int := 32
15 int_8 := 8
16 int_16 := 16
17 int_64 := 64
18 char := 'b'
19 bool := True
20 real := {REAL_32} 32.5
21 double := 64.5
22 ref := "toto"
23 --none := Void
24 int_ref := 132
25 int_8_ref := 108
26 int_16_ref := 116
27 int_64_ref := 164
28 char_ref := 'c'
29 bool_ref := True
30 real_ref := 132.5
31 double_ref := 164.5
32 pointer_ref := default_pointer
33 exp_ref := exp
34 create arr_int.make_filled (0, 1, 5)
35 arr_int.put (32, 1)
36 arr_int.put (33, 2)
37 arr_int.put (34, 3)
38 arr_int.put (35, 4)
39 arr_int.put (36, 5)
40 create arr_int_8.make_filled (0, 1, 5)
41 arr_int_8.put (8, 1)
42 arr_int_8.put (9, 2)
43 arr_int_8.put (10, 3)
44 arr_int_8.put (11, 4)
45 arr_int_8.put (12, 5)
46 create arr_int_16.make_filled (0, 1, 5)
47 arr_int_16.put (16, 1)
48 arr_int_16.put (17, 2)
49 arr_int_16.put (18, 3)
50 arr_int_16.put (19, 4)
51 arr_int_16.put (20, 5)
52 create arr_int_64.make_filled (0, 1, 5)
53 arr_int_64.put (64, 1)
54 arr_int_64.put (65, 2)
55 arr_int_64.put (66, 3)
56 arr_int_64.put (67, 4)
57 arr_int_64.put (68, 5)
58 create arr_char.make_filled ('%U', 1, 5)
59 arr_char.put ('z', 1)
60 arr_char.put ('y', 2)
61 arr_char.put ('x', 3)
62 arr_char.put ('w', 4)
63 arr_char.put ('v', 5)
64 create arr_bool.make_filled (False, 1, 5)
65 arr_bool.put (True, 1)
66 arr_bool.put (False, 2)
67 arr_bool.put (True, 3)
68 arr_bool.put (False, 4)
69 arr_bool.put (True, 5)
70 create arr_real.make_filled (0.0, 1, 5)
71 arr_real.put ({REAL_32} 32.5, 1)
72 arr_real.put ({REAL_32} 33.5, 2)
73 arr_real.put ({REAL_32} 34.5, 3)
74 arr_real.put ({REAL_32} 35.5, 4)
75 arr_real.put ({REAL_32} 36.5, 5)
76 create arr_double.make_filled (0.0, 1, 5)
77 arr_double.put (132.5, 1)
78 arr_double.put (133.5, 2)
79 arr_double.put (134.5, 3)
80 arr_double.put (135.5, 4)
81 arr_double.put (136.5, 5)
82 create arr_pointer.make_filled (default_pointer, 1, 5)
83 create arr_ref.make_filled (Void, 1, 5)
84 arr_ref.put ("foo1", 1)
85 arr_ref.put ("foo2", 2)
86 arr_ref.put ("foo3", 3)
87 arr_ref.put ("foo4", 4)
88 arr_ref.put ("foo5", 5)
89 create arr_none.make_filled (Void, 1, 5)
90 create arr_exp.make_filled (exp, 1, 5)
91 create arr_gen.make_filled (Void, 1, 5)
92 create arr_gen_gen.make_filled (Void, 1, 5)
93 create h_gen
94 create h_none
95 t_int := [int]
96 t_int_8 := [int_8]
97 t_int_16 := [int_16]
98 t_int_64 := [int_64]
99 t_char := ['r']
100 t_bool := [True]
101 t_real := [real]
102 t_double := [double]
103 t_pointer := [default_pointer]
104 t_ref := ["foo"]
105 t_none := [Void]
106 t_complete := [1, (2).to_integer_8, (3).to_integer_16, (4).to_integer_64, 'c', True, (5.4).truncated_to_real, 5.6, default_pointer + 3, "toto", Void]
107 t_exp := [exp]
108 t_gen := [gen]
109 create gen_gen
110 t_gen_gen := [gen_gen]
111 end
112
113 feature -- Access
114
115 int: INTEGER
116 int_8: INTEGER_8
117 int_16: INTEGER_16
118 int_64: INTEGER_64
119 char: CHARACTER
120 bool: BOOLEAN
121 real: REAL
122 double: DOUBLE
123 pointer: POINTER
124 ref: STRING
125 none: NONE
126 exp: STORABLE_B55
127 gen: STORABLE_C55 [INTEGER]
128 gen_gen: STORABLE_E55 [STORABLE_C55 [INTEGER]]
129
130 int_ref: ANY
131 int_8_ref: ANY
132 int_16_ref: ANY
133 int_64_ref: ANY
134 char_ref: ANY
135 bool_ref: ANY
136 real_ref: ANY
137 double_ref: ANY
138 pointer_ref: ANY
139 exp_ref: ANY
140
141 arr_int: ARRAY [INTEGER]
142 arr_int_8: ARRAY [INTEGER_8]
143 arr_int_16: ARRAY [INTEGER_16]
144 arr_int_64: ARRAY [INTEGER_64]
145 arr_char: ARRAY [CHARACTER]
146 arr_bool: ARRAY [BOOLEAN]
147 arr_real: ARRAY [REAL]
148 arr_double: ARRAY [DOUBLE]
149 arr_pointer: ARRAY [POINTER]
150 arr_ref: ARRAY [STRING]
151 arr_none: ARRAY [NONE]
152 arr_exp: ARRAY [STORABLE_B55]
153 arr_gen: ARRAY [STORABLE_C55 [STRING]]
154 arr_gen_gen: ARRAY [STORABLE_E55 [STORABLE_C55 [STRING]]]
155
156 h_gen: STORABLE_D55 [ANY, STORABLE_C55 [STRING]]
157 h_none: STORABLE_D55 [STRING, NONE]
158
159 t_int: TUPLE [INTEGER]
160 t_int_8: TUPLE [INTEGER_8]
161 t_int_16: TUPLE [INTEGER_16]
162 t_int_64: TUPLE [INTEGER_64]
163 t_char: TUPLE [CHARACTER]
164 t_bool: TUPLE [BOOLEAN]
165 t_real: TUPLE [REAL]
166 t_double: TUPLE [DOUBLE]
167 t_pointer: TUPLE [POINTER]
168 t_ref: TUPLE [STRING]
169 t_none: TUPLE [NONE]
170 t_complete: TUPLE [INTEGER, INTEGER_8, INTEGER_16, INTEGER_64, CHARACTER, BOOLEAN, REAL, DOUBLE, POINTER, STRING, NONE]
171 t_exp: TUPLE [STORABLE_B55]
172 t_gen: TUPLE [STORABLE_C55 [INTEGER]]
173 t_gen_gen: TUPLE [STORABLE_E55 [STORABLE_C55 [INTEGER]]]
174
175 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date ID Revision

  ViewVC Help
Powered by ViewVC 1.1.23