xgboost
Public Member Functions | Public Attributes | List of all members
xgboost::common::BitMap Struct Reference

bit map that contains set of bit indicators More...

#include <bitmap.h>

Collaboration diagram for xgboost::common::BitMap:
Collaboration graph

Public Member Functions

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...
 

Public Attributes

std::vector< uint32_t > data
 internal data structure More...
 

Detailed Description

bit map that contains set of bit indicators

Member Function Documentation

◆ 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
ithe position in

◆ 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
sizethe size of bitmap

◆ SetTrue()

void xgboost::common::BitMap::SetTrue ( size_t  i)
inline

set i-th position to true

Parameters
iposition index

Member Data Documentation

◆ data

std::vector<uint32_t> xgboost::common::BitMap::data

internal data structure


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