On Wed, May 6, 2009 at 4:30 PM, Robert Bradshaw
<[email protected]> wrote:
> Just trying to get a syntax, how about
>
> cdef extern from "header.h":
>     cdef cclass MyClass[TemplateParamers](BaseCPPClass):
>         int member
>         int method(int)
>
> The only concern I have is whether or not "cdef cclass" is to similar
> to "cdef class" (probably not). Any other ideas?
>

Any chance you do not need 'cclass' and 'struct' would be enough
(perhaps with ctypedef instead of cdef)? Cython will not be able to
access private stuff from C++ classes...


-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to