octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Octave C++ API - - Calling an m-file function of an object using its oct


From: Abhinav Tripathi
Subject: Octave C++ API - - Calling an m-file function of an object using its octave_value in c++
Date: Tue, 23 May 2017 20:05:11 +0530

Hi,
I am trying to see how to call a function of an object (octave class) in C API and get the result. I have tried to check the docs but couldn't find it.
.
For example:
There is an octave class (either old style or classdef) named "baseclass" in m-file. There's an object "a" of that class. Now the m file passes it to c++ where it is represented by "octave_value". How to call a m-file function of baseclass in the c++ code to get the result?
I tried using subsref on the octave_value but it doesn't work!
.
This is for trying something in pytave where if the octave class has a "_pyobject" function defined then it should be called in the c++ code.
.
Regards,
Abhinav


reply via email to

[Prev in Thread] Current Thread [Next in Thread]