BitMagic-C++
|
Example: algebra of sets operations. More...
#include <iostream>
#include <vector>
#include "bm.h"
#include "bmalgo.h"
#include "bmserial.h"
#include "bmaggregator.h"
Go to the source code of this file.
Functions | |
static void | print_bvector (const bm::bvector<> &bv) |
static void | make_BLOB (vector< unsigned char > &target_buf, bm::bvector<> &bv) |
static void | DemoOR () |
static void | DemoAND () |
static void | DemoXOR () |
static void | DemoSUB () |
static void | DemoINV () |
static void | DemoAND_SUB () |
int | main (void) |
Example: algebra of sets operations.
Definition in file bvsetalgebra.cpp.
|
static |
Definition at line 221 of file bvsetalgebra.cpp.
References bm::aggregator< BV >::add(), bm::bvector< Alloc >::bit_and(), bm::BM_AND, bm::BM_SORTED, bm::aggregator< BV >::combine_and(), bm::combine_and(), bm::bvector< Alloc >::combine_operation(), bm::operation_deserializer< BV >::deserialize(), bm::bvector< Alloc >::keep(), make_BLOB(), print_bvector(), bm::aggregator< BV >::reset(), bm::bvector< Alloc >::resize(), bm::set_AND, and bm::aggregator< BV >::set_optimization().
Referenced by main().
|
static |
Definition at line 541 of file bvsetalgebra.cpp.
References bm::aggregator< BV >::add(), bm::aggregator< BV >::combine_and_sub(), print_bvector(), bm::aggregator< BV >::reset(), and bm::aggregator< BV >::set_optimization().
Referenced by main().
|
static |
Definition at line 513 of file bvsetalgebra.cpp.
References bm::bvector< Alloc >::invert(), print_bvector(), and bm::bvector< Alloc >::resize().
Referenced by main().
|
static |
Definition at line 96 of file bvsetalgebra.cpp.
References bm::aggregator< BV >::add(), bm::bvector< Alloc >::bit_or(), bm::BM_OR, bm::BM_SORTED, bm::bvector< Alloc >::combine_operation(), bm::aggregator< BV >::combine_or(), bm::combine_or(), bm::operation_deserializer< BV >::deserialize(), make_BLOB(), bm::bvector< Alloc >::merge(), print_bvector(), bm::aggregator< BV >::reset(), bm::bvector< Alloc >::resize(), bm::bvector< Alloc >::set(), bm::aggregator< BV >::set_optimization(), and bm::set_OR.
Referenced by main().
|
static |
Definition at line 401 of file bvsetalgebra.cpp.
References bm::aggregator< BV >::add(), bm::bvector< Alloc >::bit_sub(), bm::BM_SORTED, bm::BM_SUB, bm::bvector< Alloc >::clear(), bm::aggregator< BV >::combine_and_sub(), bm::bvector< Alloc >::combine_operation(), bm::combine_sub(), bm::operation_deserializer< BV >::deserialize(), make_BLOB(), print_bvector(), bm::aggregator< BV >::reset(), bm::bvector< Alloc >::resize(), bm::aggregator< BV >::set_optimization(), and bm::set_SUB.
Referenced by main().
|
static |
Definition at line 330 of file bvsetalgebra.cpp.
References bm::bvector< Alloc >::bit_xor(), bm::BM_XOR, bm::bvector< Alloc >::combine_operation(), bm::combine_xor(), bm::operation_deserializer< BV >::deserialize(), make_BLOB(), print_bvector(), bm::bvector< Alloc >::resize(), and bm::set_XOR.
Referenced by main().
int main | ( | void | ) |
Definition at line 579 of file bvsetalgebra.cpp.
References DemoAND(), DemoAND_SUB(), DemoINV(), DemoOR(), DemoSUB(), and DemoXOR().
|
static |
Definition at line 77 of file bvsetalgebra.cpp.
References BM_DECLARE_TEMP_BLOCK, bm::bvector< Alloc >::optimize(), bm::serializer< BV >::serialize(), and bm::serializer< BV >::set_compression_level().
Referenced by DemoAND(), DemoOR(), DemoSUB(), and DemoXOR().
|
static |
Definition at line 64 of file bvsetalgebra.cpp.
References bm::bvector< Alloc >::first(), bm::bvector< Alloc >::size(), and bm::bvector< Alloc >::iterator_base::valid().
Referenced by DemoAND(), DemoAND_SUB(), DemoINV(), DemoOR(), DemoSUB(), and DemoXOR().