BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DATATYPE/forEach.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_DATATYPE_FOREACH_H
6 #define BALL_DATATYPE_FOREACH_H
7 
8 #ifndef BALL_COMMON_H
9 # include <BALL/common.h>
10 #endif
11 
29 #define BALL_FOREACH(container, element_iterator) \
30 for (element_iterator = container.begin(); \
31  !element_iterator.isEnd(); \
32  ++element_iterator)
33 
34 #endif // BALL_DATATYPE_FOREACH_H