00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __embite_Iterator_h
00019 #define __embite_Iterator_h
00020
00021 #include "Element.h"
00022
00023 namespace embite
00024 {
00025
00029 class Iterator
00030 {
00031 bool m_hasMore;
00032 bool m_matchFlag;
00033 Element* m_matchedList;
00034 ElementOwner m_owner;
00035
00036 public:
00037 Iterator();
00038
00039 bool hasMore() { return m_hasMore; }
00040
00041 bool matched() { return m_matchFlag; }
00042
00043 void operator ++();
00044
00045
00046
00047
00048 ElementOwner* getOwner() { return &m_owner; }
00049
00050 Element*& getMatchedList() { return m_matchedList; }
00051
00052 bool& matchFlag() { return m_matchFlag; }
00053
00054 void setHasMore(bool v) { m_hasMore = v; }
00055 };
00056
00057 }
00058
00059 #endif // __embite_Iterator_h