NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
phmap::priv::BitMask< T, SignificantBits, Shift > 模板类 参考

#include <phmap.h>

Public 类型

using value_type = int
 
using iterator = BitMask
 
using const_iterator = BitMask
 

Public 成员函数

 BitMask (T mask)
 
BitMaskoperator++ ()
 
 operator bool () const
 
uint32_t operator* () const
 
uint32_t LowestBitSet () const
 
uint32_t HighestBitSet () const
 
BitMask begin () const
 
BitMask end () const
 
uint32_t TrailingZeros () const
 
uint32_t LeadingZeros () const
 

Private 属性

mask_
 

友元

bool operator== (const BitMask &a, const BitMask &b)
 
bool operator!= (const BitMask &a, const BitMask &b)
 

成员类型定义说明

◆ const_iterator

template<class T , int SignificantBits, int Shift = 0>
using phmap::priv::BitMask< T, SignificantBits, Shift >::const_iterator = BitMask

◆ iterator

template<class T , int SignificantBits, int Shift = 0>
using phmap::priv::BitMask< T, SignificantBits, Shift >::iterator = BitMask

◆ value_type

template<class T , int SignificantBits, int Shift = 0>
using phmap::priv::BitMask< T, SignificantBits, Shift >::value_type = int

构造及析构函数说明

◆ BitMask()

template<class T , int SignificantBits, int Shift = 0>
phmap::priv::BitMask< T, SignificantBits, Shift >::BitMask ( mask)
inlineexplicit

成员函数说明

◆ begin()

template<class T , int SignificantBits, int Shift = 0>
BitMask phmap::priv::BitMask< T, SignificantBits, Shift >::begin ( ) const
inline

◆ end()

template<class T , int SignificantBits, int Shift = 0>
BitMask phmap::priv::BitMask< T, SignificantBits, Shift >::end ( ) const
inline

◆ HighestBitSet()

template<class T , int SignificantBits, int Shift = 0>
uint32_t phmap::priv::BitMask< T, SignificantBits, Shift >::HighestBitSet ( ) const
inline

◆ LeadingZeros()

template<class T , int SignificantBits, int Shift = 0>
uint32_t phmap::priv::BitMask< T, SignificantBits, Shift >::LeadingZeros ( ) const
inline

◆ LowestBitSet()

template<class T , int SignificantBits, int Shift = 0>
uint32_t phmap::priv::BitMask< T, SignificantBits, Shift >::LowestBitSet ( ) const
inline

◆ operator bool()

template<class T , int SignificantBits, int Shift = 0>
phmap::priv::BitMask< T, SignificantBits, Shift >::operator bool ( ) const
inlineexplicit

◆ operator*()

template<class T , int SignificantBits, int Shift = 0>
uint32_t phmap::priv::BitMask< T, SignificantBits, Shift >::operator* ( ) const
inline

◆ operator++()

template<class T , int SignificantBits, int Shift = 0>
BitMask & phmap::priv::BitMask< T, SignificantBits, Shift >::operator++ ( )
inline

◆ TrailingZeros()

template<class T , int SignificantBits, int Shift = 0>
uint32_t phmap::priv::BitMask< T, SignificantBits, Shift >::TrailingZeros ( ) const
inline

友元及相关函数文档

◆ operator!=

template<class T , int SignificantBits, int Shift = 0>
bool operator!= ( const BitMask< T, SignificantBits, Shift > &  a,
const BitMask< T, SignificantBits, Shift > &  b 
)
friend

◆ operator==

template<class T , int SignificantBits, int Shift = 0>
bool operator== ( const BitMask< T, SignificantBits, Shift > &  a,
const BitMask< T, SignificantBits, Shift > &  b 
)
friend

类成员变量说明

◆ mask_

template<class T , int SignificantBits, int Shift = 0>
T phmap::priv::BitMask< T, SignificantBits, Shift >::mask_
private

该类的文档由以下文件生成: