OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cvflann::DynamicBitset Class Reference

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. More...

#include <opencv2/flann/dynamic_bitset.h>

Public Member Functions

 DynamicBitset ()
 default constructor More...
 
 DynamicBitset (size_t sz)
 only constructor we use in our code More...
 
void clear ()
 Sets all the bits to 0. More...
 
bool empty () const
 checks if the bitset is empty More...
 
void reset ()
 set all the bits to 0 More...
 
void reset (size_t index)
 set one bit to 0 More...
 
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 More...
 
void resize (size_t sz)
 resize the bitset so that it contains at least sz bits More...
 
void set (size_t index)
 set a bit to true More...
 
size_t size () const
 gives the number of contained bits More...
 
bool test (size_t index) const
 check if a bit is set More...
 

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

◆ DynamicBitset() [1/2]

cvflann::DynamicBitset::DynamicBitset ( )
inline

default constructor

◆ DynamicBitset() [2/2]

cvflann::DynamicBitset::DynamicBitset ( size_t  sz)
inline

only constructor we use in our code

Parameters
szthe size of the bitset (in bits)

References reset(), and resize().

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void cvflann::DynamicBitset::clear ( )
inline

Sets all the bits to 0.

◆ empty()

bool cvflann::DynamicBitset::empty ( ) const
inline

checks if the bitset is empty

Returns
true if the bitset is empty

◆ reset() [1/2]

void cvflann::DynamicBitset::reset ( )
inline

set all the bits to 0

Referenced by DynamicBitset().

Here is the caller graph for this function:

◆ reset() [2/2]

void cvflann::DynamicBitset::reset ( size_t  index)
inline

set one bit to 0

Parameters
index

◆ reset_block()

void cvflann::DynamicBitset::reset_block ( size_t  index)
inline

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
index

◆ resize()

void cvflann::DynamicBitset::resize ( size_t  sz)
inline

resize the bitset so that it contains at least sz bits

Parameters
sz

Referenced by DynamicBitset().

Here is the caller graph for this function:

◆ set()

void cvflann::DynamicBitset::set ( size_t  index)
inline

set a bit to true

Parameters
indexthe index of the bit to set to 1

Referenced by cvflann::KDTreeIndex< Distance >::getParameters().

Here is the caller graph for this function:

◆ size()

size_t cvflann::DynamicBitset::size ( ) const
inline

gives the number of contained bits

◆ test()

bool cvflann::DynamicBitset::test ( size_t  index) const
inline

check if a bit is set

Parameters
indexthe index of the bit to check
Returns
true if the bit is set

Referenced by cvflann::KDTreeIndex< Distance >::getParameters().

Here is the caller graph for this function:

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