Go to the documentation of this file.
33 #ifndef __H__UG_lg_for_each
34 #define __H__UG_lg_for_each
38 #define lg_for_each(_feType, _feVar, _feCon) \
39 for(Grid::traits<_feType>::iterator _feI = _feCon.begin<_feType>();\
40 _feI != _feCon.end<_feType>(); ++_feI){\
41 _feType* _feVar = *_feI;
43 #define lg_for_each_const(_feType, _feVar, _feCon) \
44 for(Grid::traits<_feType>::const_iterator _feI = _feCon.begin<_feType>();\
45 _feI != _feCon.end<_feType>(); ++_feI){\
46 _feType* _feVar = *_feI;
48 #define lg_for_each_template(_feType, _feVar, _feCon) \
49 for(typename Grid::traits<_feType>::iterator _feI = _feCon.begin<_feType>();\
50 _feI != _feCon.end<_feType>(); ++_feI){\
51 _feType* _feVar = *_feI;
54 #define lg_for_each_in_lvl(_feType, _feVar, _feCon, _feLvl) \
55 for(Grid::traits<_feType>::iterator _feI = _feCon.begin<_feType>(_feLvl);\
56 _feI != _feCon.end<_feType>(_feLvl); ++_feI){\
57 _feType* _feVar = *_feI;
59 #define lg_for_each_in_lvl_template(_feType, _feVar, _feCon, _feLvl) \
60 for(typename Grid::traits<_feType>::iterator _feI = _feCon.begin<_feType>(_feLvl);\
61 _feI != _feCon.end<_feType>(_feLvl); ++_feI){\
62 _feType* _feVar = *_feI;
64 #define lg_for_each_in_subset(_feType, _feVar, _feCon, _feSubset) \
65 for(Grid::traits<_feType>::iterator _feI = _feCon.begin<_feType>(_feSubset);\
66 _feI != _feCon.end<_feType>(_feSubset); ++_feI){\
67 _feType* _feVar = *_feI;
69 #define lg_for_each_in_subset_template(_feType, _feVar, _feCon, _feSubset) \
70 for(typename Grid::traits<_feType>::iterator _feI = _feCon.begin<_feType>(_feSubset);\
71 _feI != _feCon.end<_feType>(_feSubset); ++_feI){\
72 _feType* _feVar = *_feI;
74 #define lg_for_each_in_subset_lvl(_feType, _feVar, _feCon, _feSubset, _feLvl) \
75 for(Grid::traits<_feType>::iterator _feI = _feCon.begin<_feType>(_feSubset, _feLvl);\
76 _feI != _feCon.end<_feType>(_feSubset, _feLvl); ++_feI){\
77 _feType* _feVar = *_feI;
79 #define lg_for_each_in_subset_lvl_template(_feType, _feVar, _feCon, _feSubset, _feLvl) \
80 for(typename Grid::traits<_feType>::iterator _feI = _feCon.begin<_feType>(_feSubset, _feLvl);\
81 _feI != _feCon.end<_feType>(_feSubset, _feLvl); ++_feI){\
82 _feType* _feVar = *_feI;
84 #define lg_for_each_vertex_in_elem(_feVar, _feElem) \
85 for(size_t _feI = 0; _feI < _feElem->num_vertices(); ++_feI){\
86 Vertex* _feVar = _feElem->vertex(_feI);