26 #if ! defined (octave_classdef_h)
27 #define octave_classdef_h 1
29 #include "octave-config.h"
87 OCTINTERP_API
void print (std::ostream& os,
bool pr_as_read_syntax =
false);
90 print_raw (std::ostream& os,
bool pr_as_read_syntax =
false)
const;
92 OCTINTERP_API
bool is_instance_of (
const std::string& cls_name)
const;
96 m_object.break_closure_cycles (frame);
100 subsref (
const std::string& type,
const std::list<octave_value_list>& idx,
104 const std::list<octave_value_list>& idx)
111 subsref (
const std::string& type,
const std::list<octave_value_list>& idx,
115 subsasgn (
const std::string& type,
const std::list<octave_value_list>& idx,
119 undef_subsasgn (
const std::string& type,
120 const std::list<octave_value_list>& idx,
123 OCTINTERP_API
Matrix size (
void);
136 m_object.set_property (idx, name, pval);
142 return m_object.get_property (idx, name);
146 superclass_ref (
const std::string& meth,
const std::string& cls);
148 static OCTINTERP_API
octave_value metaclass_query (
const std::string& cls);
154 std::string
class_name (
void)
const {
return m_object.class_name (); }
159 static OCTINTERP_API
void register_type (octave::type_info&);
199 const std::list<octave_value_list>& idx,
202 return m_object.meta_subsref (type, idx, nargout);
211 return execute (tw, nargout, args);
219 std::list<octave_value_list> idx (1, args);
220 std::string type (
"(");
222 return subsref (type, idx, nargout);
226 {
return m_object.meta_accepts_postfix_index (type); }
233 OCTINTERP_API std::string
doc_string (
const std::string& meth_name)
const;
235 OCTINTERP_API std::string
file_name (
void)
const;
248 const std::string& cls)
268 return execute (tw, nargout, args);
272 execute (octave::tree_evaluator& tw,
int nargout,
class OCTINTERP_API cdef_object
Vector representing the dimensions (size) of an Array.
virtual octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
bool is_classdef_superclass_ref(void) const
octave_classdef_superclass_ref & operator=(const octave_classdef_superclass_ref &)=delete
std::string m_method_name
octave_function * function_value(bool=false)
octave_classdef_superclass_ref(const octave_classdef_superclass_ref &)=delete
OCTINTERP_API bool is_constructed_object(octave::tree_evaluator &tw, const std::string &nm)
~octave_classdef_superclass_ref(void)=default
octave_classdef_superclass_ref(void)=delete
octave_value_list call(octave::tree_evaluator &tw, int nargout, const octave_value_list &args)
OCTINTERP_API octave_value_list execute(octave::tree_evaluator &tw, int nargout, const octave_value_list &idx)
octave_classdef_superclass_ref(const std::string &meth, const std::string &cls)
static int static_type_id(void)
octave_base_value * empty_clone(void) const
dim_vector dims(void) const
bool is_defined(void) const
octave_map map_value(void) const
octave_classdef(const octave_classdef &)=delete
bool isobject(void) const
void break_closure_cycles(const std::shared_ptr< octave::stack_frame > &frame)
string_vector map_keys(void) const
octave_value get_property(octave_idx_type idx, const std::string &name) const
octave_classdef(const octave::cdef_object &obj)
octave_base_value * clone(void) const
~octave_classdef(void)=default
static std::string static_class_name(void)
static const std::string t_name
octave::cdef_object get_object(void) const
bool isstruct(void) const
octave::cdef_object & get_object_ref(void)
octave::cdef_object m_object
octave_value subsref(const std::string &type, const std::list< octave_value_list > &idx)
std::string type_name(void) const
bool is_classdef_object(void) const
static std::string static_type_name(void)
void set_property(octave_idx_type idx, const std::string &name, const octave_value &pval)
octave_classdef * classdef_object_value(bool=false)
std::string class_name(void) const
octave_idx_type length(void) const
type_info & operator=(const type_info &)=delete
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void install_classdef(octave::interpreter &interp)
int register_type(const std::string &t_name, const std::string &c_name, const octave_value &val)