bitset.h
来自「最新osg包」· C头文件 代码 · 共 41 行
H
41 行
//////////////////////////////////////////////////////////////////////////////////////////// BITSET.h// class declaration for set of bits to represent many true/falses// You may use this code however you wish, but if you do, please credit me and// provide a link to my website in a readme file or similar// Downloaded from: www.paulsprojects.net// Created: 8th August 2002////////////////////////////////////////////////////////////////////////////////////////// #ifndef BITSET_H#define BITSET_H#include <vector>class BITSET{public: BITSET() : m_numBytes(0) {} ~BITSET() { } bool Init(int numberOfBits); void ClearAll(); void SetAll(); void Clear(int bitNumber); void Set(int bitNumber); unsigned char IsSet(int bitNumber) const;protected: int m_numBytes; //size of bits array unsigned char * m_bits_aux; std::vector<unsigned char> m_bits;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?