GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
pt-array-list.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2013-2017 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 3 of the License, or (at your
10 option) any 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, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_pt_array_list_h)
24 #define octave_pt_array_list_h 1
25 
26 #include "octave-config.h"
27 
28 #include "base-list.h"
29 #include "pt-arg-list.h"
30 #include "pt-exp.h"
31 #include "symtab.h"
32 
33 // Base class for cell arrays and matrices.
34 
35 class
38 {
39 public:
40 
43 
44  tree_array_list (tree_argument_list *row = 0, int l = -1, int c = -1)
45  : tree_expression (l, c), octave::base_list<tree_argument_list *> ()
46  {
47  if (row)
48  append (row);
49  }
50 
51  ~tree_array_list (void);
52 
53  bool all_elements_are_constant (void) const;
54 
55  bool has_magic_end (void) const;
56 
57  // FIXME: should we import the functions from the base class and
58  // overload them here, or should we use a different name so we don't
59  // have to do this? Without the using declaration or a name change,
60  // the base class functions will be hidden. That may be OK, but it
61  // can also cause some confusion.
63 
64  void copy_base (const tree_array_list& array_list);
65 
66  void copy_base (const tree_array_list& array_list,
69 
72 
73  void accept (tree_walker& tw);
74 
75 private:
76 
77  // No copying!
78 
80 
82 };
83 
84 #endif
octave::base_list< tree_argument_list * >::const_iterator const_iterator
Definition: pt-array-list.h:42
Octave interface to the compression and uncompression libraries.
Definition: aepbalance.cc:47
std::list< elt_type >::iterator iterator
Definition: base-list.h:40
virtual void copy_base(const tree_expression &e)
Definition: pt-exp.h:131
static llvm::LLVMContext & context
Definition: jit-typeinfo.cc:76
bool append
Definition: load-save.cc:1582
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
Definition: lu.cc:138
octave::base_list< tree_argument_list * >::iterator iterator
Definition: pt-array-list.h:41
std::list< elt_type >::const_iterator const_iterator
Definition: base-list.h:41
tree_array_list(tree_argument_list *row=0, int l=-1, int c=-1)
Definition: pt-array-list.h:44
tree_walker & operator=(const tree_walker &)
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every row
Definition: str2double.cc:342