Mercurial > octave
comparison liboctave/array/idx-vector.h @ 30489:bd67d0045e21 stable
use separate files for MArray, intNDArray, and range template forward decls
* MArray-fwd.h, intNDArray-fwd.h, range-fwd.h: New files.
* liboctave/array/module.mk: Update.
* pr-output.h, ov-range.h, MArray-C.cc, MArray-d.cc, MArray-f.cc,
MArray-fC.cc, MArray-i.cc, MArray-s.cc, MArray.cc, MArray.h,
Range.h, dNDArray.h, fNDArray.h, idx-vector.h, intNDArray.h,
sparse-qr.h, oct-inttypes.h: Use new header files to replace inline
forward declarations of some template types.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 06 Dec 2021 14:12:11 -0500 |
parents | 1f0a2689cab2 |
children | 796f54d4ddbf |
comparison
equal
deleted
inserted
replaced
30488:abb4823df535 | 30489:bd67d0045e21 |
---|---|
38 #include "Array-fwd.h" | 38 #include "Array-fwd.h" |
39 #include "dim-vector.h" | 39 #include "dim-vector.h" |
40 #include "oct-inttypes.h" | 40 #include "oct-inttypes.h" |
41 #include "oct-refcount.h" | 41 #include "oct-refcount.h" |
42 #include "Sparse-fwd.h" | 42 #include "Sparse-fwd.h" |
43 #include "range-fwd.h" | |
43 | 44 |
44 namespace octave | 45 namespace octave |
45 { | 46 { |
46 template <typename T> class range; | |
47 | |
48 // Design rationale: | 47 // Design rationale: |
49 // | 48 // |
50 // idx_vector is a reference-counting, polymorphic pointer, that can | 49 // idx_vector is a reference-counting, polymorphic pointer, that can |
51 // contain 4 types of index objects: a magic colon, a range, a scalar, | 50 // contain 4 types of index objects: a magic colon, a range, a scalar, |
52 // or an index vector. | 51 // or an index vector. |