3353
|
1 /* |
|
2 |
|
3 Copyright (C) 1999 John W. Eaton |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (Cell_h) |
|
24 #define Cell_h 1 |
|
25 |
|
26 #if defined (__GNUG__) |
|
27 #pragma interface |
|
28 #endif |
|
29 |
|
30 #include <string> |
|
31 |
|
32 #include "Array2.h" |
|
33 #include "oct-alloc.h" |
|
34 #include "str-vec.h" |
|
35 |
4055
|
36 #include "oct-obj.h" |
3353
|
37 |
|
38 class |
3928
|
39 Cell : public Array2<octave_value> |
3353
|
40 { |
|
41 public: |
|
42 |
|
43 Cell (void) |
3928
|
44 : Array2<octave_value> () { } |
|
45 |
|
46 Cell (const octave_value& val) |
|
47 : Array2<octave_value> (1, 1, val) { } |
3353
|
48 |
|
49 Cell (int n, int m, const octave_value& val = octave_value ()) |
3928
|
50 : Array2<octave_value> (n, m, val) { } |
3353
|
51 |
3354
|
52 Cell (const Array2<octave_value>& c) |
3928
|
53 : Array2<octave_value> (c) { } |
3354
|
54 |
3933
|
55 Cell (const Array<octave_value>& c, int nr, int nc) |
|
56 : Array2<octave_value> (c, nr, nc) { } |
|
57 |
3353
|
58 Cell (const Cell& c) |
3928
|
59 : Array2<octave_value> (c) { } |
3353
|
60 |
3933
|
61 // XXX FIXME XXX |
4015
|
62 boolMatrix all (int dim = 0) const { return boolMatrix (); } |
3933
|
63 |
|
64 // XXX FIXME XXX |
4015
|
65 boolMatrix any (int dim = 0) const { return boolMatrix (); } |
3933
|
66 |
|
67 // XXX FIXME XXX |
|
68 bool is_true (void) const { return false; } |
|
69 |
|
70 static octave_value resize_fill_value (void) { return octave_value (); } |
3353
|
71 }; |
|
72 |
|
73 #endif |
|
74 |
|
75 /* |
|
76 ;;; Local Variables: *** |
|
77 ;;; mode: C++ *** |
|
78 ;;; End: *** |
|
79 */ |