annotate src/tc-rep.h @ 767:42731861ee09

[project @ 1994-10-05 21:26:54 by jwe]
author jwe
date Wed, 05 Oct 1994 21:32:24 +0000
parents b284388e8999
children a2f9d3fd720c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
1 // tc-rep.h -*- C++ -*-
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
2 /*
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
3
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
4 Copyright (C) 1992, 1993, 1994 John W. Eaton
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
5
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
6 This file is part of Octave.
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
7
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
8 Octave is free software; you can redistribute it and/or modify it
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
10 Free Software Foundation; either version 2, or (at your option) any
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
11 later version.
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
12
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
13 Octave is distributed in the hope that it will be useful, but WITHOUT
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
16 for more details.
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
17
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
19 along with Octave; see the file COPYING. If not, write to the Free
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
21
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
22 */
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
23
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
24 #if !defined (octave_tree_const_rep_h)
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
25 #define octave_tree_const_rep_h 1
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
26
581
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
27 // The actual representation of the tree_constant.
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
28
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
29 class
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
30 tree_constant_rep
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
31 {
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
32 friend class tree_constant;
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
33
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
34 private:
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
35
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
36 enum constant_type
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
37 {
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
38 unknown_constant,
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
39 scalar_constant,
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
40 matrix_constant,
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
41 complex_scalar_constant,
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
42 complex_matrix_constant,
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
43 string_constant,
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
44 range_constant,
745
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
45 map_constant,
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
46 magic_colon,
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
47 };
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
48
581
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
49 enum force_orient
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
50 {
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
51 no_orient,
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
52 row_orient,
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
53 column_orient,
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
54 };
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
55
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
56 tree_constant_rep (void);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
57
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
58 tree_constant_rep (double d);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
59 tree_constant_rep (const Matrix& m);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
60 tree_constant_rep (const DiagMatrix& d);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
61 tree_constant_rep (const RowVector& v, int pcv);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
62 tree_constant_rep (const ColumnVector& v, int pcv);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
63
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
64 tree_constant_rep (const Complex& c);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
65 tree_constant_rep (const ComplexMatrix& m);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
66 tree_constant_rep (const ComplexDiagMatrix& d);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
67 tree_constant_rep (const ComplexRowVector& v, int pcv);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
68 tree_constant_rep (const ComplexColumnVector& v, int pcv);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
69
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
70 tree_constant_rep (const char *s);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
71
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
72 tree_constant_rep (double base, double limit, double inc);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
73 tree_constant_rep (const Range& r);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
74
745
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
75 tree_constant_rep (const Octave_map& m);
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
76
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
77 tree_constant_rep (tree_constant_rep::constant_type t);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
78
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
79 tree_constant_rep (const tree_constant_rep& t);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
80
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
81 ~tree_constant_rep (void);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
82
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
83 #if defined (MDEBUG)
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
84 void *operator new (size_t size);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
85 void operator delete (void *p, size_t size);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
86 #endif
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
87
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
88 int rows (void) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
89 int columns (void) const;
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
90
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
91 int is_defined (void) const
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
92 { return type_tag != tree_constant_rep::unknown_constant; }
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
93
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
94 int is_undefined (void) const
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
95 { return type_tag == tree_constant_rep::unknown_constant; }
605
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
96
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
97 int is_unknown (void) const
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
98 { return type_tag == tree_constant_rep::unknown_constant; }
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
99
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
100 int is_real_scalar (void) const
605
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
101 { return type_tag == tree_constant_rep::scalar_constant; }
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
102
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
103 int is_real_matrix (void) const
605
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
104 { return type_tag == tree_constant_rep::matrix_constant; }
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
105
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
106 int is_complex_scalar (void) const
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
107 { return type_tag == tree_constant_rep::complex_scalar_constant; }
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
108
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
109 int is_complex_matrix (void) const
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
110 { return type_tag == tree_constant_rep::complex_matrix_constant; }
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
111
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
112 int is_string (void) const
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
113 { return type_tag == tree_constant_rep::string_constant; }
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
114
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
115 int is_range (void) const
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
116 { return type_tag == tree_constant_rep::range_constant; }
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
117
745
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
118 int is_map (void) const
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
119 { return type_tag == tree_constant_rep::map_constant; }
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
120
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
121 int is_magic_colon (void) const
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
122 { return type_tag == tree_constant_rep::magic_colon; }
605
4f65175911a6 [project @ 1994-08-13 20:10:39 by jwe]
jwe
parents: 593
diff changeset
123
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
124 tree_constant all (void) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
125 tree_constant any (void) const;
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
126
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
127 int is_real_type (void) const
628
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
128 {
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
129 return (type_tag == scalar_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
130 || type_tag == matrix_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
131 || type_tag == range_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
132 || type_tag == string_constant);
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
133 }
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
134
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
135 int is_complex_type (void) const
628
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
136 {
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
137 return (type_tag == complex_matrix_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
138 || type_tag == complex_scalar_constant);
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
139 }
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
140
636
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
141 // Would be nice to get rid of the next four functions:
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
142
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
143 int is_scalar_type (void) const
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
144 {
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
145 return (type_tag == scalar_constant
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
146 || type_tag == complex_scalar_constant);
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
147 }
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
148
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
149 int is_matrix_type (void) const
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
150 {
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
151 return (type_tag == matrix_constant
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
152 || type_tag == complex_matrix_constant);
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
153 }
fae2bd91c027 [project @ 1994-08-23 18:39:50 by jwe]
jwe
parents: 628
diff changeset
154
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
155 int is_numeric_type (void) const
628
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
156 {
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
157 return (type_tag == scalar_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
158 || type_tag == matrix_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
159 || type_tag == complex_matrix_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
160 || type_tag == complex_scalar_constant);
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
161 }
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
162
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
163 int is_numeric_or_range_type (void) const
628
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
164 {
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
165 return (type_tag == scalar_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
166 || type_tag == matrix_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
167 || type_tag == complex_matrix_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
168 || type_tag == complex_scalar_constant
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
169 || type_tag == range_constant);
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
170 }
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
171
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
172 int valid_as_scalar_index (void) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
173
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
174 int is_true (void) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
175
628
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
176 double double_value (int force_string_conversion = 0) const;
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
177 Matrix matrix_value (int force_string_conversion = 0) const;
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
178 Complex complex_value (int force_string_conversion = 0) const;
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
179 ComplexMatrix complex_matrix_value (int force_string_conversion = 0) const;
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
180 char *string_value (void) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
181 Range range_value (void) const;
745
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
182 Octave_map map_value (void) const;
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
183
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
184 tree_constant& lookup_map_element (const char *name, int insert = 0);
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
185
628
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
186 ColumnVector vector_value (int force_string_conversion = 0,
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
187 int force_vector_conversion = 0) const;
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
188
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
189 ComplexColumnVector complex_vector_value (int force_string_conv = 0,
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
190 int force_vec_conv = 0) const;
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
191
722
c40cdd16121e [project @ 1994-09-21 15:22:21 by jwe]
jwe
parents: 647
diff changeset
192 tree_constant convert_to_str (void) const;
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
193
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
194 void convert_to_row_or_column_vector (void);
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
195
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
196 void bump_value (tree_expression::type);
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
197
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
198 void resize (int i, int j);
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
199 void resize (int i, int j, double val);
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
200
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
201 void maybe_resize (int imax, force_orient fo = no_orient);
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
202 void maybe_resize (int imax, int jmax);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
203
581
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
204 void stash_original_text (char *s);
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
205
745
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
206 void maybe_mutate (void);
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
207
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
208 void print (void);
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
209
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
210 void print_code (ostream& os);
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
211
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
212 char *type_as_string (void) const;
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
213
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
214 // Binary and unary operations.
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
215
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
216 friend tree_constant do_binary_op (tree_constant& a, tree_constant& b,
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
217 tree_expression::type t);
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
218
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
219 friend tree_constant do_unary_op (tree_constant& a,
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
220 tree_expression::type t);
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
221
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
222 // -------------------------------------------------------------------
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
223
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
224 // We want to eliminate this.
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
225
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
226 constant_type const_type (void) const { return type_tag; }
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
227
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
228 // We want to get rid of these too:
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
229
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
230 void force_numeric (int force_str_conv = 0);
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
231 tree_constant make_numeric (int force_str_conv = 0) const;
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
232
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
233 // Indexing.
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
234
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
235 tree_constant do_index (const Octave_object& args);
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
236
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
237 tree_constant do_scalar_index (const Octave_object& args) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
238
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
239 tree_constant do_matrix_index (const Octave_object& args) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
240
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
241 tree_constant do_matrix_index (const tree_constant& i_arg) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
242
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
243 tree_constant do_matrix_index (const tree_constant& i_arg,
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
244 const tree_constant& j_arg) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
245
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
246 tree_constant do_matrix_index (constant_type i) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
247
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
248 tree_constant fortran_style_matrix_index (const tree_constant& i_arg) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
249 tree_constant fortran_style_matrix_index (const Matrix& mi) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
250
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
251 tree_constant do_vector_index (const tree_constant& i_arg) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
252
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
253 tree_constant do_matrix_index (int i, const tree_constant& i_arg) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
254 tree_constant do_matrix_index (const idx_vector& i,
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
255 const tree_constant& i_arg) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
256 tree_constant do_matrix_index (const Range& i,
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
257 const tree_constant& i_arg) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
258 tree_constant do_matrix_index (constant_type i,
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
259 const tree_constant& i_arg) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
260
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
261 tree_constant do_matrix_index (int i, int j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
262 tree_constant do_matrix_index (int i, const idx_vector& j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
263 tree_constant do_matrix_index (int i, const Range& j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
264 tree_constant do_matrix_index (int i, constant_type cj) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
265
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
266 tree_constant do_matrix_index (const idx_vector& i, int j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
267 tree_constant do_matrix_index (const idx_vector& i,
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
268 const idx_vector& j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
269 tree_constant do_matrix_index (const idx_vector& i, const Range& j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
270 tree_constant do_matrix_index (const idx_vector& i, constant_type j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
271
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
272 tree_constant do_matrix_index (const Range& i, int j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
273 tree_constant do_matrix_index (const Range& i, const idx_vector& j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
274 tree_constant do_matrix_index (const Range& i, const Range& j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
275 tree_constant do_matrix_index (const Range& i, constant_type j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
276
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
277 tree_constant do_matrix_index (constant_type i, int j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
278 tree_constant do_matrix_index (constant_type i, const idx_vector& j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
279 tree_constant do_matrix_index (constant_type i, const Range& j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
280 tree_constant do_matrix_index (constant_type i, constant_type j) const;
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
281
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
282 // Assignment.
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
283
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
284 void assign (const tree_constant& rhs, const Octave_object& args);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
285
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
286 void do_scalar_assignment (const tree_constant& rhs,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
287 const Octave_object& args);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
288
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
289 void do_matrix_assignment (const tree_constant& rhs,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
290 const Octave_object& args);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
291
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
292 void do_matrix_assignment (const tree_constant& rhs,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
293 const tree_constant& i_arg);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
294
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
295 void fortran_style_matrix_assignment (const tree_constant& rhs,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
296 const tree_constant& i_arg);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
297
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
298 void fortran_style_matrix_assignment (const tree_constant& rhs,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
299 constant_type ci);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
300
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
301 void fortran_style_matrix_assignment (const tree_constant& rhs,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
302 idx_vector& i);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
303
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
304 void vector_assignment (const tree_constant& rhs,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
305 const tree_constant& i_arg);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
306
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
307 void check_vector_assign (int rhs_nr, int rhs_nc, int ilen,
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
308 const char *rm);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
309
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
310 void do_vector_assign (const tree_constant& rhs, int i);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
311 void do_vector_assign (const tree_constant& rhs, idx_vector& i);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
312 void do_vector_assign (const tree_constant& rhs, Range& i);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
313
628
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
314 void do_matrix_assignment (const tree_constant& rhs,
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
315 const tree_constant& i_arg,
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
316 const tree_constant& j_arg);
aecbe369233b [project @ 1994-08-19 13:27:51 by jwe]
jwe
parents: 620
diff changeset
317
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
318 void do_matrix_assignment (const tree_constant& rhs, int i,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
319 const tree_constant& j_arg);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
320 void do_matrix_assignment (const tree_constant& rhs, idx_vector& i,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
321 const tree_constant& j_arg);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
322 void do_matrix_assignment (const tree_constant& rhs, Range& i,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
323 const tree_constant& j_arg);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
324 void do_matrix_assignment (const tree_constant& rhs, constant_type i,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
325 const tree_constant& j_arg);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
326
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
327 void do_matrix_assignment (const tree_constant& rhs, int i, int j);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
328 void do_matrix_assignment (const tree_constant& rhs, int i, idx_vector& jv);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
329 void do_matrix_assignment (const tree_constant& rhs, int i, Range& j);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
330 void do_matrix_assignment (const tree_constant& rhs, int i, constant_type cj);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
331
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
332 void do_matrix_assignment (const tree_constant& rhs, idx_vector& iv,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
333 int j);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
334 void do_matrix_assignment (const tree_constant& rhs, idx_vector& iv,
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
335 idx_vector& jv);
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
336 void do_matrix_assignment (const tree_constant& rhs, idx_vector& iv,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
337 Range& j);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
338 void do_matrix_assignment (const tree_constant& rhs, idx_vector& iv,
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
339 constant_type j);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
340
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
341 void do_matrix_assignment (const tree_constant& rhs, Range& i, int j);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
342 void do_matrix_assignment (const tree_constant& rhs, Range& i,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
343 idx_vector& jv);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
344 void do_matrix_assignment (const tree_constant& rhs, Range& i,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
345 Range& j);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
346 void do_matrix_assignment (const tree_constant& rhs, Range& i,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
347 constant_type j);
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
348
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
349 void do_matrix_assignment (const tree_constant& rhs, constant_type i, int j);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
350 void do_matrix_assignment (const tree_constant& rhs, constant_type i,
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
351 idx_vector& jv);
529
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
352 void do_matrix_assignment (const tree_constant& rhs, constant_type i,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
353 Range& j);
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
354 void do_matrix_assignment (const tree_constant& rhs,
7ea224e713cd [project @ 1994-07-20 18:54:27 by jwe]
jwe
parents: 506
diff changeset
355 const constant_type i,
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
356 constant_type j);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
357
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
358 void delete_row (int);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
359 void delete_rows (idx_vector& i);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
360 void delete_rows (Range& i);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
361
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
362 void delete_column (int);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
363 void delete_columns (idx_vector& j);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
364 void delete_columns (Range& j);
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
365
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
366 // Data.
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
367
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
368 int count;
722
c40cdd16121e [project @ 1994-09-21 15:22:21 by jwe]
jwe
parents: 647
diff changeset
369
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
370 constant_type type_tag;
722
c40cdd16121e [project @ 1994-09-21 15:22:21 by jwe]
jwe
parents: 647
diff changeset
371
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
372 union
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
373 {
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
374 double scalar; // A real scalar constant.
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
375 Matrix *matrix; // A real matrix constant.
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
376 Complex *complex_scalar; // A real scalar constant.
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
377 ComplexMatrix *complex_matrix; // A real matrix constant.
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
378 char *string; // A character string constant.
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
379 Range *range; // A set of evenly spaced values.
745
586160369413 [project @ 1994-09-30 15:00:00 by jwe]
jwe
parents: 722
diff changeset
380 Octave_map *a_map; // An associative array.
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
381 };
722
c40cdd16121e [project @ 1994-09-21 15:22:21 by jwe]
jwe
parents: 647
diff changeset
382
581
bc813f5eb025 [project @ 1994-08-07 01:02:15 by jwe]
jwe
parents: 578
diff changeset
383 char *orig_text;
620
8e4e7e5f307e [project @ 1994-08-16 04:36:32 by jwe]
jwe
parents: 610
diff changeset
384 };
492
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
385
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
386 #endif
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
387
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
388 /*
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
389 ;;; Local Variables: ***
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
390 ;;; mode: C++ ***
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
391 ;;; page-delimiter: "^/\\*" ***
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
392 ;;; End: ***
d45bdf960233 [project @ 1994-07-06 14:54:58 by jwe]
jwe
parents:
diff changeset
393 */