Mercurial > hg > octave-nkf
comparison src/pt-colon.h @ 10313:f3b65e1ae355
untabify src header files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:16:43 -0500 |
parents | cd96d29c5efa |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
10312:cbc402e64d83 | 10313:f3b65e1ae355 |
---|---|
49 tree_colon_expression (tree_expression *e, int l = -1, int c = -1) | 49 tree_colon_expression (tree_expression *e, int l = -1, int c = -1) |
50 : tree_expression (l, c), op_base (e), op_limit (0), | 50 : tree_expression (l, c), op_base (e), op_limit (0), |
51 op_increment (0), save_base (false) { } | 51 op_increment (0), save_base (false) { } |
52 | 52 |
53 tree_colon_expression (tree_expression *bas, tree_expression *lim, | 53 tree_colon_expression (tree_expression *bas, tree_expression *lim, |
54 tree_expression *inc, int l = -1, int c = -1) | 54 tree_expression *inc, int l = -1, int c = -1) |
55 : tree_expression (l, c), op_base (bas), op_limit (lim), | 55 : tree_expression (l, c), op_base (bas), op_limit (lim), |
56 op_increment (inc), save_base (false) { } | 56 op_increment (inc), save_base (false) { } |
57 | 57 |
58 ~tree_colon_expression (void) | 58 ~tree_colon_expression (void) |
59 { | 59 { |
60 if (! save_base) | 60 if (! save_base) |
61 delete op_base; | 61 delete op_base; |
62 | 62 |
63 delete op_limit; | 63 delete op_limit; |
64 delete op_increment; | 64 delete op_increment; |
65 } | 65 } |
66 | 66 |
67 bool has_magic_end (void) const | 67 bool has_magic_end (void) const |
68 { | 68 { |
69 return ((op_base && op_base->has_magic_end ()) | 69 return ((op_base && op_base->has_magic_end ()) |
70 || (op_limit && op_limit->has_magic_end ()) | 70 || (op_limit && op_limit->has_magic_end ()) |
71 || (op_increment && op_increment->has_magic_end ())); | 71 || (op_increment && op_increment->has_magic_end ())); |
72 } | 72 } |
73 | 73 |
74 void preserve_base (void) { save_base = true; } | 74 void preserve_base (void) { save_base = true; } |
75 | 75 |
76 tree_colon_expression *append (tree_expression *t); | 76 tree_colon_expression *append (tree_expression *t); |
91 | 91 |
92 int line (void) const; | 92 int line (void) const; |
93 int column (void) const; | 93 int column (void) const; |
94 | 94 |
95 tree_expression *dup (symbol_table::scope_id scope, | 95 tree_expression *dup (symbol_table::scope_id scope, |
96 symbol_table::context_id context) const; | 96 symbol_table::context_id context) const; |
97 | 97 |
98 void accept (tree_walker& tw); | 98 void accept (tree_walker& tw); |
99 | 99 |
100 private: | 100 private: |
101 | 101 |
106 | 106 |
107 bool save_base; | 107 bool save_base; |
108 | 108 |
109 octave_value | 109 octave_value |
110 make_range (const Matrix& m_base, const Matrix& m_limit, | 110 make_range (const Matrix& m_base, const Matrix& m_limit, |
111 const Matrix& m_increment, bool result_is_str, | 111 const Matrix& m_increment, bool result_is_str, |
112 bool dq_str) const; | 112 bool dq_str) const; |
113 | 113 |
114 octave_value | 114 octave_value |
115 make_range (const octave_value& ov_base, const octave_value& ov_limit, | 115 make_range (const octave_value& ov_base, const octave_value& ov_limit, |
116 const octave_value& ov_increment) const; | 116 const octave_value& ov_increment) const; |
117 | 117 |
118 // No copying! | 118 // No copying! |
119 | 119 |
120 tree_colon_expression (const tree_colon_expression&); | 120 tree_colon_expression (const tree_colon_expression&); |
121 | 121 |