BitMagicC++Library
Functions | Variables
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::serializer< bm::bvector<> > &bvs, bm::bvector<> &bv)
 
int main (void)
 

Variables

const unsigned MAX_VALUE = 1000000
 

Function Documentation

◆ fill_bvector()

void fill_bvector ( bm::bvector<> *  bv)
Examples:
sample4.cpp.

Definition at line 47 of file sample4.cpp.

References MAX_VALUE, and bm::bvector< Alloc >::set_bit().

Referenced by main().

◆ main()

int main ( void  )

◆ print_statistics()

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

◆ serialize_bvector()

unsigned char* serialize_bvector ( bm::serializer< bm::bvector<> > &  bvs,
bm::bvector<> &  bv 
)

Variable Documentation

◆ MAX_VALUE

const unsigned MAX_VALUE = 1000000
Examples:
sample4.cpp.

Definition at line 41 of file sample4.cpp.

Referenced by fill_bvector().