|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53927 - sandbox/bloom_filter/trunk/boost/bloom_filter
From: mikhailberis_at_[hidden]
Date: 2009-06-15 04:03:36
Author: mikhailberis
Date: 2009-06-15 04:03:34 EDT (Mon, 15 Jun 2009)
New Revision: 53927
URL: http://svn.boost.org/trac/boost/changeset/53927
Log:
Renaming Sequence to HashFunctions in the template parameters.
Text files modified:
sandbox/bloom_filter/trunk/boost/bloom_filter/bloom_filter.hpp | 12 ++++++------
sandbox/bloom_filter/trunk/boost/bloom_filter/static_bloom_filter.hpp | 14 +++++++-------
2 files changed, 13 insertions(+), 13 deletions(-)
Modified: sandbox/bloom_filter/trunk/boost/bloom_filter/bloom_filter.hpp
==============================================================================
--- sandbox/bloom_filter/trunk/boost/bloom_filter/bloom_filter.hpp (original)
+++ sandbox/bloom_filter/trunk/boost/bloom_filter/bloom_filter.hpp 2009-06-15 04:03:34 EDT (Mon, 15 Jun 2009)
@@ -20,7 +20,7 @@
template <
class Input,
- class Sequence = fusion::vector<
+ class HashFunctions = fusion::vector<
detail::default_hash<0>,
detail::default_hash<1>,
detail::default_hash<2>
@@ -34,7 +34,7 @@
private:
bitset_type bit_set;
- Sequence hash_functions;
+ HashFunctions hash_functions;
typedef typename add_reference<typename add_const<Input>::type>::type const_ref;
typedef detail::bloom_filter_internals<Input, dynamic_bitset<Block,Allocator> > base;
@@ -42,7 +42,7 @@
public:
bloom_filter(
size_t size,
- Sequence const & functions = Sequence())
+ HashFunctions const & functions = HashFunctions())
: bit_set(size, 0), hash_functions(functions)
{}
@@ -90,10 +90,10 @@
}
};
- template <class Input, class Sequence, class Block, class Allocator>
+ template <class Input, class HashFunctions, class Block, class Allocator>
inline void swap(
- bloom_filter<Input, Sequence, Block, Allocator> & left,
- bloom_filter<Input, Sequence, Block, Allocator> & right
+ bloom_filter<Input, HashFunctions, Block, Allocator> & left,
+ bloom_filter<Input, HashFunctions, Block, Allocator> & right
) {
left.swap(right);
}
Modified: sandbox/bloom_filter/trunk/boost/bloom_filter/static_bloom_filter.hpp
==============================================================================
--- sandbox/bloom_filter/trunk/boost/bloom_filter/static_bloom_filter.hpp (original)
+++ sandbox/bloom_filter/trunk/boost/bloom_filter/static_bloom_filter.hpp 2009-06-15 04:03:34 EDT (Mon, 15 Jun 2009)
@@ -24,7 +24,7 @@
template <
class Input,
size_t M,
- class Sequence = fusion::vector<
+ class HashFunctions = fusion::vector<
detail::default_hash<0>,
detail::default_hash<1>,
detail::default_hash<2>
@@ -36,7 +36,7 @@
private:
bitset_type bit_set;
- Sequence hash_functions;
+ HashFunctions hash_functions;
typedef typename add_reference<typename add_const<Input>::type>::type const_ref;
typedef detail::bloom_filter_internals<Input, std::bitset<M> > base;
@@ -51,12 +51,12 @@
static_bloom_filter(
bitset_type const & initial_state = bitset_type(),
- Sequence const & hash_functions = Sequence())
+ HashFunctions const & hash_functions = HashFunctions())
: bit_set(initial_state), hash_functions(hash_functions)
{}
explicit static_bloom_filter(
- Sequence const & hash_functions
+ HashFunctions const & hash_functions
)
: bit_set(), hash_functions(hash_functions)
{}
@@ -118,10 +118,10 @@
}
};
- template <class Input, size_t M, class Sequence>
+ template <class Input, size_t M, class HashFunctions>
inline void swap(
- static_bloom_filter<Input, M, Sequence> & left,
- static_bloom_filter<Input, M, Sequence> & right) {
+ static_bloom_filter<Input, M, HashFunctions> & left,
+ static_bloom_filter<Input, M, HashFunctions> & right) {
left.swap(right);
}
}
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