STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
_Bitmap Struct Reference

Public Member Functions

 _Bitmap ()
 
void _Mark (unsigned int _Ch)
 
bool _Find (unsigned int _Ch) const
 

Private Attributes

unsigned char _Chrs [_Bmp_size]
 

Constructor & Destructor Documentation

_Bitmap::_Bitmap ( )
inline
1593  { // construct
1594  memset(_Chrs, '\0', _Bmp_size);
1595  }
const int _Bmp_size
Definition: regex:1463
unsigned char _Chrs[_Bmp_size]
Definition: regex:1608

Member Function Documentation

bool _Bitmap::_Find ( unsigned int  _Ch) const
inline
1603  { // return true if _Ch is marked
1604  return ((_Chrs[_Ch >> _Bmp_shift] & (1 << (_Ch & _Bmp_mask))) != 0);
1605  }
unsigned char _Chrs[_Bmp_size]
Definition: regex:1608
const int _Bmp_shift
Definition: regex:1460
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
const int _Bmp_mask
Definition: regex:1462
void _Bitmap::_Mark ( unsigned int  _Ch)
inline
1598  { // mark character _Ch
1599  _Chrs[_Ch >> _Bmp_shift] |= (1 << (_Ch & _Bmp_mask));
1600  }
unsigned char _Chrs[_Bmp_size]
Definition: regex:1608
const int _Bmp_shift
Definition: regex:1460
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
const int _Bmp_mask
Definition: regex:1462

Member Data Documentation

unsigned char _Bitmap::_Chrs[_Bmp_size]
private

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