Classes | Namespaces | Typedefs | Functions

bitfield.h File Reference

This file contains the definition of a bitfield class which works an array of bits. More...

#include "chomp/system/config.h"
#include <iostream>
#include <cstdlib>

Go to the source code of this file.

Classes

class  chomp::homology::BitField
 This class defines a bit field that is part of some larger array or that uses an allocated piece of memory. More...
class  chomp::homology::SetOfBitFields
 This class defines a set of bit fields of the same length which are to be stored in a contiguous piece of memory to avoid multiple memory allocation/deallocation. More...

Namespaces

namespace  chomp
 

This namespace contains the entire CHomP library interface.


namespace  chomp::homology
 

This namespace contains the core of the homology computation procedures and related classes and templates contained in the CHomP C++ library.


Typedefs

typedef BitField chomp::homology::bitfield
 A lower-case version of the name of a bit field [deprecated].
typedef SetOfBitFields chomp::homology::bitfieldset
 A lower-case version of the name of a bit field set [deprecated].

Functions

void chomp::homology::int2bits (int bits, int_t length, BitField &field)
int chomp::homology::bits2int (const BitField &field, int_t length)

Detailed Description

This file contains the definition of a bitfield class which works an array of bits.

The functionality of this class is very limited and it is optimized for the specific application in the homology computation algorithms.

Note that memory allocation and deallocation, as well as remembering the length of the bitfield is the responsibility of the code which uses the bitfield, the class bitfield doesn't take care of these issues.

Author:
Pawel Pilarczyk

Definition in file bitfield.h.