ULAPI  8.0
uldictionaryiterator.h
1 
7 #ifndef ULDICTIONARYITERATOR_H
8 #define ULDICTIONARYITERATOR_H
9 
10 #include "uldictionarydatasourceiterator.h"
11 
27 class ULDictionaryIterator : public ULDictionaryDataSourceIterator
28 {
29  UL_TEST_FRIEND;
30 
31 public:
34  ULDictionaryIterator(ULDictionaryDataSourceIterator *ddsIterator);
35  virtual ~ULDictionaryIterator();
36 
38  virtual void clear();
39 
40  virtual ULDictionaryDataSource *getDataSource() const;
41  virtual void setDataSource(ULDictionaryDataSource *source);
42 
43  ULDictionaryIterator *clone() const;
44  void setDataSourceIterator(ULDictionaryDataSourceIterator *iterator);
45 
46  virtual const ULDictionaryNode& operator*();
47  virtual void operator++();
48  virtual void operator++(int);
49  virtual void operator--();
50  virtual void operator--(int);
51  virtual bool operator==(const ULDictionaryDataSourceIterator& iterator) const;
52  virtual bool operator==(const ULDictionaryIterator& iterator) const;
53  virtual uluint32 hash(uluint32 tableSize) const;
54 
55 
60  virtual const ULDictionaryNode& getData();
61 
66  virtual void increment();
67 
72  virtual void decrement();
73 
74  virtual void toNextTopLevelNode();
75  virtual void toCurrentTopLevelNode();
76  virtual void toPreviousTopLevelNode();
77  virtual bool hasParent();
78  virtual void toParent();
79  virtual bool hasChildren();
80  virtual void toFirstChild();
81  virtual bool hasNextSibling();
82  virtual void toNextSibling();
83  virtual bool hasPreviousSibling();
84  virtual void toPreviousSibling();
85  virtual bool hasNextCousin();
86  virtual void toNextCousin();
87  virtual bool hasPreviousCousin();
88  virtual void toPreviousCousin();
89  virtual int getLevel();
90  virtual uluint32 getType();
91  virtual bool isAtEnd() const;
92  virtual bool isAtBeginning() const;
93  virtual bool isInFirstTree() const;
94  virtual bool isInLastTree() const;
95  virtual ULString getIndexKey();
96  virtual const ULLanguage& getLanguage() const;
97  virtual const ULLanguage& getSearchLanguage() const;
98  virtual const ULLanguage& getTranslationLanguage() const;
99 
100 private:
101  ULDictionaryDataSourceIterator *dictionaryDataSourceIterator;
102 };
103 
104 #endif
105