summaryrefslogtreecommitdiff
path: root/dnn/Disposable.h
blob: 1f73380cd31647bd2a14ea0edc08c31969181e65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 *	DNN - Data News Network
 *
 *	by Stephane Chatty and Stephane Sire
 *
 *	Copyright 1993-1996
 *	Centre d'Etudes de la Navigation Aerienne (CENA)
 *
 *	Disposable objects.
 *
 *	$Id$
 *	$CurLog$
 */

#ifndef IvlDisposable_H_
#define IvlDisposable_H_

#include "ivl/List.h"
#include "ivl/Initializer.h"
#include "Loop.h"

class IvlDisposable {

public:
static	bool	ClassInitialized;
static	void	ClassInit ();
static	IvlInitializerFor <IvlDisposable>	Initializer;

protected:
static	IvlListOf <IvlDisposable>	Garbage;

private:
static	IvlInitializerFor <IvlBaseMultiplexer>	Dependance;

protected:
		IvlDisposable ();

public:
virtual		~IvlDisposable ();
    	void	Trash ();

static 	void	DeleteGarbage ();
};

#endif	/* IvlDisposable_H_ */