5 #ifndef _UNITCOLLECTION_H_
6 #define _UNITCOLLECTION_H_
10 #define USE_STL_COLLECTION
12 #if defined (USE_OLD_COLLECTION)
14 #elif defined (USE_STL_COLLECTION)
101 std::list< class Unit* >::iterator
it;
139 std::list< class Unit* >::const_iterator
it;
176 if (u.size()-removedIters.size() > 0)
return false;
189 void insert( std::list< Unit* >::iterator&,
Unit* );
206 void erase( std::list< class Unit* >::iterator& );
210 bool remove(
const class Unit* );
215 return u.size()-removedIters.size();
221 for (std::list< Unit* >::reverse_iterator it = u.rbegin(); it != u.rend(); ++it)
230 for (std::list< Unit* >::iterator it = u.begin(); it != u.end(); ++it)
260 std::vector< class UnitCollection::UnitIterator* >activeIters;
265 std::vector< std::list< class Unit* >::iterator >removedIters;
268 std::list< class Unit* >u;
278 #error "No collection type chosen in collection.h:10"
279 #endif //USE_STL_COLLECTION