Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cBitmask< TYPE > Class Template Reference

#include <cBits.h>

Public Member Functions

 cBitmask (TYPE uVal=0) noexcept
 
void SetBit (BIT_ENUM_t nBit) noexcept
 
void ClearBit (BIT_ENUM_t nBit) noexcept
 
bool IsSet (BIT_ENUM_t nBit) const noexcept
 
 operator TYPE () const noexcept
 

Protected Attributes

TYPE m_uVal
 

Detailed Description

template<typename TYPE = UINT32>
class Gray::cBitmask< TYPE >

hold a mask of max TYPE size bits.

Constructor & Destructor Documentation

◆ cBitmask()

template<typename TYPE = UINT32>
Gray::cBitmask< TYPE >::cBitmask ( TYPE  uVal = 0)
inlinenoexcept

Member Function Documentation

◆ ClearBit()

template<typename TYPE = UINT32>
void Gray::cBitmask< TYPE >::ClearBit ( BIT_ENUM_t  nBit)
inlinenoexcept

◆ IsSet()

template<typename TYPE = UINT32>
bool Gray::cBitmask< TYPE >::IsSet ( BIT_ENUM_t  nBit) const
inlinenoexcept

◆ operator TYPE()

template<typename TYPE = UINT32>
Gray::cBitmask< TYPE >::operator TYPE ( ) const
inlinenoexcept

◆ SetBit()

template<typename TYPE = UINT32>
void Gray::cBitmask< TYPE >::SetBit ( BIT_ENUM_t  nBit)
inlinenoexcept

Member Data Documentation

◆ m_uVal

template<typename TYPE = UINT32>
TYPE Gray::cBitmask< TYPE >::m_uVal
protected

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