* avoid problems with references to deleted pointers if an object were deleted
* during execution.
*/
-class CoreExport CullList : public classbase
+class CoreExport CullList
{
- private:
std::vector<classbase*> list;
public:
- CullList() {}
-
/** Adds an item to the cull list
*/
void AddItem(classbase* item) { list.push_back(item); }
void Apply();
};
+class CoreExport ActionList
+{
+ std::vector<HandlerBase0<void>*> list;
+
+ public:
+ /** Adds an item to the list
+ */
+ void AddAction(HandlerBase0<void>* item) { list.push_back(item); }
+
+ /** Runs the items
+ */
+ void Run();
+
+};
+
#endif