aboutsummaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-04 23:49:26 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-04 23:49:26 +0000
commitb7e40536df9bf9bbad3b2b7a59f33ebad25fc981 (patch)
tree1555062abe0e01e8d6d5b9b63ba81ab3c3d0168c /src/hash.h
parent326125aee0b8cd807a6a1d158398078ff6bfb1e1 (diff)
downloadlibbu++-b7e40536df9bf9bbad3b2b7a59f33ebad25fc981.tar.gz
libbu++-b7e40536df9bf9bbad3b2b7a59f33ebad25fc981.tar.bz2
libbu++-b7e40536df9bf9bbad3b2b7a59f33ebad25fc981.tar.xz
libbu++-b7e40536df9bf9bbad3b2b7a59f33ebad25fc981.zip
Added rudimentary object tracking to Archive, and rearranged the hash and
archive dependancies a little. I'll add docs for object tracking later...
Diffstat (limited to 'src/hash.h')
-rw-r--r--src/hash.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hash.h b/src/hash.h
index dc097df..f25c258 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -8,8 +8,8 @@
8#include <list> 8#include <list>
9#include <utility> 9#include <utility>
10#include "exceptionbase.h" 10#include "exceptionbase.h"
11#include "archival.h" 11///#include "archival.h"
12#include "archive.h" 12///#include "archive.h"
13 13
14#define bitsToBytes( n ) (n/32+(n%32>0 ? 1 : 0)) 14#define bitsToBytes( n ) (n/32+(n%32>0 ? 1 : 0))
15 15
@@ -697,6 +697,7 @@ namespace Bu
697 template<> uint32_t __calcHashCode<std::string>( const std::string &k ); 697 template<> uint32_t __calcHashCode<std::string>( const std::string &k );
698 template<> bool __cmpHashKeys<std::string>( const std::string &a, const std::string &b ); 698 template<> bool __cmpHashKeys<std::string>( const std::string &a, const std::string &b );
699 699
700 /*
700 template<typename key, typename value> 701 template<typename key, typename value>
701 Archive &operator<<( Archive &ar, Hash<key,value> &h ) 702 Archive &operator<<( Archive &ar, Hash<key,value> &h )
702 { 703 {
@@ -725,7 +726,7 @@ namespace Bu
725 } 726 }
726 727
727 return ar; 728 return ar;
728 } 729 }*/
729 730
730 /* 731 /*
731 template<typename key, typename value> 732 template<typename key, typename value>