Mercurial > octave
diff 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 |
line wrap: on
line diff
--- a/liboctave/array/chMatrix.h Mon May 10 14:58:19 2021 -0400 +++ b/liboctave/array/chMatrix.h Mon May 10 23:27:38 2021 +0200 @@ -74,23 +74,26 @@ charMatrix (const string_vector& s, char fill_value = '\0') : charNDArray (s, fill_value) { } - bool operator == (const charMatrix& a) const; - bool operator != (const charMatrix& a) const; + OCTAVE_API bool operator == (const charMatrix& a) const; + OCTAVE_API bool operator != (const charMatrix& a) const; charMatrix transpose (void) const { return Array<char>::transpose (); } // destructive insert/delete/reorder operations - charMatrix& insert (const char *s, octave_idx_type r, octave_idx_type c); - charMatrix& insert (const charMatrix& a, - octave_idx_type r, octave_idx_type c); + OCTAVE_API charMatrix& + insert (const char *s, octave_idx_type r, octave_idx_type c); + OCTAVE_API charMatrix& + insert (const charMatrix& a, octave_idx_type r, octave_idx_type c); - std::string row_as_string (octave_idx_type, bool strip_ws = false) const; + OCTAVE_API std::string + row_as_string (octave_idx_type, bool strip_ws = false) const; // resize is the destructive equivalent for this one - charMatrix extract (octave_idx_type r1, octave_idx_type c1, - octave_idx_type r2, octave_idx_type c2) const; + OCTAVE_API charMatrix + extract (octave_idx_type r1, octave_idx_type c1, + octave_idx_type r2, octave_idx_type c2) const; void resize (octave_idx_type nr, octave_idx_type nc, char rfv = 0) { @@ -100,8 +103,9 @@ #if 0 // i/o - friend std::ostream& operator << (std::ostream& os, const Matrix& a); - friend std::istream& operator >> (std::istream& is, Matrix& a); + friend OCTAVE_API std::ostream& + operator << (std::ostream& os, const Matrix& a); + friend OCTAVE_API std::istream& operator >> (std::istream& is, Matrix& a); #endif };