source: trunk/MagicSoft/Cosy/base/MGList.h@ 732

Last change on this file since 732 was 732, checked in by tbretz, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 370 bytes
Line 
1#ifndef MGLIST_H
2#define MGLIST_H
3
4#ifndef ROOT_TOrdCollection
5#include <TOrdCollection.h>
6#endif
7
8class MGList : public TOrdCollection
9{
10public:
11 ~MGList()
12 {
13 TIter Next(this);
14
15 TObject *obj;
16 while ((obj=Next()))
17 delete (TGObject*)obj;
18 }
19 void Add(TGObject *obj)
20 {
21 TOrdCollection::Add(obj);
22 }
23};
24
25#endif
Note: See TracBrowser for help on using the repository browser.