BitMagic-C++: sample14.cpp File Reference

BitMagic-C++

Functions | Variables
sample14.cpp File Reference

Example: bvector<> set operations on serialized/compressed BLOBs. More...

`#include <stdlib.h>`
`#include <iostream>`
`#include <vector>`
`#include "bm.h"`
`#include "bmserial.h"`
Include dependency graph for sample14.cpp:

Go to the source code of this file.

## Functions
static void | fill_bvector (bm::bvector<> *bv)
int | main (void)

## Variables
const unsigned | MAX_VALUE = 1000000

## Detailed Description

Example: bvector<> set operations on serialized/compressed BLOBs.

Definition in file sample14.cpp.

## Function Documentation

## ◆ fill_bvector()

static void fill_bvector | ( | bm::bvector<> * | bv | ) |
| static

Examples
  sample14.cpp.

Definition at line 45 of file sample14.cpp.

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

Referenced by main().

## ◆ main()

int main | ( | void |  | ) |

Examples
  sample14.cpp.

Definition at line 57 of file sample14.cpp.

References BM_DECLARE_TEMP_BLOCK, bm::bvector< Alloc >::count(), bm::operation_deserializer< BV >::deserialize(), bm::deserialize(), bm::bvector< Alloc >::equal(), fill_bvector(), bm::bvector< Alloc >::optimize(), bm::serializer< BV >::serialize(), bm::set_AND, bm::serializer< BV >::set_compression_level(), bm::set_COUNT_SUB_AB, and bm::set_SUB.

## Variable Documentation

## ◆ MAX_VALUE

const unsigned MAX_VALUE = 1000000

Examples
  sample14.cpp.

Definition at line 42 of file sample14.cpp.

Referenced by fill_bvector().