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
1633  { // construct
1634  _CSTD memset(_Chrs, '\0', _Bmp_size);
1635  }
unsigned char _Chrs[_Bmp_size]
Definition: regex:1654
const unsigned int _Bmp_size
Definition: regex:1502
#define _CSTD
Definition: yvals.h:570

Member Function Documentation

template<class _Elem >
bool _Bitmap::_Find ( _Elem  _Ch) const
inline
1647  { // return true if _Ch is marked
1648  static_assert(is_unsigned<_Elem>::value, "_Elem must be unsigned");
1649  unsigned int _Wide = _Ch;
1650  return ((_Chrs[_Wide >> _Bmp_shift] & (1 << (_Wide & _Bmp_mask))) != 0);
1651  }
const unsigned int _Bmp_shift
Definition: regex:1499
unsigned char _Chrs[_Bmp_size]
Definition: regex:1654
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: type_traits:806
const unsigned int _Bmp_mask
Definition: regex:1501
template<class _Elem >
void _Bitmap::_Mark ( _Elem  _Ch)
inline
1639  { // mark character _Ch
1640  static_assert(is_unsigned<_Elem>::value, "_Elem must be unsigned");
1641  unsigned int _Wide = _Ch;
1642  _Chrs[_Wide >> _Bmp_shift] |= (1 << (_Wide & _Bmp_mask));
1643  }
const unsigned int _Bmp_shift
Definition: regex:1499
unsigned char _Chrs[_Bmp_size]
Definition: regex:1654
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
Definition: type_traits:806
const unsigned int _Bmp_mask
Definition: regex:1501

Member Data Documentation

unsigned char _Bitmap::_Chrs[_Bmp_size]
private

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