• Wrapping C++ Classes in Cython
  • Overview
  • Procedure Overview
  • An example C++ API
  • Specify C++ language in setup.py
  • Create cdef extern from block
  • Declare class with cdef cppclass
  • Add public attributes
  • Declare a var with the wrapped C++ class
  • Overloading
  • Overloading operators
  • Templates
  • Multiple template parameters can be defined as a list, such as [T, U, V] or [int, bool, char].
  • Caveats and Limitations
  • Access to C-only functions
  • Inherited C++ methods
  • Advanced C++ features
  • Exceptions
  • Declaring/Using References
  • Conclusion