OpenCOVER
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
cover
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
14
class
DeletionManager
15
{
16
friend
class
Deletable
;
17
18
static
DeletionManager
*s_instance;
19
20
DeletionManager
();
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
DeletionManager::destroy
static void destroy()
DeletionManager::the
static DeletionManager * the()
DeletionManager
Definition:
Deletable.h:14
Deletable::deleteLater
void deleteLater()
Deletable
Definition:
Deletable.h:7
Deletable::~Deletable
virtual ~Deletable()
DeletionManager::run
bool run()
Generated by
1.8.5