File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ cdef extern from "TestClassC.cpp": # defines the source C++ file
88cdef class CTestClass: # defines a python wrapper to the C++ class
99 cdef TestClass* thisptr # thisptr is a pointer that will hold to the instance of the C++ class
1010 def __cinit__ (self , int Dimensionality ): # defines the python wrapper class' init function
11- self .thisptr = new TestClass(Dimensionality) # creates an instance of the C++ class and puts allocates the pointer to thisB
11+ self .thisptr = new TestClass(Dimensionality) # creates an instance of the C++ class and puts allocates the pointer to this
1212 def __dealloc__ (self ): # defines the python wrapper class' deallocation function (python destructor)
1313 del self .thisptr # destroys the reference to the C++ instance (which calls the C++ class destructor
1414
You can’t perform that action at this time.
0 commit comments