|
BitMagic-C++
|
Example: Succinct vector searches: GT, GE, LT, LE, RANGE[from..to]. More...
#include <assert.h>#include <stdlib.h>#include <iostream>#include <vector>#include <utility>#include "bm.h"#include "bmsparsevec.h"#include "bmsparsevec_algo.h"#include "bmundef.h"
Go to the source code of this file.
Typedefs | |
| typedef bm::sparse_vector< unsigned, bm::bvector<> > | svector_u32 |
| typedef bm::sparse_vector< int, bm::bvector<> > | svector_i32 |
Functions | |
| template<typename SV, typename BV> | |
| void | PrintResults (const SV &sv, const BV &bv) |
| int | main (void) |
Example: Succinct vector searches: GT, GE, LT, LE, RANGE[from..to].
Definition in file svsample10.cpp.
| typedef bm::sparse_vector<int, bm::bvector<> > svector_i32 |
Definition at line 51 of file svsample10.cpp.
| typedef bm::sparse_vector<unsigned, bm::bvector<> > svector_u32 |
Definition at line 50 of file svsample10.cpp.
| int main | ( | void | ) |
Definition at line 74 of file svsample10.cpp.
References bm::bvector< Alloc >::bit_and(), bm::bvector< Alloc >::bit_or(), bm::sparse_vector_scanner< SV, S_FACTOR >::find_ge(), bm::sparse_vector_scanner< SV, S_FACTOR >::find_gt(), bm::sparse_vector_scanner< SV, S_FACTOR >::find_le(), bm::sparse_vector_scanner< SV, S_FACTOR >::find_lt(), bm::sparse_vector_scanner< SV, S_FACTOR >::find_range(), bm::sparse_vector< Val, BV >::get_back_inserter(), PrintResults(), and bm::use_null.
| void PrintResults | ( | const SV & | sv, |
| const BV & | bv ) |