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 ()
 
template<class _Elem >
void _Mark (_Elem _Ch)
 
template<class _Elem >
bool _Find (_Elem _Ch) const
 

Private Attributes

unsigned char _Chrs [_Bmp_size]
 

Constructor & Destructor Documentation

_Bitmap::_Bitmap ( )
inline
1612  { // construct
1613  _CSTD memset(_Chrs, '\0', _Bmp_size);
1614  }
unsigned char _Chrs[_Bmp_size]
Definition: regex:1633
const unsigned int _Bmp_size
Definition: regex:1482
#define _CSTD
Definition: yvals.h:570

Member Function Documentation

template<class _Elem >
bool _Bitmap::_Find ( _Elem  _Ch) const
inline
1626  { // return true if _Ch is marked
1627  static_assert(is_unsigned<_Elem>::value, "_Elem must be unsigned");
1628  unsigned int _Wide = _Ch;
1629  return ((_Chrs[_Wide >> _Bmp_shift] & (1 << (_Wide & _Bmp_mask))) != 0);
1630  }
const unsigned int _Bmp_shift
Definition: regex:1479
unsigned char _Chrs[_Bmp_size]
Definition: regex:1633
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: type_traits:735
const unsigned int _Bmp_mask
Definition: regex:1481
template<class _Elem >
void _Bitmap::_Mark ( _Elem  _Ch)
inline
1618  { // mark character _Ch
1619  static_assert(is_unsigned<_Elem>::value, "_Elem must be unsigned");
1620  unsigned int _Wide = _Ch;
1621  _Chrs[_Wide >> _Bmp_shift] |= (1 << (_Wide & _Bmp_mask));
1622  }
const unsigned int _Bmp_shift
Definition: regex:1479
unsigned char _Chrs[_Bmp_size]
Definition: regex:1633
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: type_traits:735
const unsigned int _Bmp_mask
Definition: regex:1481

Member Data Documentation

unsigned char _Bitmap::_Chrs[_Bmp_size]
private

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