BitMagic-C++
bvsetalgebra.cpp File Reference

Example: algebra of sets operations. More...

#include <assert.h>
#include <iostream>
#include <vector>
#include "bm.h"
#include "bmalgo.h"
#include "bmserial.h"
#include "bmaggregator.h"
#include "bmundef.h"
Include dependency graph for bvsetalgebra.cpp:

Go to the source code of this file.

Functions

static void print_bvector (const bm::bvector<> &bv)
static void make_BLOB (vector< unsigned char > &target_buf, bm::bvector<> &bv)
static void DemoOR ()
static void DemoAND ()
static void DemoXOR ()
static void DemoSUB ()
static void DemoAND_OR ()
static void DemoINV ()
static void DemoAND_SUB ()
int main (void)

Detailed Description

Example: algebra of sets operations.

Definition in file bvsetalgebra.cpp.

Function Documentation

◆ DemoAND()

◆ DemoAND_OR()

◆ DemoAND_SUB()

◆ DemoINV()

void DemoINV ( )
static
Examples
bvsetalgebra.cpp.

Definition at line 603 of file bvsetalgebra.cpp.

References bm::bvector< Alloc >::invert(), print_bvector(), and bm::bvector< Alloc >::resize().

Referenced by main().

◆ DemoOR()

◆ DemoSUB()

◆ DemoXOR()

◆ main()

int main ( void )

Definition at line 747 of file bvsetalgebra.cpp.

References DemoAND(), DemoAND_OR(), DemoAND_SUB(), DemoINV(), DemoOR(), DemoSUB(), and DemoXOR().

◆ make_BLOB()

void make_BLOB ( vector< unsigned char > & target_buf,
bm::bvector<> & bv )
static

◆ print_bvector()