Mercurial > octave-nkf
diff libinterp/octave-value/ov-classdef.h @ 19144:fa48651fbb8a
isstruct for classdef objects should not return true.
* ov.h (octave_value::is_classdef_object): New method.
* ov-base.h (octave_base_value::is_classdef_object): Likewise.
* ov-classdef.h (octave_classdef::is_classdef_object): Likewise.
(octave_classdef::is_map): Return false.
* variables.cc (generate_struct_completions): Do auto-completion for
classdef objects too.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sat, 20 Sep 2014 17:16:56 -0400 |
parents | 56bc1464ec59 |
children | e0a7718ac085 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-classdef.h Sat Sep 20 12:56:47 2014 -0700 +++ b/libinterp/octave-value/ov-classdef.h Sat Sep 20 17:16:56 2014 -0400 @@ -1409,10 +1409,12 @@ bool is_defined (void) const { return true; } - bool is_map (void) const { return true; } + bool is_map (void) const { return false; } bool is_object (void) const { return true; } + bool is_classdef_object (void) const { return true; } + void print (std::ostream& os, bool pr_as_read_syntax = false); void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const;