bit map that contains set of bit indicators
More...
#include <bitmap.h>
|
| void | Resize (size_t size) |
| | resize the bitmap to be certain size More...
|
| |
| bool | Get (size_t i) const |
| | query the i-th position of bitmap More...
|
| |
| void | SetTrue (size_t i) |
| | set i-th position to true More...
|
| |
| void | InitFromBool (const std::vector< int > &vec) |
| | initialize the value of bit map from vector of bool More...
|
| |
| void | Clear () |
| | clear the bitmap, set all places to false More...
|
| |
|
| std::vector< uint32_t > | data |
| | internal data structure More...
|
| |
bit map that contains set of bit indicators
◆ Clear()
| void xgboost::common::BitMap::Clear |
( |
| ) |
|
|
inline |
clear the bitmap, set all places to false
◆ Get()
| bool xgboost::common::BitMap::Get |
( |
size_t |
i | ) |
const |
|
inline |
query the i-th position of bitmap
- Parameters
-
◆ InitFromBool()
| void xgboost::common::BitMap::InitFromBool |
( |
const std::vector< int > & |
vec | ) |
|
|
inline |
initialize the value of bit map from vector of bool
◆ Resize()
| void xgboost::common::BitMap::Resize |
( |
size_t |
size | ) |
|
|
inline |
resize the bitmap to be certain size
- Parameters
-
◆ SetTrue()
| void xgboost::common::BitMap::SetTrue |
( |
size_t |
i | ) |
|
|
inline |
set i-th position to true
- Parameters
-
◆ data
| std::vector<uint32_t> xgboost::common::BitMap::data |
The documentation for this struct was generated from the following file: