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 |
|
36 #include "ov.h" |
|
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 |
3353
|
55 Cell (const Cell& c) |
3928
|
56 : Array2<octave_value> (c) { } |
3353
|
57 |
3928
|
58 boolMatrix all(void) const { return boolMatrix();} //FIXME |
|
59 boolMatrix any(void) const {return boolMatrix();} //FIXME |
|
60 bool is_true(void) const {return false;} //FIXME |
3353
|
61 }; |
|
62 |
|
63 #endif |
|
64 |
|
65 /* |
|
66 ;;; Local Variables: *** |
|
67 ;;; mode: C++ *** |
|
68 ;;; End: *** |
|
69 */ |