tags:

views:

142

answers:

1

Hi, I was browsing through the VTK 5.4.2 code, and can't seem to understand how does the Delete() function works. I mean, the Delete() function is in vtkObjectBase and is virtual, but, through what chain of commands is the destructor of the vtkDoubleArray class (for example) executed?

best regards,

mightydodol

+3  A: 

vtkObjectBase Delete() will call UnRegisterInternal. If the classes ReferenceCount is less than or equal to 1 it will call delete on the class.

RobertJMaynard