Mercurial > octave
annotate libinterp/corefcn/Cell.h @ 32633:4b601ca024d5
maint: merge stable to default
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 22 Dec 2023 12:14:08 -0500 |
parents | ae4e19c0a2b1 2e484f9f1f18 |
children |
rev | line source |
---|---|
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
1 //////////////////////////////////////////////////////////////////////// |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 // |
32632
2e484f9f1f18
maint: update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
31771
diff
changeset
|
3 // Copyright (C) 1999-2024 The Octave Project Developers |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
4 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
5 // See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
6 // distribution or <https://octave.org/copyright/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
7 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
8 // This file is part of Octave. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
9 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
10 // Octave is free software: you can redistribute it and/or modify it |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
11 // under the terms of the GNU General Public License as published by |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
12 // the Free Software Foundation, either version 3 of the License, or |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
13 // (at your option) any later version. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
14 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
15 // Octave is distributed in the hope that it will be useful, but |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
16 // WITHOUT ANY WARRANTY; without even the implied warranty of |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
18 // GNU General Public License for more details. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
19 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
20 // You should have received a copy of the GNU General Public License |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
21 // along with Octave; see the file COPYING. If not, see |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
22 // <https://www.gnu.org/licenses/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
23 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
24 //////////////////////////////////////////////////////////////////////// |
3353 | 25 |
20791
f7084eae3318
maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
26 #if ! defined (octave_Cell_h) |
17822
ebb3ef964372
maint: Use common #define syntax "octave_filename_h" in h_files.
Rik <rik@octave.org>
parents:
17787
diff
changeset
|
27 #define octave_Cell_h 1 |
3353 | 28 |
21244
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
21139
diff
changeset
|
29 #include "octave-config.h" |
1473547f50f5
include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents:
21139
diff
changeset
|
30 |
28431
0ffae065ca03
new cellstring constructor
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
31 #include <list> |
3353 | 32 #include <string> |
33 | |
9732
b4fdfee405b5
remove ArrayN<T> + fix nonhom. diag-scalar ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
34 #include "Array.h" |
3353 | 35 #include "str-vec.h" |
8579
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8333
diff
changeset
|
36 #include "ov.h" |
3353 | 37 |
8579
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8333
diff
changeset
|
38 class octave_value_list; |
3353 | 39 |
32628
ae4e19c0a2b1
maint: Place class name and class keyword on one line.
Rik <rik@octave.org>
parents:
31771
diff
changeset
|
40 class OCTINTERP_API Cell : public Array<octave_value> |
3353 | 41 { |
42 public: | |
43 | |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
44 Cell () = default; |
27023
fc256e9d882e
use default ctors, dtors, and assignment ops in Matrix, intNDArray, and Cell
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
45 |
fc256e9d882e
use default ctors, dtors, and assignment ops in Matrix, intNDArray, and Cell
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
46 Cell (const Cell& c) = default; |
fc256e9d882e
use default ctors, dtors, and assignment ops in Matrix, intNDArray, and Cell
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
47 |
fc256e9d882e
use default ctors, dtors, and assignment ops in Matrix, intNDArray, and Cell
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
48 Cell& operator = (const Cell& c) = default; |
fc256e9d882e
use default ctors, dtors, and assignment ops in Matrix, intNDArray, and Cell
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
49 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
50 ~Cell () = default; |
3928 | 51 |
52 Cell (const octave_value& val) | |
9732
b4fdfee405b5
remove ArrayN<T> + fix nonhom. diag-scalar ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
53 : Array<octave_value> (dim_vector (1, 1), val) { } |
4513 | 54 |
8579
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8333
diff
changeset
|
55 Cell (const octave_value_list& ovl); |
3353 | 56 |
7209 | 57 Cell (octave_idx_type n, octave_idx_type m, |
14616
13cc11418393
improve handling of default resize fill value for arrays
John W. Eaton <jwe@octave.org>
parents:
14557
diff
changeset
|
58 const octave_value& val = Matrix ()) |
9732
b4fdfee405b5
remove ArrayN<T> + fix nonhom. diag-scalar ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
59 : Array<octave_value> (dim_vector (n, m), val) { } |
3353 | 60 |
14616
13cc11418393
improve handling of default resize fill value for arrays
John W. Eaton <jwe@octave.org>
parents:
14557
diff
changeset
|
61 Cell (const dim_vector& dv, const octave_value& val = Matrix ()) |
9732
b4fdfee405b5
remove ArrayN<T> + fix nonhom. diag-scalar ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
62 : Array<octave_value> (dv, val) { } |
3354 | 63 |
4567 | 64 Cell (const Array<octave_value>& c) |
9732
b4fdfee405b5
remove ArrayN<T> + fix nonhom. diag-scalar ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
65 : Array<octave_value> (c) { } |
4567 | 66 |
5275 | 67 Cell (const Array<octave_value>& c, octave_idx_type nr, octave_idx_type nc) |
9732
b4fdfee405b5
remove ArrayN<T> + fix nonhom. diag-scalar ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
68 : Array<octave_value> (c, dim_vector (nr, nc)) { } |
3933 | 69 |
5805 | 70 Cell (const string_vector& sv, bool trim = false); |
4216 | 71 |
23677
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
72 // Constructor for standard containers. V must be convertible to an |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
73 // octave_value object. |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
74 template <typename V, template <typename...> class C> |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
75 explicit |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
76 Cell (const C<V>& container) |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
77 : Array<octave_value> () |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
78 { |
29572
aef11bb4e6d1
use std::size_t and std::ptrdiff_t in C++ code (bug #60471)
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
79 std::size_t n = container.size (); |
23677
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
80 |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
81 if (n > 0) |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
82 { |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
83 resize (dim_vector (n, 1)); |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
84 |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
85 octave_idx_type i = 0; |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
86 |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
87 for (const auto& val : container) |
31607
aac27ad79be6
maint: Re-indent code after switch to using namespace macros.
Rik <rik@octave.org>
parents:
30564
diff
changeset
|
88 elem(i++, 0) = val; |
23677
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
89 } |
66c4d224f7cb
use generic template for construction from standard containers
John W. Eaton <jwe@octave.org>
parents:
23575
diff
changeset
|
90 } |
11037
e7864673c31f
new Cell (std::list<std::string>&) constructor
John W. Eaton <jwe@octave.org>
parents:
10757
diff
changeset
|
91 |
28431
0ffae065ca03
new cellstring constructor
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
92 Cell (const std::list<std::string>& sl); |
0ffae065ca03
new cellstring constructor
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
93 |
8732 | 94 Cell (const Array<std::string>& sa); |
95 | |
6116 | 96 Cell (const dim_vector& dv, const string_vector& sv, bool trim = false); |
97 | |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
98 bool iscellstr () const; |
6116 | 99 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
100 Array<std::string> cellstr_value () const; |
10065
64a06079cae4
improve cellstr cache implementation
Jaroslav Hajek <highegg@gmail.com>
parents:
9813
diff
changeset
|
101 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
102 string_vector string_vector_value () const; |
23355
08db4e9dd149
* Cell.h, Cell.cc (Cell::string_vector_value): New function.
John W. Eaton <jwe@octave.org>
parents:
23220
diff
changeset
|
103 |
10649
64472dd48517
cosmetic changes in Cell interface
Jaroslav Hajek <highegg@gmail.com>
parents:
10521
diff
changeset
|
104 using Array<octave_value>::index; |
64472dd48517
cosmetic changes in Cell interface
Jaroslav Hajek <highegg@gmail.com>
parents:
10521
diff
changeset
|
105 |
4513 | 106 Cell index (const octave_value_list& idx, bool resize_ok = false) const; |
107 | |
10649
64472dd48517
cosmetic changes in Cell interface
Jaroslav Hajek <highegg@gmail.com>
parents:
10521
diff
changeset
|
108 using Array<octave_value>::delete_elements; |
64472dd48517
cosmetic changes in Cell interface
Jaroslav Hajek <highegg@gmail.com>
parents:
10521
diff
changeset
|
109 |
64472dd48517
cosmetic changes in Cell interface
Jaroslav Hajek <highegg@gmail.com>
parents:
10521
diff
changeset
|
110 void delete_elements (const octave_value_list& idx); |
8175
977d5204cf67
fix null assignment for structs
Jaroslav Hajek <highegg@gmail.com>
parents:
7620
diff
changeset
|
111 |
10649
64472dd48517
cosmetic changes in Cell interface
Jaroslav Hajek <highegg@gmail.com>
parents:
10521
diff
changeset
|
112 using Array<octave_value>::assign; |
64472dd48517
cosmetic changes in Cell interface
Jaroslav Hajek <highegg@gmail.com>
parents:
10521
diff
changeset
|
113 |
64472dd48517
cosmetic changes in Cell interface
Jaroslav Hajek <highegg@gmail.com>
parents:
10521
diff
changeset
|
114 void assign (const octave_value_list& idx, const Cell& rhs, |
14616
13cc11418393
improve handling of default resize fill value for arrays
John W. Eaton <jwe@octave.org>
parents:
14557
diff
changeset
|
115 const octave_value& fill_val = Matrix ()); |
8290
7cbe01c21986
improve dense array indexing
Jaroslav Hajek <highegg@gmail.com>
parents:
8175
diff
changeset
|
116 |
4901 | 117 Cell reshape (const dim_vector& new_dims) const |
17787
175b392e91fe
Use GNU style coding conventions for code in libinterp/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
118 { return Array<octave_value>::reshape (new_dims); } |
4901 | 119 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
120 octave_idx_type nnz () const; |
5602 | 121 |
5570 | 122 Cell column (octave_idx_type i) const; |
123 | |
5775 | 124 // FIXME |
4932 | 125 boolMatrix all (int /* dim */ = 0) const { return boolMatrix (); } |
3933 | 126 |
5775 | 127 // FIXME |
4932 | 128 boolMatrix any (int /* dim */ = 0) const { return boolMatrix (); } |
3933 | 129 |
5275 | 130 Cell concat (const Cell& rb, const Array<octave_idx_type>& ra_idx); |
4915 | 131 |
5275 | 132 Cell& insert (const Cell& a, octave_idx_type r, octave_idx_type c); |
133 Cell& insert (const Cell& a, const Array<octave_idx_type>& ra_idx); | |
4806 | 134 |
5775 | 135 // FIXME |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
136 bool any_element_is_nan () const { return false; } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
137 bool is_true () const { return false; } |
3933 | 138 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
139 octave_value resize_fill_value () const; |
7530
bb0f2353cff5
new cell array ctype mappers
John W. Eaton <jwe@octave.org>
parents:
7209
diff
changeset
|
140 |
7620
36594d5bbe13
Move diag function into the octave_value class
David Bateman <dbateman@free.fr>
parents:
7618
diff
changeset
|
141 Cell diag (octave_idx_type k = 0) const; |
7618
3209a584e1ac
Further type preservation tests and fix of diag for cell arrays
David Bateman <dbateman@free.fr>
parents:
7530
diff
changeset
|
142 |
14557
e8e86ae3abbc
make diag (x, m, n) return a proper diagonal matrix object (bug #36099)
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
143 Cell diag (octave_idx_type m, octave_idx_type n) const; |
e8e86ae3abbc
make diag (x, m, n) return a proper diagonal matrix object (bug #36099)
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
144 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
145 Cell xisalnum () const { return map (&octave_value::xisalnum); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
146 Cell xisalpha () const { return map (&octave_value::xisalpha); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
147 Cell xisascii () const { return map (&octave_value::xisascii); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
148 Cell xiscntrl () const { return map (&octave_value::xiscntrl); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
149 Cell xisdigit () const { return map (&octave_value::xisdigit); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
150 Cell xisgraph () const { return map (&octave_value::xisgraph); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
151 Cell xislower () const { return map (&octave_value::xislower); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
152 Cell xisprint () const { return map (&octave_value::xisprint); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
153 Cell xispunct () const { return map (&octave_value::xispunct); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
154 Cell xisspace () const { return map (&octave_value::xisspace); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
155 Cell xisupper () const { return map (&octave_value::xisupper); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
156 Cell xisxdigit () const { return map (&octave_value::xisxdigit); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
157 Cell xtolower () const { return map (&octave_value::xtolower); } |
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
158 Cell xtoupper () const { return map (&octave_value::xtoupper); } |
9813
8fa32b527d9a
improve & partially revert previous change
Jaroslav Hajek <highegg@gmail.com>
parents:
9812
diff
changeset
|
159 |
8fa32b527d9a
improve & partially revert previous change
Jaroslav Hajek <highegg@gmail.com>
parents:
9812
diff
changeset
|
160 private: |
8fa32b527d9a
improve & partially revert previous change
Jaroslav Hajek <highegg@gmail.com>
parents:
9812
diff
changeset
|
161 |
31771
21f9b34eb893
maint: Eliminate "(void)" in C++ function prototypes/declarations.
Rik <rik@octave.org>
parents:
31706
diff
changeset
|
162 typedef octave_value (octave_value::*ctype_mapper) () const; |
9813
8fa32b527d9a
improve & partially revert previous change
Jaroslav Hajek <highegg@gmail.com>
parents:
9812
diff
changeset
|
163 |
8fa32b527d9a
improve & partially revert previous change
Jaroslav Hajek <highegg@gmail.com>
parents:
9812
diff
changeset
|
164 Cell map (ctype_mapper) const; |
3353 | 165 }; |
166 | |
21139
538b57866b90
consistently use "typename" intead of "class" in template declarations
John W. Eaton <jwe@octave.org>
parents:
20791
diff
changeset
|
167 template <> |
10757
1cc44f3ec814
templated extractors for maps and cells
Jaroslav Hajek <highegg@gmail.com>
parents:
10649
diff
changeset
|
168 inline Cell octave_value_extract<Cell> (const octave_value& v) |
17787
175b392e91fe
Use GNU style coding conventions for code in libinterp/
Rik <rik@octave.org>
parents:
17744
diff
changeset
|
169 { return v.cell_value (); } |
10757
1cc44f3ec814
templated extractors for maps and cells
Jaroslav Hajek <highegg@gmail.com>
parents:
10649
diff
changeset
|
170 |
3353 | 171 #endif |