00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef PLIST_H
00020 #define PLIST_H
00021
00022 #include "dtoolbase.h"
00023 #include "pallocator.h"
00024 #include <list>
00025
00026 #ifdef NO_STYLE_ALLOCATOR
00027
00028
00029 #define plist list
00030
00031 #else
00032
00033
00034
00035
00036
00037
00038
00039
00040 template<class Type>
00041 class plist : public list<Type, pallocator<Type> > {
00042 public:
00043 typedef TYPENAME list<Type, pallocator<Type> >::size_type size_type;
00044 plist() : list<Type, pallocator<Type> >() { }
00045 plist(const plist<Type> ©) : list<Type, pallocator<Type> >(copy) { }
00046 plist(size_type n) : list<Type, pallocator<Type> >(n) { }
00047 plist(size_type n, const Type &value) : list<Type, pallocator<Type> >(n, value) { }
00048
00049 typedef TYPENAME list<Type, pallocator<Type> >::iterator iterator;
00050 typedef TYPENAME list<Type, pallocator<Type> >::const_iterator const_iterator;
00051 typedef TYPENAME list<Type, pallocator<Type> >::reverse_iterator reverse_iterator;
00052 typedef TYPENAME list<Type, pallocator<Type> >::const_reverse_iterator const_reverse_iterator;
00053 };
00054
00055 #endif // NO_STYLE_ALLOCATOR
00056 #endif