aboutsummaryrefslogtreecommitdiff
path: root/src/set.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-09-24 05:52:36 +0000
committerMike Buland <eichlan@xagasoft.com>2008-09-24 05:52:36 +0000
commit6119b465b19e9be095971a33c63b0fa9a0e8a224 (patch)
tree3dafeb91d18290790417477939179526a27de38b /src/set.h
parent5aec71241c874a2249c14025a7df1eddc1c14654 (diff)
downloadlibbu++-6119b465b19e9be095971a33c63b0fa9a0e8a224.tar.gz
libbu++-6119b465b19e9be095971a33c63b0fa9a0e8a224.tar.bz2
libbu++-6119b465b19e9be095971a33c63b0fa9a0e8a224.tar.xz
libbu++-6119b465b19e9be095971a33c63b0fa9a0e8a224.zip
Wow, I realized that the Bu::Array class wasn't finished, and went ahead and
wrote it, it's pretty feature complete, index, append, iterators. You can't delete anything yet, exactly, but that's tricky in an array anyway, basically you just want to be able to remove elements from the end, and that's halfway there. Also, fixed some documentation and minor issues in Bu::Set, and made the Bu::Archive include fewer other classes while still defining archive oprators for them. I think I may yet move those into the headers for the classes that are being stored instead, makes a little more sense. I also would like to move the Exception classes out of the exceptions.h file and into the appropriate class' files'. There still should probably be a couple of general ones in there, or maybe just in exceptionbase.h, we'll see.
Diffstat (limited to 'src/set.h')
-rw-r--r--src/set.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/set.h b/src/set.h
index 7dfa191..42f9eb8 100644
--- a/src/set.h
+++ b/src/set.h
@@ -16,8 +16,6 @@
16#include <utility> 16#include <utility>
17#include "bu/exceptionbase.h" 17#include "bu/exceptionbase.h"
18#include "bu/list.h" 18#include "bu/list.h"
19///#include "archival.h"
20///#include "archive.h"
21 19
22#define bitsToBytes( n ) (n/32+(n%32>0 ? 1 : 0)) 20#define bitsToBytes( n ) (n/32+(n%32>0 ? 1 : 0))
23 21
@@ -355,7 +353,7 @@ namespace Bu
355 { 353 {
356 if( &hsh != &oth.hsh ) 354 if( &hsh != &oth.hsh )
357 throw SetException( 355 throw SetException(
358 "Cannot mix iterators from different hash objects."); 356 "Cannot mix iterators from different set objects.");
359 nPos = oth.nPos; 357 nPos = oth.nPos;
360 bFinished = oth.bFinished; 358 bFinished = oth.bFinished;
361 } 359 }
@@ -371,7 +369,7 @@ namespace Bu
371 } iterator; 369 } iterator;
372 370
373 /** 371 /**
374 * Iteration structure for iterating through the hash (const). 372 * Iteration structure for iterating through the set (const).
375 */ 373 */
376 typedef struct const_iterator 374 typedef struct const_iterator
377 { 375 {