00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 // $Id: forEach.h,v 1.11 2004/02/18 23:24:03 oliver Exp $ 00005 // 00006 00007 #ifndef BALL_DATATYPE_FOREACH_H 00008 #define BALL_DATATYPE_FOREACH_H 00009 00010 #ifndef BALL_COMMON_H 00011 # include <BALL/common.h> 00012 #endif 00013 00031 #define BALL_FOREACH(container, element_iterator) \ 00032 for (element_iterator = container.begin(); \ 00033 !element_iterator.isEnd(); \ 00034 ++element_iterator) 00035 00036 #endif // BALL_DATATYPE_FOREACH_H