Mercurial > hg > octave-nkf
diff src/ov-file.h @ 4608:22ca4cc02525
[project @ 2003-11-14 03:55:04 by jwe]
author | jwe |
---|---|
date | Fri, 14 Nov 2003 03:55:04 +0000 |
parents | bfb14347a9fa |
children | d44675070f1a |
line wrap: on
line diff
--- a/src/ov-file.h +++ b/src/ov-file.h @@ -81,6 +81,18 @@ bool is_stream (void) const { return true; } + // Pretend we are a real scalar for better compatibility, maybe. + + bool is_real_scalar (void) const { return true; } + + bool is_real_type (void) const { return true; } + + dim_vector dims (void) const { static dim_vector dv (1, 1); return dv; } + + octave_value all (int = 0) const { return (number != 0.0); } + + octave_value any (int = 0) const { return (number != 0.0); } + void print (std::ostream& os, bool pr_as_read_syntax = false) const; void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const;