From 640154682b767ec19cb9ac3972118c10bba8e780 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 19 Oct 2007 15:54:49 +0000 Subject: As long as the Bu::Hash::iterator was aware that it was finished or not, I thought I would write an accessor for that. Also, I added a public copy constructor, it only makes sense. --- src/hash.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/hash.h b/src/hash.h index be57786..04f2657 100644 --- a/src/hash.h +++ b/src/hash.h @@ -507,6 +507,18 @@ namespace Bu bool bFinished; public: + iterator( const iterator &i ) : + hsh( i.hsh ), + nPos( i.nPos ), + bFinished( i.bFinished ) + { + } + + bool isActive() + { + return !bFinished; + } + /** * Iterator incrementation operator. Move the iterator forward. */ -- cgit v1.2.3