Mercurial > octave
comparison src/Cell.h @ 9812:f80c566bc751
improve unary mapper system
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 12 Nov 2009 15:47:58 +0100 |
parents | b4fdfee405b5 |
children | 8fa32b527d9a |
comparison
equal
deleted
inserted
replaced
9811:c657c056240d | 9812:f80c566bc751 |
---|---|
102 | 102 |
103 static octave_value resize_fill_value (void) { return Matrix (); } | 103 static octave_value resize_fill_value (void) { return Matrix (); } |
104 | 104 |
105 Cell diag (octave_idx_type k = 0) const; | 105 Cell diag (octave_idx_type k = 0) const; |
106 | 106 |
107 Cell xisalnum (void) const { return map (&octave_value::xisalnum); } | 107 Cell map (unary_mapper_t umap) const; |
108 Cell xisalpha (void) const { return map (&octave_value::xisalpha); } | |
109 Cell xisascii (void) const { return map (&octave_value::xisascii); } | |
110 Cell xiscntrl (void) const { return map (&octave_value::xiscntrl); } | |
111 Cell xisdigit (void) const { return map (&octave_value::xisdigit); } | |
112 Cell xisgraph (void) const { return map (&octave_value::xisgraph); } | |
113 Cell xislower (void) const { return map (&octave_value::xislower); } | |
114 Cell xisprint (void) const { return map (&octave_value::xisprint); } | |
115 Cell xispunct (void) const { return map (&octave_value::xispunct); } | |
116 Cell xisspace (void) const { return map (&octave_value::xisspace); } | |
117 Cell xisupper (void) const { return map (&octave_value::xisupper); } | |
118 Cell xisxdigit (void) const { return map (&octave_value::xisxdigit); } | |
119 Cell xtoascii (void) const { return map (&octave_value::xtoascii); } | |
120 Cell xtolower (void) const { return map (&octave_value::xtolower); } | |
121 Cell xtoupper (void) const { return map (&octave_value::xtoupper); } | |
122 | |
123 private: | |
124 | |
125 typedef octave_value (octave_value::*ctype_mapper) (void) const; | |
126 | |
127 Cell map (ctype_mapper) const; | |
128 }; | 108 }; |
129 | 109 |
130 #endif | 110 #endif |
131 | 111 |
132 /* | 112 /* |