Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72844 - sandbox/bloom_filter/trunk/boost/bloom_filter
From: cpp.cabrera_at_[hidden]
Date: 2011-07-02 04:06:43


Author: alejandro
Date: 2011-07-02 04:06:42 EDT (Sat, 02 Jul 2011)
New Revision: 72844
URL: http://svn.boost.org/trac/boost/changeset/72844

Log:
Class dynamic_bloom_filter completed. Changed bit_capacity variable name to new_capacity in resize function for dynamic_bloom_filter. Exported HashFunctions as hash_function_type.
Text files modified:
   sandbox/bloom_filter/trunk/boost/bloom_filter/bloom.hpp | 1 +
   sandbox/bloom_filter/trunk/boost/bloom_filter/dynamic_bloom.hpp | 14 ++++++++++----
   2 files changed, 11 insertions(+), 4 deletions(-)

Modified: sandbox/bloom_filter/trunk/boost/bloom_filter/bloom.hpp
==============================================================================
--- sandbox/bloom_filter/trunk/boost/bloom_filter/bloom.hpp (original)
+++ sandbox/bloom_filter/trunk/boost/bloom_filter/bloom.hpp 2011-07-02 04:06:42 EDT (Sat, 02 Jul 2011)
@@ -40,6 +40,7 @@
     public:
       typedef T value_type;
       typedef T key_type;
+ typedef HashFunctions hash_function_type;
 
     public:
       bloom_filter() {}

Modified: sandbox/bloom_filter/trunk/boost/bloom_filter/dynamic_bloom.hpp
==============================================================================
--- sandbox/bloom_filter/trunk/boost/bloom_filter/dynamic_bloom.hpp (original)
+++ sandbox/bloom_filter/trunk/boost/bloom_filter/dynamic_bloom.hpp 2011-07-02 04:06:42 EDT (Sat, 02 Jul 2011)
@@ -117,9 +117,9 @@
         *this = tmp;
       }
 
- void resize(const size_t bit_capacity) {
+ void resize(const size_t new_capacity) {
         bits.clear();
- bits.resize(bit_capacity);
+ bits.resize(new_capacity);
       }
 
       template <typename _T, typename _HashFunctions,
@@ -129,8 +129,14 @@
 
       template <typename _T, typename _HashFunctions,
                 typename _Block, typename _Allocator>
- friend bool operator!=(const dynamic_bloom_filter<_T, _HashFunctions, _Block, _Allocator>&,
- const dynamic_bloom_filter<_T, _HashFunctions, _Block, _Allocator>&);
+ friend bool operator!=(const dynamic_bloom_filter<_T,
+ _HashFunctions,
+ _Block,
+ _Allocator>&,
+ const dynamic_bloom_filter<_T,
+ _HashFunctions,
+ _Block,
+ _Allocator>&);
 
       dynamic_bloom_filter& operator|=(const dynamic_bloom_filter& rhs) {
         assert(this->bit_capacity() == rhs.bit_capacity());


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk