diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-10-19 15:54:49 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-10-19 15:54:49 +0000 |
commit | 640154682b767ec19cb9ac3972118c10bba8e780 (patch) | |
tree | 605176e70eaf7e0af17801f391e2c1e33242ad69 | |
parent | c88dc841d0d270c73a2f517f667d1483a2f31245 (diff) | |
download | libbu++-640154682b767ec19cb9ac3972118c10bba8e780.tar.gz libbu++-640154682b767ec19cb9ac3972118c10bba8e780.tar.bz2 libbu++-640154682b767ec19cb9ac3972118c10bba8e780.tar.xz libbu++-640154682b767ec19cb9ac3972118c10bba8e780.zip |
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.
-rw-r--r-- | src/hash.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -507,6 +507,18 @@ namespace Bu | |||
507 | bool bFinished; | 507 | bool bFinished; |
508 | 508 | ||
509 | public: | 509 | public: |
510 | iterator( const iterator &i ) : | ||
511 | hsh( i.hsh ), | ||
512 | nPos( i.nPos ), | ||
513 | bFinished( i.bFinished ) | ||
514 | { | ||
515 | } | ||
516 | |||
517 | bool isActive() | ||
518 | { | ||
519 | return !bFinished; | ||
520 | } | ||
521 | |||
510 | /** | 522 | /** |
511 | * Iterator incrementation operator. Move the iterator forward. | 523 | * Iterator incrementation operator. Move the iterator forward. |
512 | */ | 524 | */ |