Mercurial > octave-nkf
comparison src/ov-mapper.h @ 4644:3b74f1a86750
[project @ 2003-11-22 12:58:40 by jwe]
author | jwe |
---|---|
date | Sat, 22 Nov 2003 12:58:40 +0000 |
parents | d44675070f1a |
children | bd2067547b40 |
comparison
equal
deleted
inserted
replaced
4643:ef3a14fb6847 | 4644:3b74f1a86750 |
---|---|
25 | 25 |
26 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION) | 26 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION) |
27 #pragma interface | 27 #pragma interface |
28 #endif | 28 #endif |
29 | 29 |
30 #include <cstdlib> | |
31 | |
30 #include <string> | 32 #include <string> |
31 | 33 |
32 #include "oct-obj.h" | 34 #include "oct-obj.h" |
33 #include "ov-fcn.h" | 35 #include "ov-fcn.h" |
34 #include "ov-typeinfo.h" | 36 #include "ov-typeinfo.h" |
40 | 42 |
41 class | 43 class |
42 octave_mapper : public octave_function | 44 octave_mapper : public octave_function |
43 { | 45 { |
44 public: | 46 public: |
47 | |
48 octave_mapper (void) { abort (); } | |
45 | 49 |
46 typedef int (*ch_mapper) (int); | 50 typedef int (*ch_mapper) (int); |
47 typedef bool (*d_b_mapper) (double); | 51 typedef bool (*d_b_mapper) (double); |
48 typedef bool (*c_b_mapper) (const Complex&); | 52 typedef bool (*c_b_mapper) (const Complex&); |
49 typedef double (*d_d_mapper) (double); | 53 typedef double (*d_d_mapper) (double); |
79 | 83 |
80 octave_value_list | 84 octave_value_list |
81 do_multi_index_op (int nargout, const octave_value_list& args); | 85 do_multi_index_op (int nargout, const octave_value_list& args); |
82 | 86 |
83 private: | 87 private: |
84 | |
85 octave_mapper (void); | |
86 | 88 |
87 octave_mapper (const octave_mapper& m); | 89 octave_mapper (const octave_mapper& m); |
88 | 90 |
89 octave_value apply (const octave_value& arg) const; | 91 octave_value apply (const octave_value& arg) const; |
90 | 92 |