File diff r23953:ba75d2f3b530 → r23954:8e43140b9a66
src/base_station_base.h
Show inline comments
 
@@ -163,8 +163,6 @@ struct BaseStation : StationPool::PoolIt
 
	static void PostDestructor(size_t index);
 
};
 

	
 
#define FOR_ALL_BASE_STATIONS(var) FOR_ALL_ITEMS_FROM(BaseStation, station_index, var, 0)
 

	
 
/**
 
 * Class defining several overloaded accessors so we don't
 
 * have to cast base stations that often
 
@@ -252,8 +250,13 @@ struct SpecializedStation : public BaseS
 
		assert(IsExpected(st));
 
		return (const T *)st;
 
	}
 

	
 
	/**
 
	 * Returns an iterable ensemble of all valid stations of type T
 
	 * @param from index of the first station to consider
 
	 * @return an iterable ensemble of all valid stations of type T
 
	 */
 
	static Pool::IterateWrapper<T> Iterate(size_t from = 0) { return Pool::IterateWrapper<T>(from); }
 
};
 

	
 
#define FOR_ALL_BASE_STATIONS_OF_TYPE(name, var) FOR_ALL_ITEMS_FROM(name, station_index, var, 0) if (name::IsExpected(var))
 

	
 
#endif /* BASE_STATION_BASE_H */