Mercurial > octave-nkf
comparison src/ov-typeinfo.h @ 4640:2d237a76dbdd
[project @ 2003-11-22 11:24:44 by jwe]
author | jwe |
---|---|
date | Sat, 22 Nov 2003 11:24:44 +0000 |
parents | d44675070f1a |
children | bd2067547b40 |
comparison
equal
deleted
inserted
replaced
4639:f70c9e90ac2d | 4640:2d237a76dbdd |
---|---|
42 { | 42 { |
43 public: | 43 public: |
44 | 44 |
45 static bool instance_ok (void); | 45 static bool instance_ok (void); |
46 | 46 |
47 static int register_type (const std::string&, const std::string&); | 47 static int register_type (const std::string&, const std::string&, |
48 const octave_value&); | |
48 | 49 |
49 static bool register_unary_op (octave_value::unary_op, int, unary_op_fcn); | 50 static bool register_unary_op (octave_value::unary_op, int, unary_op_fcn); |
50 | 51 |
51 static bool register_non_const_unary_op (octave_value::unary_op, int, | 52 static bool register_non_const_unary_op (octave_value::unary_op, int, |
52 non_const_unary_op_fcn); | 53 non_const_unary_op_fcn); |
61 assign_op_fcn); | 62 assign_op_fcn); |
62 | 63 |
63 static bool register_pref_assign_conv (int, int, int); | 64 static bool register_pref_assign_conv (int, int, int); |
64 | 65 |
65 static bool register_widening_op (int, int, type_conv_fcn); | 66 static bool register_widening_op (int, int, type_conv_fcn); |
67 | |
68 static octave_value | |
69 lookup_type (const std::string& nm) | |
70 { | |
71 return instance->do_lookup_type (nm); | |
72 } | |
66 | 73 |
67 static unary_op_fcn | 74 static unary_op_fcn |
68 lookup_unary_op (octave_value::unary_op op, int t) | 75 lookup_unary_op (octave_value::unary_op op, int t) |
69 { | 76 { |
70 return instance->do_lookup_unary_op (op, t); | 77 return instance->do_lookup_unary_op (op, t); |
136 | 143 |
137 int num_types; | 144 int num_types; |
138 | 145 |
139 Array<std::string> types; | 146 Array<std::string> types; |
140 | 147 |
148 Array<octave_value> vals; | |
149 | |
141 Array2<unary_op_fcn> unary_ops; | 150 Array2<unary_op_fcn> unary_ops; |
142 | 151 |
143 Array2<non_const_unary_op_fcn> non_const_unary_ops; | 152 Array2<non_const_unary_op_fcn> non_const_unary_ops; |
144 | 153 |
145 Array3<binary_op_fcn> binary_ops; | 154 Array3<binary_op_fcn> binary_ops; |
150 | 159 |
151 Array2<int> pref_assign_conv; | 160 Array2<int> pref_assign_conv; |
152 | 161 |
153 Array2<type_conv_fcn> widening_ops; | 162 Array2<type_conv_fcn> widening_ops; |
154 | 163 |
155 int do_register_type (const std::string&, const std::string&); | 164 int do_register_type (const std::string&, const std::string&, |
165 const octave_value&); | |
156 | 166 |
157 bool do_register_unary_op (octave_value::unary_op, int, unary_op_fcn); | 167 bool do_register_unary_op (octave_value::unary_op, int, unary_op_fcn); |
158 | 168 |
159 bool do_register_non_const_unary_op (octave_value::unary_op, int, | 169 bool do_register_non_const_unary_op (octave_value::unary_op, int, |
160 non_const_unary_op_fcn); | 170 non_const_unary_op_fcn); |
169 assign_op_fcn); | 179 assign_op_fcn); |
170 | 180 |
171 bool do_register_pref_assign_conv (int, int, int); | 181 bool do_register_pref_assign_conv (int, int, int); |
172 | 182 |
173 bool do_register_widening_op (int, int, type_conv_fcn); | 183 bool do_register_widening_op (int, int, type_conv_fcn); |
184 | |
185 octave_value do_lookup_type (const std::string& nm); | |
174 | 186 |
175 unary_op_fcn do_lookup_unary_op (octave_value::unary_op, int); | 187 unary_op_fcn do_lookup_unary_op (octave_value::unary_op, int); |
176 | 188 |
177 non_const_unary_op_fcn do_lookup_non_const_unary_op | 189 non_const_unary_op_fcn do_lookup_non_const_unary_op |
178 (octave_value::unary_op, int); | 190 (octave_value::unary_op, int); |