Mercurial > hg > octave-nkf
comparison libinterp/octave-value/ov-base.h @ 18356:06eb893b9db6
Implement subsref overloading in classdef.
* ov-class.cc (sanitize, make_idx_args): Moved function to ov-base.cc.
* ov-base.cc (sanitize, make_idx_args): Moved from ov-class.cc.
* ov-base.h (make_udx_args): New API function declaration.
* ov-classdef.cc (in_class_method): New utility static function.
(octave_classdef::subsref): Use overloaded subsref method if present,
only when not already in a class method.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Mon, 20 Jan 2014 14:10:42 -0500 |
parents | e473c4853afc |
children | ff311e5ff6d8 |
comparison
equal
deleted
inserted
replaced
18355:9d62b5f041ee | 18356:06eb893b9db6 |
---|---|
826 | 826 |
827 // TRUE means to perform automatic sparse to real mutation if there | 827 // TRUE means to perform automatic sparse to real mutation if there |
828 // is memory to be saved | 828 // is memory to be saved |
829 extern OCTINTERP_API bool Vsparse_auto_mutate; | 829 extern OCTINTERP_API bool Vsparse_auto_mutate; |
830 | 830 |
831 // Utility function to convert C++ arguments used in subsref/subsasgn into an | |
832 // octave_value_list object that can be used to call a function/method in the | |
833 // interpreter. | |
834 extern OCTINTERP_API octave_value | |
835 make_idx_args (const std::string& type, | |
836 const std::list<octave_value_list>& idx, | |
837 const std::string& who); | |
838 | |
831 #endif | 839 #endif |