BitMagic-C++
Macros | Typedefs | Functions | Variables
sample12.cpp File Reference

Example: bvector<> analysis of bit setting methods. More...

#include <iostream>
#include <vector>
#include "bm.h"
#include "bmalgo.h"
#include "bmtimer.h"
#include "bmundef.h"
Include dependency graph for sample12.cpp:

Go to the source code of this file.

Macros

#define BM64ADDR
 

Typedefs

typedef bm::bvector ::size_type bm_size_type
 

Functions

template<class T >
void PrintContainer (T first, T last)
  More...
 
static void generate_test_vectors (std::vector< bm_size_type > &v1, std::vector< bm_size_type > &v2, std::vector< bm_size_type > &v3)
  More...
 
static void bv_set_bit_test ()
  More...
 
static void bv_set_bit_no_check_test ()
  More...
 
static void combine_or_test (std::vector< bm_size_type > &v1, std::vector< bm_size_type > &v2, std::vector< bm_size_type > &v3)
  More...
 
static void bvector_bulk_set_test (std::vector< bm_size_type > &v1, std::vector< bm_size_type > &v2, std::vector< bm_size_type > &v3)
  More...
 
int main (void)
  More...
 

Variables

bm::chrono_taker ::duration_map_type timing_map
  More...
 
const unsigned benchmark_count = 1000
  More...
 
bm_size_type vector_max = 4000000
  More...
 

Detailed Description

Example: bvector<> analysis of bit setting methods.

Definition in file sample12.cpp.