OpenCOVER
Deletable.h
Go to the documentation of this file.
1#ifndef COVER_DELETABLE_H
2#define COVER_DELETABLE_H
3
4#include <vector>
5#include <deque>
6
8{
9public:
10 virtual ~Deletable();
12};
13
15{
16 friend class Deletable;
17
18 static DeletionManager *s_instance;
19
22
23 void add(Deletable *obj);
24
25 std::deque<std::vector<Deletable *>> m_destroyList;
26
27public:
29 static void destroy();
30
31 bool run();
32};
33#endif
Definition: Deletable.h:8
virtual ~Deletable()
void deleteLater()
Definition: Deletable.h:15
static DeletionManager * the()
static void destroy()