Mercurial > hg > octave-lyh
annotate libinterp/parse-tree/pt-mat.h @ 17520:cdeadf62663f
doc: Fix recommendation on where to put spaces around parens
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Thu, 26 Sep 2013 10:05:22 -0400 |
parents | c5e5f6ccac5d |
children |
rev | line source |
---|---|
1739 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11586
diff
changeset
|
3 Copyright (C) 1996-2012 John W. Eaton |
1739 | 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 | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
1739 | 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 | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
1739 | 20 |
21 */ | |
22 | |
23 #if !defined (octave_tree_mat_h) | |
24 #define octave_tree_mat_h 1 | |
25 | |
8950
d865363208d6
include <iosfwd> instead of <iostream> in header files
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
26 #include <iosfwd> |
1739 | 27 |
2086 | 28 class octave_value; |
2982 | 29 class octave_value_list; |
30 class tree_argument_list; | |
1739 | 31 |
2124 | 32 class tree_walker; |
33 | |
4219 | 34 #include "base-list.h" |
16237
70f465930546
rearrange class heirarchy for tree_cell and tree_matrix
John W. Eaton <jwe@octave.org>
parents:
15195
diff
changeset
|
35 #include "pt-array-list.h" |
1739 | 36 #include "pt-exp.h" |
7336 | 37 #include "symtab.h" |
1739 | 38 |
39 // General matrices. This allows us to construct matrices from | |
40 // other matrices, variables, and functions. | |
41 | |
42 class | |
16237
70f465930546
rearrange class heirarchy for tree_cell and tree_matrix
John W. Eaton <jwe@octave.org>
parents:
15195
diff
changeset
|
43 tree_matrix : public tree_array_list |
1739 | 44 { |
45 public: | |
46 | |
4587 | 47 tree_matrix (tree_argument_list *row = 0, int l = -1, int c = -1) |
16237
70f465930546
rearrange class heirarchy for tree_cell and tree_matrix
John W. Eaton <jwe@octave.org>
parents:
15195
diff
changeset
|
48 : tree_array_list (row, l, c) |
70f465930546
rearrange class heirarchy for tree_cell and tree_matrix
John W. Eaton <jwe@octave.org>
parents:
15195
diff
changeset
|
49 { } |
1827 | 50 |
16237
70f465930546
rearrange class heirarchy for tree_cell and tree_matrix
John W. Eaton <jwe@octave.org>
parents:
15195
diff
changeset
|
51 ~tree_matrix (void) { } |
1827 | 52 |
16273
c5e5f6ccac5d
9/10 commits reworking the lexer
John W. Eaton <jwe@octave.org>
parents:
16237
diff
changeset
|
53 bool is_matrix (void) const { return true; } |
c5e5f6ccac5d
9/10 commits reworking the lexer
John W. Eaton <jwe@octave.org>
parents:
16237
diff
changeset
|
54 |
3933 | 55 bool rvalue_ok (void) const { return true; } |
2971 | 56 |
8658
73c4516fae10
New evaluator and debugger derived from tree-walker class
John W. Eaton <jwe@octave.org>
parents:
8113
diff
changeset
|
57 octave_value rvalue1 (int nargout = 1); |
2971 | 58 |
59 octave_value_list rvalue (int nargout); | |
1739 | 60 |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
61 tree_expression *dup (symbol_table::scope_id scope, |
10313 | 62 symbol_table::context_id context) const; |
5861 | 63 |
2124 | 64 void accept (tree_walker& tw); |
2988 | 65 |
66 private: | |
67 | |
68 // No copying! | |
69 | |
70 tree_matrix (const tree_matrix&); | |
71 | |
72 tree_matrix& operator = (const tree_matrix&); | |
1739 | 73 }; |
74 | |
3836 | 75 // The character to fill with when creating string arrays. |
76 extern char Vstring_fill_char; | |
77 | |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
78 extern std::string |
8107
8655dc0906e6
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
7767
diff
changeset
|
79 get_concat_class (const std::string& c1, const std::string& c2); |
8655dc0906e6
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
7767
diff
changeset
|
80 |
8655dc0906e6
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
7767
diff
changeset
|
81 extern void |
8655dc0906e6
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
7767
diff
changeset
|
82 maybe_warn_string_concat (bool all_dq_strings_p, bool all_sq_strings_p); |
8655dc0906e6
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
7767
diff
changeset
|
83 |
11586
12df7854fa7c
strip trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
84 extern std::string |
8113
38a797766a2a
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
8107
diff
changeset
|
85 get_concat_class (const std::string& c1, const std::string& c2); |
38a797766a2a
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
8107
diff
changeset
|
86 |
38a797766a2a
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
8107
diff
changeset
|
87 extern void |
38a797766a2a
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
8107
diff
changeset
|
88 maybe_warn_string_concat (bool all_dq_strings_p, bool all_sq_strings_p); |
38a797766a2a
Special case single type conacation in Fcat. Rework cell2mat to take advantage
David Bateman <dbateman@free.fr>
parents:
8107
diff
changeset
|
89 |
1739 | 90 #endif |