DELETELIST
Classes
- vorlib::deletelist (template)
Files
This one does a little work, but it may help. If you have some classes in your program, that you create and the can take care of themselfs, you don't need to care about them any more. Just put them to their deletelist and, when the deletelists dies, it will delete them all automatically.
Interface
-
deletelist
Constructor, called automatically when you write "deleteliset < class_type > list" or "deletelist < ... > *list = new deletelist < ... >"
-
~deletelist
Destructor, also called automatically when it dies, deletes all classes you gave it.
-
operator<<
list << class, adds class to the list. It should be created by new, or automatically. The class is pointer to that class.