Hello,
is there a way to access a C++ class private *thisptr from another
class/function?
something like (from wiki.cython.org/WrappingCPlusPlus):
cdef class Rectangle:
cdef c_Rectangle *thisptr
def __cinit__(self):
self.thisptr = new_Rectangle()
# rest of implementation
cdef class Obj_mangler:
cdef c_Obj_mangler *thisptr
def __cinit__(self):
self.thisptr = new_Obj_mangler()
def do_something_on_Polygon(self,Rectangle_list):
# Rectangle_list is a list of Python objects wrappers
# do_something is a void() c++ function accepting object pointers
self.thisptr.do_something(Rectangle_list[0].thisptr)
Thanks!
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev