Last change
on this file since 1683 was 918, checked in by tbretz, 23 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
647 bytes
|
Line | |
---|
1 | #ifndef MGLIST_H
|
---|
2 | #define MGLIST_H
|
---|
3 |
|
---|
4 | #ifdef DBG_MGLIST
|
---|
5 | #include <iostream.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TOrdCollection
|
---|
9 | #include <TOrdCollection.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MGList : public TOrdCollection
|
---|
13 | {
|
---|
14 | public:
|
---|
15 | ~MGList()
|
---|
16 | {
|
---|
17 | #ifdef DBG_MGLIST
|
---|
18 | cout << "Deleting:" << flush;
|
---|
19 | #endif
|
---|
20 |
|
---|
21 | TIter Next(this);
|
---|
22 |
|
---|
23 | TObject *obj;
|
---|
24 | while ((obj=Next()))
|
---|
25 | {
|
---|
26 | #ifdef DBG_MGLIST
|
---|
27 | cout << " <" << ((TGObject*)obj)->GetName() << ">" << flush;
|
---|
28 | #endif
|
---|
29 | delete (TGObject*)obj;
|
---|
30 | }
|
---|
31 | #ifdef DBG_MGLIST
|
---|
32 | cout << endl;
|
---|
33 | #endif
|
---|
34 | }
|
---|
35 | void Add(TGObject *obj)
|
---|
36 | {
|
---|
37 | TOrdCollection::Add(obj);
|
---|
38 | }
|
---|
39 | };
|
---|
40 |
|
---|
41 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.