|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71985 - sandbox/bloom_filter/branches/prototype
From: cpp.cabrera_at_[hidden]
Date: 2011-05-16 12:45:40
Author: alejandro
Date: 2011-05-16 12:45:40 EDT (Mon, 16 May 2011)
New Revision: 71985
URL: http://svn.boost.org/trac/boost/changeset/71985
Log:
Added declarations for various functions to implement later today.
- operator&, operator|, operator&=, operator|=, operator=
- copy constructor
- move constructor
Text files modified:
sandbox/bloom_filter/branches/prototype/bloom.hpp | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
Modified: sandbox/bloom_filter/branches/prototype/bloom.hpp
==============================================================================
--- sandbox/bloom_filter/branches/prototype/bloom.hpp (original)
+++ sandbox/bloom_filter/branches/prototype/bloom.hpp 2011-05-16 12:45:40 EDT (Mon, 16 May 2011)
@@ -53,6 +53,7 @@
{
}
+ // \todo: need to add compiler check for constexpr
constexpr size_t size() const {
return Size;
}
@@ -75,6 +76,26 @@
bits.reset();
}
+ bloom_filter(const bloom_filter&);
+ bloom_filter& operator=(const bloom_filter& other);
+
+ // \todo: need to add compiler check for rvalue references
+ bloom_filter(const bloom_filter&&);
+ bloom_filter& operator=(const bloom_filter&& other);
+
+ bloom_filter& operator&=(const bloom_filter& rhs);
+ bloom_filter& operator|=(const bloom_filter& rhs);
+
+ template<class _T, size_t _Size, class _HashFunctions>
+ friend bloom_filter<_T, _Size, _HashFunctions>&
+ operator|(const bloom_filter<_T, _Size, _HashFunctions>& lhs,
+ const bloom_filter<_T, _Size, _HashFunctions>& rhs);
+
+ template<class _T, size_t _Size, class _HashFunctions>
+ friend bloom_filter<_T, _Size, _HashFunctions>&
+ operator&(const bloom_filter<_T, _Size, _HashFunctions>& lhs,
+ const bloom_filter<_T, _Size, _HashFunctions>& rhs);
+
private:
std::bitset<Size> bits;
};
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