Open Babel  3.0
Classes | Namespaces | Macros | Functions
bitvec.h File Reference
#include <openbabel/babelconfig.h>
#include <vector>
#include <string>
#include <inttypes.h>

Go to the source code of this file.

Classes

class  OBBitVec
 

Namespaces

 OpenBabel
 

Macros

#define SETWORD   32
 
#define WORDROLL   5
 
#define WORDMASK   31
 
#define WORDSIZE_OF_BITSIZE(bit_size)   ( ( bit_size >> WORDROLL ) + (( bit_size & WORDMASK ) ? 1 : 0) )
 
#define STARTWORDS   10
 

Functions

double Tanimoto (const OBBitVec &bv1, const OBBitVec &bv2)
 

Detailed Description

Fast and efficient bitstring class.

Macro Definition Documentation

◆ SETWORD

#define SETWORD   32

◆ WORDROLL

#define WORDROLL   5

◆ WORDMASK

#define WORDMASK   31

◆ WORDSIZE_OF_BITSIZE

#define WORDSIZE_OF_BITSIZE (   bit_size)    ( ( bit_size >> WORDROLL ) + (( bit_size & WORDMASK ) ? 1 : 0) )

Referenced by OBBitVec::Resize().

◆ STARTWORDS

#define STARTWORDS   10