00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef basictypes_H
00022 #define basictypes_H
00023
00024 #include <vector>
00025 #include <list>
00026 #include <bitset>
00027
00029 template <class T> class PointerVector : public std::vector<T> {
00030 public:
00031 ~PointerVector() {
00032 for ( typename std::vector<T>::iterator it = std::vector<T>::begin(); it!=std::vector<T>::end(); it++ )
00033 delete *it;
00034 };
00035 };
00036
00037
00039 template <class T> class PointerList : public std::list<T> {
00040 public:
00041 ~PointerList() {
00042 for ( typename std::list<T>::iterator it= std::list<T>::begin(); it!= std::list<T>::end(); it++ )
00043 delete *it;
00044 };
00045 };
00046
00047
00048 typedef std::bitset<64> BitSet;
00049
00050
00051 #endif