Public Member Functions
cvflann::DynamicBitset Class Reference

#include <dynamic_bitset.h>

List of all members.

Public Member Functions

 DynamicBitset ()
 DynamicBitset (size_t sz)
void clear ()
bool empty () const
 checks if the bitset is empty
void reset ()
void reset (size_t index)
 set one bit to 0
void reset_block (size_t index)
 sets a specific bit to 0, and more bits too This function is useful when resetting a given set of bits so that the whole bitset ends up being 0: if that's the case, we don't care about setting other bits to 0
void resize (size_t sz)
void set (size_t index)
size_t size () const
bool test (size_t index) const

Detailed Description

Class re-implementing the boost version of it This helps not depending on boost, it also does not do the bound checks and has a way to reset a block for speed


Constructor & Destructor Documentation

Parameters:
defaultconstructor
Parameters:
onlyconstructor we use in our code
thesize of the bitset (in bits)

Member Function Documentation

Sets all the bits to 0

checks if the bitset is empty

Returns:
true if the bitset is empty
Parameters:
setall the bits to 0

set one bit to 0

Parameters:

sets a specific bit to 0, and more bits too This function is useful when resetting a given set of bits so that the whole bitset ends up being 0: if that's the case, we don't care about setting other bits to 0

Parameters:
Parameters:
resizethe bitset so that it contains at least size bits
size
void cvflann::DynamicBitset::set ( size_t  index)
Parameters:
seta bit to true
indexthe index of the bit to set to 1
size_t cvflann::DynamicBitset::size ( ) const
Parameters:
givesthe number of contained bits
bool cvflann::DynamicBitset::test ( size_t  index) const
Parameters:
checkif a bit is set
indexthe index of the bit to check
Returns:
true if the bit is set

The documentation for this class was generated from the following file: