comparison liboctave/array/chMatrix.h @ 29646:3e8bc8bee8e9

liboctave/array: Add visibility flags to functions declared in headers (bug #60567). * liboctave/array/boolMatrix.h, liboctave/array/boolNDArray.h, liboctave/array/boolSparse.h, liboctave/array/CColVector.h, liboctave/array/CDiagMatrix.h, liboctave/array/chMatrix.h, liboctave/array/chNDArray.h, liboctave/array/CMatrix.h, liboctave/array/CNDArray.h, liboctave/array/CRowVector.h, liboctave/array/CSparse.h, liboctave/array/dColVector.h, liboctave/array/dDiagMatrix.h, liboctave/array/DiagArray2.h, liboctave/array/dim-vector.h, liboctave/array/dMatrix.h, liboctave/array/dNDArray.h, liboctave/array/dRowVector.h, liboctave/array/fCColVector.h, liboctave/array/fCDiagMatrix.h, liboctave/array/fCMatrix.h, liboctave/array/fCNDArray.h, liboctave/array/fColVector.h, liboctave/array/fCRowVector.h, liboctave/array/fDiagMatrix.h, liboctave/array/fMatrix.h, liboctave/array/fNDArray.h, liboctave/array/fRowVector.h, liboctave/array/idx-vector.h, liboctave/array/intNDArray.h, liboctave/array/MArray.h, liboctave/array/MDiagArray2.h, liboctave/array/PermMatrix.h: Add visibility flags to functions that are declared (but not defined) in headers.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 10 May 2021 23:27:38 +0200
parents 0a5b15007766
children 796f54d4ddbf
comparison
equal deleted inserted replaced
29645:eb49c0c02a54 29646:3e8bc8bee8e9
72 charMatrix (const std::string& s) : charNDArray (s) { } 72 charMatrix (const std::string& s) : charNDArray (s) { }
73 73
74 charMatrix (const string_vector& s, char fill_value = '\0') 74 charMatrix (const string_vector& s, char fill_value = '\0')
75 : charNDArray (s, fill_value) { } 75 : charNDArray (s, fill_value) { }
76 76
77 bool operator == (const charMatrix& a) const; 77 OCTAVE_API bool operator == (const charMatrix& a) const;
78 bool operator != (const charMatrix& a) const; 78 OCTAVE_API bool operator != (const charMatrix& a) const;
79 79
80 charMatrix transpose (void) const { return Array<char>::transpose (); } 80 charMatrix transpose (void) const { return Array<char>::transpose (); }
81 81
82 // destructive insert/delete/reorder operations 82 // destructive insert/delete/reorder operations
83 83
84 charMatrix& insert (const char *s, octave_idx_type r, octave_idx_type c); 84 OCTAVE_API charMatrix&
85 charMatrix& insert (const charMatrix& a, 85 insert (const char *s, octave_idx_type r, octave_idx_type c);
86 octave_idx_type r, octave_idx_type c); 86 OCTAVE_API charMatrix&
87 insert (const charMatrix& a, octave_idx_type r, octave_idx_type c);
87 88
88 std::string row_as_string (octave_idx_type, bool strip_ws = false) const; 89 OCTAVE_API std::string
90 row_as_string (octave_idx_type, bool strip_ws = false) const;
89 91
90 // resize is the destructive equivalent for this one 92 // resize is the destructive equivalent for this one
91 93
92 charMatrix extract (octave_idx_type r1, octave_idx_type c1, 94 OCTAVE_API charMatrix
93 octave_idx_type r2, octave_idx_type c2) const; 95 extract (octave_idx_type r1, octave_idx_type c1,
96 octave_idx_type r2, octave_idx_type c2) const;
94 97
95 void resize (octave_idx_type nr, octave_idx_type nc, char rfv = 0) 98 void resize (octave_idx_type nr, octave_idx_type nc, char rfv = 0)
96 { 99 {
97 Array<char>::resize (dim_vector (nr, nc), rfv); 100 Array<char>::resize (dim_vector (nr, nc), rfv);
98 } 101 }
99 102
100 #if 0 103 #if 0
101 // i/o 104 // i/o
102 105
103 friend std::ostream& operator << (std::ostream& os, const Matrix& a); 106 friend OCTAVE_API std::ostream&
104 friend std::istream& operator >> (std::istream& is, Matrix& a); 107 operator << (std::ostream& os, const Matrix& a);
108 friend OCTAVE_API std::istream& operator >> (std::istream& is, Matrix& a);
105 #endif 109 #endif
106 }; 110 };
107 111
108 MS_CMP_OP_DECLS (charMatrix, char, OCTAVE_API) 112 MS_CMP_OP_DECLS (charMatrix, char, OCTAVE_API)
109 MS_BOOL_OP_DECLS (charMatrix, char, OCTAVE_API) 113 MS_BOOL_OP_DECLS (charMatrix, char, OCTAVE_API)