3 #ifndef LAST_MODIFIED_INDEX_H
4 #define LAST_MODIFIED_INDEX_H
7 #include "NodeListener.h"
8 #include "TwoKeyAVLTree.h"
11 class LastModifiedIndex
: public Index
, private NodeListener
{
13 LastModifiedIndex(Volume
*volume
);
14 virtual ~LastModifiedIndex();
16 virtual int32
CountEntries() const;
18 virtual status_t
Changed(Node
*node
, time_t oldModified
);
21 virtual void NodeAdded(Node
*node
);
22 virtual void NodeRemoved(Node
*node
);
25 virtual AbstractIndexEntryIterator
*InternalGetIterator();
26 virtual AbstractIndexEntryIterator
*InternalFind(const uint8
*key
,
33 friend class Iterator
;
36 void _AddIterator(Iterator
*iterator
);
37 void _RemoveIterator(Iterator
*iterator
);
41 IteratorList
*fIterators
;
44 #endif // LAST_MODIFIED_INDEX_H