MySQL 9.1.0
Source Code Documentation
Bitmap< 64 > Class Reference

#include <sql_bitmap.h>

Public Types

enum  { ALL_BITS = 64 }
 

Public Member Functions

 Bitmap ()
 
 Bitmap (uint prefix_to_set)
 
void init ()
 
void init (uint prefix_to_set)
 
uint length () const
 
void set_bit (uint n)
 
void clear_bit (uint n)
 
void set_prefix (uint n)
 
void set_all ()
 
void clear_all ()
 
void intersect (const Bitmap< 64 > &map2)
 
void intersect (ulonglong map2)
 
void intersect_extended (ulonglong map2)
 
void subtract (const Bitmap< 64 > &map2)
 
void merge (const Bitmap< 64 > &map2)
 
bool is_set (uint n) const
 
bool is_prefix (uint n) const
 
bool is_clear_all () const
 
bool is_set_all () const
 
bool is_subset (const Bitmap< 64 > &map2) const
 
bool is_overlapping (const Bitmap< 64 > &map2) const
 
bool operator== (const Bitmap< 64 > &map2) const
 
bool operator!= (const Bitmap< 64 > &map2) const
 
char * print (char *buf) const
 
ulonglong to_ulonglong () const
 
uint bits_set () const
 
uint get_first_set () const
 
uint get_next_set (uint bit_no) const
 Find the next set bit after 'bit_no'. More...
 

Private Attributes

ulonglong map
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ALL_BITS 

Constructor & Destructor Documentation

◆ Bitmap() [1/2]

Bitmap< 64 >::Bitmap ( )
inline

◆ Bitmap() [2/2]

Bitmap< 64 >::Bitmap ( uint  prefix_to_set)
inlineexplicit

Member Function Documentation

◆ bits_set()

uint Bitmap< 64 >::bits_set ( ) const
inline

◆ clear_all()

void Bitmap< 64 >::clear_all ( )
inline

◆ clear_bit()

void Bitmap< 64 >::clear_bit ( uint  n)
inline

◆ get_first_set()

uint Bitmap< 64 >::get_first_set ( ) const
inline

◆ get_next_set()

uint Bitmap< 64 >::get_next_set ( uint  bit_no) const
inline

Find the next set bit after 'bit_no'.

Parameters
bit_noStart search at bit_no+1.
Returns
index of next set bit, or MY_BIT_NONE.

◆ init() [1/2]

void Bitmap< 64 >::init ( void  )
inline

◆ init() [2/2]

void Bitmap< 64 >::init ( uint  prefix_to_set)
inline

◆ intersect() [1/2]

void Bitmap< 64 >::intersect ( const Bitmap< 64 > &  map2)
inline

◆ intersect() [2/2]

void Bitmap< 64 >::intersect ( ulonglong  map2)
inline

◆ intersect_extended()

void Bitmap< 64 >::intersect_extended ( ulonglong  map2)
inline

◆ is_clear_all()

bool Bitmap< 64 >::is_clear_all ( ) const
inline

◆ is_overlapping()

bool Bitmap< 64 >::is_overlapping ( const Bitmap< 64 > &  map2) const
inline

◆ is_prefix()

bool Bitmap< 64 >::is_prefix ( uint  n) const
inline

◆ is_set()

bool Bitmap< 64 >::is_set ( uint  n) const
inline

◆ is_set_all()

bool Bitmap< 64 >::is_set_all ( ) const
inline

◆ is_subset()

bool Bitmap< 64 >::is_subset ( const Bitmap< 64 > &  map2) const
inline

◆ length()

uint Bitmap< 64 >::length ( ) const
inline

◆ merge()

void Bitmap< 64 >::merge ( const Bitmap< 64 > &  map2)
inline

◆ operator!=()

bool Bitmap< 64 >::operator!= ( const Bitmap< 64 > &  map2) const
inline

◆ operator==()

bool Bitmap< 64 >::operator== ( const Bitmap< 64 > &  map2) const
inline

◆ print()

char * Bitmap< 64 >::print ( char *  buf) const
inline

◆ set_all()

void Bitmap< 64 >::set_all ( )
inline

◆ set_bit()

void Bitmap< 64 >::set_bit ( uint  n)
inline

◆ set_prefix()

void Bitmap< 64 >::set_prefix ( uint  n)
inline

◆ subtract()

void Bitmap< 64 >::subtract ( const Bitmap< 64 > &  map2)
inline

◆ to_ulonglong()

ulonglong Bitmap< 64 >::to_ulonglong ( ) const
inline

Member Data Documentation

◆ map

ulonglong Bitmap< 64 >::map
private

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