GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Array-oct.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2022-2023 The Octave Project Developers
4 //
5 // See the file COPYRIGHT.md in the top-level directory of this
6 // distribution or <https://octave.org/copyright/>.
7 //
8 // This file is part of Octave.
9 //
10 // Octave is free software: you can redistribute it and/or modify it
11 // under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // Octave is distributed in the hope that it will be useful, but
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with Octave; see the file COPYING. If not, see
22 // <https://www.gnu.org/licenses/>.
23 //
24 ////////////////////////////////////////////////////////////////////////
25 
26 
27 // Include this file when instantiating the Array class with new types in
28 // projects linking to "liboctave" but not to "liboctinterp".
29 
30 #include "Array.h"
31 
32 // FIXME: Including "Array.h" will have implicitly instantiated
33 // Array<octave_idx_type>. Could that be an issue?
34 
35 // "Protect" Array<T> instantiations that are exported by liboctave from
36 // being implicitly instantiated in compilation units including this file.
37 
38 // Declare extern templates before including "Array-base.cc" to avoid
39 // implicitly instantiating Array<octave::idx_vector>.
40 
41 // instantiated in Array-C.cc
42 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<Complex>;
43 // instantiated in Array-b.cc
44 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<bool>;
45 // instantiated in Array-ch.cc
46 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<char>;
47 // instantiated in Array-d.cc
48 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<double>;
49 // instantiated in Array-f.cc
50 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<float>;
51 // instantiated in Array-fC.cc
52 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<FloatComplex>;
53 // instantiated in Array-i.cc
54 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<signed char>;
55 // extern template class Array<short>;
56 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<int>;
57 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<long>;
58 #if defined (OCTAVE_HAVE_LONG_LONG_INT)
59 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<long long>;
60 #endif
61 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<unsigned char>;
62 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<unsigned short>;
63 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<unsigned int>;
64 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<unsigned long>;
65 #if defined (OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT)
66 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<unsigned long long>;
67 #endif
68 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave_int8>;
69 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave_int16>;
70 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave_int32>;
71 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave_int64>;
72 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave_uint8>;
73 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave_uint16>;
74 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave_uint32>;
75 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave_uint64>;
76 // instantiated in Array-idx-vec.cc
77 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<octave::idx_vector>;
78 // instantiated in Array-s.cc
79 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<short>;
80 // instantiated in Array-str.cc
81 extern template class OCTAVE_EXTERN_TEMPLATE_API Array<std::string>;
82 
83 #include "Array-base.cc"
N Dimensional Array with copy-on-write semantics.
Definition: Array.h:130