Medial Code Documentation
|
Public Types | |
using | Container = BitFieldContainer< VT, LBitsPolicy< VT, IsConst >, IsConst > |
using | Pos = typename Container::Pos |
using | value_type = typename Container::value_type |
![]() | |
using | value_type = std::conditional_t< IsConst, VT const, VT > |
using | size_type = size_t |
using | index_type = size_t |
using | pointer = value_type * |
Static Public Member Functions | |
static XGBOOST_DEVICE Pos | Shift (Pos pos) |
![]() | |
static XGBOOST_DEVICE Pos | ToBitPos (index_type pos) |
static XGBOOST_DEVICE size_t | ComputeStorageSize (index_type size) |
Additional Inherited Members | |
![]() | |
XGBOOST_DEVICE | BitFieldContainer (common::Span< value_type > bits) |
BitFieldContainer (BitFieldContainer const &other)=default | |
BitFieldContainer (BitFieldContainer &&other)=default | |
BitFieldContainer & | operator= (BitFieldContainer const &that)=default |
BitFieldContainer & | operator= (BitFieldContainer &&that)=default |
XGBOOST_DEVICE auto | Bits () |
XGBOOST_DEVICE auto | Bits () const |
BitFieldContainer & | operator|= (BitFieldContainer const &rhs) |
BitFieldContainer & | operator&= (BitFieldContainer const &rhs) |
void | Set (index_type pos) noexcept(true) |
void | Clear (index_type pos) noexcept(true) |
XGBOOST_DEVICE bool | Check (Pos pos_v) const noexcept(true) |
XGBOOST_DEVICE bool | Check (index_type pos) const noexcept(true) |
XGBOOST_DEVICE size_type | Capacity () const noexcept(true) |
Returns the total number of bits that can be viewed. | |
XGBOOST_DEVICE size_type | NumValues () const noexcept(true) |
Number of storage unit used in this bit field. | |
XGBOOST_DEVICE pointer | Data () const noexcept(true) |
![]() | |
static index_type constexpr | kValueSize = sizeof(value_type) * 8 |
static index_type constexpr | kOne = 1 |