finishing up my reformatting of the source from November/December following the guidelines that were posted. some extra things I added: * Any empty virtual declarations were kept to one line. * Enums were split up into separate lines to promote uniformity across all headers. ( each header file had a different style for enums)
26 lines
386 B
C++
26 lines
386 B
C++
#ifndef _TRASH_H_
|
|
#define _TRASH_H_
|
|
|
|
#include <vector>
|
|
#include "Pos.h"
|
|
#include "WEvent.h"
|
|
|
|
template<class T> void trash(T*);
|
|
class Trash
|
|
{
|
|
public:
|
|
static void cleanup();
|
|
};
|
|
|
|
template<class T>
|
|
class TrashBin
|
|
{
|
|
std::vector<T*> bin;
|
|
void put_out();
|
|
int receiveEvent(WEvent* e);
|
|
template<class Q> friend void trash(Q*);
|
|
friend class Trash;
|
|
};
|
|
|
|
#endif // _TRASH_H_
|