![]() |
00001 // Copyright (C) 2004 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __ELEMENT_GROUP_ITERATOR_H 00005 #define __ELEMENT_GROUP_ITERATOR_H 00006 00007 namespace dolfin 00008 { 00009 00010 class ElementGroup; 00011 class ElementGrouList; 00012 00013 typedef ElementGroup* ElementGroupPointer; 00014 00016 00017 class ElementGroupIterator 00018 { 00019 public: 00020 00022 ElementGroupIterator(ElementGroupList& groups); 00023 00025 ~ElementGroupIterator(); 00026 00028 operator ElementGroupPointer() const; 00029 00031 ElementGroupIterator& operator++(); 00032 00034 ElementGroup& operator*() const; 00035 00037 ElementGroup* operator->() const; 00038 00040 bool end(); 00041 00042 private: 00043 00044 NewArray<ElementGroup*>::iterator it; 00045 NewArray<ElementGroup*>::iterator at_end; 00046 00047 }; 00048 00049 } 00050 00051 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.