Mercurial > octave-nkf
diff libinterp/octave-value/ov-classdef.h @ 16695:2823f8e3da77 classdef
Add multi-level index assignment for object array.
* libinterp/octave-value/ov-classdef.h (cdef_object::is): New method.
* libinterp/octave-value/ov-classdef.cc (cdef_object_array::subsasgn):
Support multi-level index assignment.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 23 May 2013 14:12:33 -0400 |
parents | edbb123cbe3a |
children | 665fa0f621cc |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-classdef.h Wed May 22 15:48:31 2013 -0400 +++ b/libinterp/octave-value/ov-classdef.h Thu May 23 14:12:33 2013 -0400 @@ -289,6 +289,8 @@ void mark_as_constructed (const cdef_class& cls) { rep->mark_as_constructed (cls); } + bool is (const cdef_object& obj) const { return rep == obj.rep; } + protected: cdef_object_rep* get_rep (void) { return rep; }