Logo Search packages:      
Sourcecode: pwlib version File versions

virtual void PContainer::DestroyContents (  )  [protected, pure virtual]

Destroy the container contents. This function must be defined by the descendent class to do the actual destruction of the contents. It is automatically declared when the PDECLARE_CONTAINER()# macro is used.

For all descendent classes not immediately inheriting off the PContainer itself, the implementation of DestroyContents() should always call its ancestors function. This is especially relevent if many of the standard container classes, such as arrays, are descended from as memory leaks will occur.

Implemented in PHashTable, and PSharedPtr< T >.

Referenced by AssignContents(), and Destruct().

Generated by  Doxygen 1.6.0   Back to index