Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals | Examples

sample4.cpp File Reference

#include <stdlib.h>
#include <iostream>
#include "bm.h"
#include "bmserial.h"

Include dependency graph for sample4.cpp:

Go to the source code of this file.

Functions

void fill_bvector (bm::bvector<> *bv)
void print_statistics (const bm::bvector<> &bv)
unsigned char * serialize_bvector (bm::bvector<> &bv)
int main (void)

Variables

const unsigned MAX_VALUE = 1000000


Function Documentation

void fill_bvector bm::bvector<> *  bv  ) 
 

Definition at line 52 of file sample4.cpp.

References MAX_VALUE.

int main void   ) 
 

Definition at line 105 of file sample4.cpp.

References fill_bvector(), bm::bvector< Alloc, MS >::optimize(), print_statistics(), serialize_bvector(), and bm::bvector< Alloc, MS >::set_new_blocks_strat().

void print_statistics const bm::bvector<> &  bv  ) 
 

Definition at line 64 of file sample4.cpp.

unsigned char* serialize_bvector bm::bvector<> &  bv  ) 
 

Examples:
sample4.cpp.

Definition at line 77 of file sample4.cpp.

References bm::bvector< Alloc, MS >::calc_stat(), bm::bvector< Alloc, MS >::count(), and bm::bvector< Alloc, MS >::optimize().

Referenced by main().


Variable Documentation

const unsigned MAX_VALUE = 1000000
 

Definition at line 46 of file sample4.cpp.


Generated on Thu Apr 20 13:29:06 2006 for BitMagic by  doxygen 1.4.1