comparison libinterp/corefcn/gzfstream.h @ 30896:c9788d7f6e65

maint: Use "fcn" as preferred abbreviation for "function" in libinterp/. * __eigs__.cc, bsxfun.cc, cellfun.cc, daspk.cc, dasrt.cc, dassl.cc, data.cc, debug.cc, error.cc, graphics.cc, graphics.in.h, gzfstream.h, ls-hdf5.cc, lsode.cc, max.cc, oct-opengl.h, quad.cc, strfns.cc, utils.cc, utils.h, variables.cc, __ode15__.cc, gzip.cc, cdef-manager.cc, ov-fcn-handle.cc, ov-java.cc, ov-usr-fcn.cc, bp-table.cc, bp-table.h, lex.h, lex.ll, oct-parse.yy, pt-eval.cc: Replace "func", "fun", "fn" in documentation and variable names with "fcn".
author Rik <rik@octave.org>
date Tue, 05 Apr 2022 08:33:58 -0700
parents 796f54d4ddbf
children 597f3ee61a48
comparison
equal deleted inserted replaced
30895:360d330cc30e 30896:c9788d7f6e65
467 T1 v1, 467 T1 v1,
468 T2 v2); 468 T2 v2);
469 private: 469 private:
470 // Underlying manipulator function 470 // Underlying manipulator function
471 gzofstream& 471 gzofstream&
472 (*func)(gzofstream&, T1, T2); 472 (*fcn)(gzofstream&, T1, T2);
473 473
474 // Arguments for manipulator function 474 // Arguments for manipulator function
475 T1 val1; 475 T1 val1;
476 T2 val2; 476 T2 val2;
477 }; 477 };
488 template <typename T1, typename T2> 488 template <typename T1, typename T2>
489 inline 489 inline
490 gzomanip2<T1, T2>::gzomanip2 (gzofstream &(*f)(gzofstream&, T1, T2), 490 gzomanip2<T1, T2>::gzomanip2 (gzofstream &(*f)(gzofstream&, T1, T2),
491 T1 v1, 491 T1 v1,
492 T2 v2) 492 T2 v2)
493 : func(f), val1(v1), val2(v2) 493 : fcn(f), val1(v1), val2(v2)
494 { } 494 { }
495 495
496 // Insertor applies underlying manipulator function to stream 496 // Insertor applies underlying manipulator function to stream
497 template <typename T1, typename T2> 497 template <typename T1, typename T2>
498 inline gzofstream& 498 inline gzofstream&
499 operator<<(gzofstream& s, const gzomanip2<T1, T2>& m) 499 operator<<(gzofstream& s, const gzomanip2<T1, T2>& m)
500 { return (*m.func)(s, m.val1, m.val2); } 500 { return (*m.fcn)(s, m.val1, m.val2); }
501 501
502 // Insert this onto stream to simplify setting of compression level 502 // Insert this onto stream to simplify setting of compression level
503 inline gzomanip2<int, int> 503 inline gzomanip2<int, int>
504 setcompression (int l, int s = Z_DEFAULT_STRATEGY) 504 setcompression (int l, int s = Z_DEFAULT_STRATEGY)
505 { return gzomanip2<int, int>(&setcompression, l, s); } 505 { return gzomanip2<int, int>(&setcompression, l, s); }