Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73228 - sandbox/bloom_filter/trunk/libs/bloom_filter/example
From: cpp.cabrera_at_[hidden]
Date: 2011-07-19 02:17:44


Author: alejandro
Date: 2011-07-19 02:17:43 EDT (Tue, 19 Jul 2011)
New Revision: 73228
URL: http://svn.boost.org/trac/boost/changeset/73228

Log:
Updated examples to compile under recent header changes.
Text files modified:
   sandbox/bloom_filter/trunk/libs/bloom_filter/example/advanced_bloom.cpp | 6 +++---
   sandbox/bloom_filter/trunk/libs/bloom_filter/example/basic_bloom.cpp | 6 +++---
   sandbox/bloom_filter/trunk/libs/bloom_filter/example/custom_hash.cpp | 8 ++++----
   sandbox/bloom_filter/trunk/libs/bloom_filter/example/string_bloom.cpp | 6 +++---
   sandbox/bloom_filter/trunk/libs/bloom_filter/example/url_bloom.cpp | 6 +++---
   5 files changed, 16 insertions(+), 16 deletions(-)

Modified: sandbox/bloom_filter/trunk/libs/bloom_filter/example/advanced_bloom.cpp
==============================================================================
--- sandbox/bloom_filter/trunk/libs/bloom_filter/example/advanced_bloom.cpp (original)
+++ sandbox/bloom_filter/trunk/libs/bloom_filter/example/advanced_bloom.cpp 2011-07-19 02:17:43 EDT (Tue, 19 Jul 2011)
@@ -11,9 +11,9 @@
 //////////////////////////////////////////////////////////////////////////////
 
 // advanced Boost.BloomFilter program
-#include <boost/bloom_filter/bloom.hpp>
+#include <boost/bloom_filter/basic_bloom_filter.hpp>
 #include <iostream>
-using namespace boost::bloom_filter;
+using namespace boost::bloom_filters;
 using namespace std;
 
 int main () {
@@ -23,7 +23,7 @@
   static const size_t CONTAINS_MAX = 10000;
   static const size_t NUM_BITS = 8192;
 
- bloom_filter<int, NUM_BITS, HashFns> bloom;
+ basic_bloom_filter<int, NUM_BITS, HashFns> bloom;
   size_t collisions = 0;
 
   cout << "bloom filter storage size: "

Modified: sandbox/bloom_filter/trunk/libs/bloom_filter/example/basic_bloom.cpp
==============================================================================
--- sandbox/bloom_filter/trunk/libs/bloom_filter/example/basic_bloom.cpp (original)
+++ sandbox/bloom_filter/trunk/libs/bloom_filter/example/basic_bloom.cpp 2011-07-19 02:17:43 EDT (Tue, 19 Jul 2011)
@@ -11,9 +11,9 @@
 //////////////////////////////////////////////////////////////////////////////
 
 // introductory Boost.BloomFilter program
-#include <boost/bloom_filter/bloom.hpp>
+#include <boost/bloom_filter/basic_bloom_filter.hpp>
 #include <iostream>
-using namespace boost::bloom_filter;
+using namespace boost::bloom_filters;
 using namespace std;
 
 int main () {
@@ -21,7 +21,7 @@
   static const size_t CONTAINS_MAX = 10000;
   static const size_t NUM_BITS = 8192;
 
- bloom_filter<int, NUM_BITS> bloom;
+ basic_bloom_filter<int, NUM_BITS> bloom;
   size_t collisions = 0;
 
   for (size_t i = 0; i < INSERT_MAX; ++i) {

Modified: sandbox/bloom_filter/trunk/libs/bloom_filter/example/custom_hash.cpp
==============================================================================
--- sandbox/bloom_filter/trunk/libs/bloom_filter/example/custom_hash.cpp (original)
+++ sandbox/bloom_filter/trunk/libs/bloom_filter/example/custom_hash.cpp 2011-07-19 02:17:43 EDT (Tue, 19 Jul 2011)
@@ -12,11 +12,11 @@
 
 // example demonstrating how to overload default hash function
 // in order to support user-defined type
-#include <boost/bloom_filter/bloom.hpp>
+#include <boost/bloom_filter/basic_bloom_filter.hpp>
 #include <sstream>
 #include <string>
 #include <iostream>
-using namespace boost::bloom_filter;
+using namespace boost::bloom_filters;
 using namespace std;
 
 class URL {
@@ -34,7 +34,7 @@
 // provide an overload for your class
 // alternatively, implement own Hasher that can handle your type
 namespace boost {
- namespace bloom_filter {
+ namespace bloom_filters {
     template <size_t Seed>
     struct boost_hash<URL, Seed> {
       size_t operator()(const URL& t) {
@@ -63,7 +63,7 @@
   static const size_t CONTAINS_MAX = 10000;
   static const size_t NUM_BITS = 32768; // 8KB
 
- bloom_filter<URL, NUM_BITS> bloom;
+ basic_bloom_filter<URL, NUM_BITS> bloom;
   size_t collisions = 0;
 
   for (size_t i = 0; i < INSERT_MAX; ++i) {

Modified: sandbox/bloom_filter/trunk/libs/bloom_filter/example/string_bloom.cpp
==============================================================================
--- sandbox/bloom_filter/trunk/libs/bloom_filter/example/string_bloom.cpp (original)
+++ sandbox/bloom_filter/trunk/libs/bloom_filter/example/string_bloom.cpp 2011-07-19 02:17:43 EDT (Tue, 19 Jul 2011)
@@ -11,11 +11,11 @@
 //////////////////////////////////////////////////////////////////////////////
 
 // introductory Boost.BloomFilter program
-#include <boost/bloom_filter/bloom.hpp>
+#include <boost/bloom_filter/basic_bloom_filter.hpp>
 #include <sstream>
 #include <string>
 #include <iostream>
-using namespace boost::bloom_filter;
+using namespace boost::bloom_filters;
 using namespace std;
 
 const string gen_string(const size_t num)
@@ -35,7 +35,7 @@
   static const size_t CONTAINS_MAX = 10000;
   static const size_t NUM_BITS = 32768; // 8KB
 
- bloom_filter<string, NUM_BITS> bloom;
+ basic_bloom_filter<string, NUM_BITS> bloom;
   size_t collisions = 0;
 
   for (size_t i = 0; i < INSERT_MAX; ++i) {

Modified: sandbox/bloom_filter/trunk/libs/bloom_filter/example/url_bloom.cpp
==============================================================================
--- sandbox/bloom_filter/trunk/libs/bloom_filter/example/url_bloom.cpp (original)
+++ sandbox/bloom_filter/trunk/libs/bloom_filter/example/url_bloom.cpp 2011-07-19 02:17:43 EDT (Tue, 19 Jul 2011)
@@ -11,11 +11,11 @@
 //////////////////////////////////////////////////////////////////////////////
 
 // introductory Boost.BloomFilter program
-#include <boost/bloom_filter/bloom.hpp>
+#include <boost/bloom_filter/basic_bloom_filter.hpp>
 #include <sstream>
 #include <string>
 #include <iostream>
-using namespace boost::bloom_filter;
+using namespace boost::bloom_filters;
 using namespace std;
 
 const string gen_url(const size_t num)
@@ -37,7 +37,7 @@
   static const size_t CONTAINS_MAX = 10000;
   static const size_t NUM_BITS = 32768; // 8KB
 
- bloom_filter<string, NUM_BITS> bloom;
+ basic_bloom_filter<string, NUM_BITS> bloom;
   size_t collisions = 0;
 
   for (size_t i = 0; i < INSERT_MAX; ++i) {


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