Mercurial > hg > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
16694:50b37deadb66 | 16695:2823f8e3da77 |
---|---|
286 | 286 |
287 void mark_as_constructed (void) { rep->mark_as_constructed (); } | 287 void mark_as_constructed (void) { rep->mark_as_constructed (); } |
288 | 288 |
289 void mark_as_constructed (const cdef_class& cls) | 289 void mark_as_constructed (const cdef_class& cls) |
290 { rep->mark_as_constructed (cls); } | 290 { rep->mark_as_constructed (cls); } |
291 | |
292 bool is (const cdef_object& obj) const { return rep == obj.rep; } | |
291 | 293 |
292 protected: | 294 protected: |
293 cdef_object_rep* get_rep (void) { return rep; } | 295 cdef_object_rep* get_rep (void) { return rep; } |
294 | 296 |
295 void make_unique (void) | 297 void make_unique (void) |