1 #ifndef _global_h
2 #	include "global.h"
3 #endif
4 
5 #ifndef _objtab_h
6 #	include "objtab.h"
7 #endif
8 
9 
Init(int size_val)10 void ObjTab::Init(int size_val) {
11 int i;
12 
13 	size = size_val;
14 	obj  = new Object*[size];
15 	time = new Real[size];
16 	for (i=0;i<size;i++) {
17 		obj[i]=0L;
18 		time[i]=MAX_TIME;
19 	}
20 #if (!DIRECT_ACCESS)
21 	ind  = new unsigned[size];
22 	new_ind = new unsigned[size];
23 	for (i=0;i<size;i++) {
24 		ind[i]=i;
25 	}
26 #endif
27 }
28 
~ObjTab()29 ObjTab::~ObjTab() {
30 	delete [] obj;
31 	delete [] time;
32 #if (!DIRECT_ACCESS)
33 	delete [size] ind;
34 	delete [size] new_ind;
35 #endif
36 
37 }
38