OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
7 class Deletable
8 {
9 public:
10  virtual ~Deletable();
11  void deleteLater();
12 };
13 
15 {
16  friend class Deletable;
17 
18  static DeletionManager *s_instance;
19 
21  ~DeletionManager();
22 
23  void add(Deletable *obj);
24 
25  std::deque<std::vector<Deletable *>> m_destroyList;
26 
27 public:
28  static DeletionManager *the();
29  static void destroy();
30 
31  bool run();
32 };
33 #endif
static void destroy()
static DeletionManager * the()
Definition: Deletable.h:14
void deleteLater()
Definition: Deletable.h:7
virtual ~Deletable()