#include <BitSet.h>
Public Member Functions | |
BitSet () | |
コンストラクタ | |
BitSet (const Type &bits) | |
コンストラクタ | |
~BitSet () | |
デストラクタ | |
int | getLength () const |
長さの取得 | |
void | clear () |
クリア | |
void | setBits (Type bits) |
ビット列の設定 | |
Type | getBits () const |
ビット列の取得 | |
const BitSet & | not () |
補数 | |
const BitSet & | onAllBits () |
全てのビットをONにする | |
const BitSet & | offAllBits () |
全てのビットをOFFにする | |
const BitSet & | setAllBits (bool flag) |
全てのビットを設定する | |
const BitSet & | and (const BitSet &bitSet) |
論理積 | |
const BitSet & | or (const BitSet &bitSet) |
論理和 | |
const BitSet & | xor (const BitSet &bitSet) |
排他的論理和 | |
const BitSet & | onBit (const BitSet &bitSet) |
ビットをONにする | |
const BitSet & | offBit (const BitSet &bitSet) |
ビットをOFFにする | |
const BitSet & | setBit (const BitSet &bitSet, bool flag) |
ビットの設定 | |
bool | getBit (const BitSet &bitSet) const |
ビットの取得 | |
const BitSet & | and (Type bits) |
論理積 | |
const BitSet & | or (Type bits) |
論理和 | |
const BitSet & | xor (Type bits) |
排他的論理和 | |
const BitSet & | onBit (Type bits) |
ビットをONにする | |
const BitSet & | offBit (Type bits) |
ビットをOFFにする | |
const BitSet & | setBit (Type bits, bool flag) |
ビットの設定 | |
bool | getBit (Type bits) const |
ビットの取得 | |
const BitSet & | onIndexedBit (int index) |
インデックスビットをONにする | |
const BitSet & | offIndexedBit (int index) |
インデックスビットをOFFにする | |
const BitSet & | setIndexedBit (int index, bool flag) |
インデックスビットの設定 | |
bool | getIndexedBit (int index) const |
インデックスビットの取得 | |
String | toString () const |
文字列への変換 |
テンプレートの型にu_char, u_short, u_int等を使用してください。 このクラスは継承しないで下さい。
Definition at line 38 of file BitSet.h.
|
コンストラクタ
|
|
論理積
|
|
論理積
Definition at line 132 of file BitSet.h. References Lamp::BitSet< Type >::bits_. |
|
ビットの取得
|
|
ビットの取得
Definition at line 194 of file BitSet.h. References Lamp::BitSet< Type >::bits_. |
|
ビット列の取得
Definition at line 80 of file BitSet.h. Referenced by Lamp::MouseState::writeBinary(), and Lamp::JoystickState::writeBinary(). |
|
インデックスビットの取得
Definition at line 311 of file BitSet.h. References Assert, and Lamp::BitSet< Type >::getLength(). Referenced by Lamp::MouseState::readBinary(), Lamp::JoystickState::readBinary(), and Lamp::BitSet< Type >::toString(). |
|
長さの取得
Definition at line 62 of file BitSet.h. Referenced by Lamp::BitSet< Type >::getIndexedBit(), Lamp::BitSet< Type >::offIndexedBit(), Lamp::BitSet< Type >::onIndexedBit(), and Lamp::BitSet< Type >::toString(). |
|
補数
|
|
全てのビットをOFFにする
Definition at line 108 of file BitSet.h. Referenced by Lamp::BitSet< Type >::setAllBits(). |
|
ビットをOFFにする
|
|
ビットをOFFにする
Definition at line 172 of file BitSet.h. References Lamp::BitSet< Type >::bits_. Referenced by Lamp::BitSet< Type >::setBit(). |
|
インデックスビットをOFFにする
Definition at line 289 of file BitSet.h. References Assert, and Lamp::BitSet< Type >::getLength(). Referenced by Lamp::BitSet< Type >::setIndexedBit(). |
|
全てのビットをONにする
Definition at line 98 of file BitSet.h. Referenced by Lamp::BitSet< Type >::setAllBits(). |
|
ビットをONにする
|
|
ビットをONにする
Definition at line 162 of file BitSet.h. References Lamp::BitSet< Type >::bits_. Referenced by Lamp::BitSet< Type >::setBit(). |
|
インデックスビットをONにする
Definition at line 279 of file BitSet.h. References Assert, and Lamp::BitSet< Type >::getLength(). Referenced by Lamp::BitSet< Type >::setIndexedBit(). |
|
論理和
|
|
論理和
Definition at line 142 of file BitSet.h. References Lamp::BitSet< Type >::bits_. |
|
全てのビットを設定する
Definition at line 118 of file BitSet.h. References Lamp::BitSet< Type >::offAllBits(), and Lamp::BitSet< Type >::onAllBits(). |
|
ビットの設定
Definition at line 257 of file BitSet.h. References Lamp::BitSet< Type >::offBit(), and Lamp::BitSet< Type >::onBit(). |
|
ビットの設定
Definition at line 183 of file BitSet.h. References Lamp::BitSet< Type >::offBit(), and Lamp::BitSet< Type >::onBit(). |
|
ビット列の設定
|
|
インデックスビットの設定
Definition at line 300 of file BitSet.h. References Lamp::BitSet< Type >::offIndexedBit(), and Lamp::BitSet< Type >::onIndexedBit(). Referenced by Lamp::MouseState::writeBinary(), and Lamp::JoystickState::writeBinary(). |
|
文字列への変換
Definition at line 321 of file BitSet.h. References Lamp::BitSet< Type >::getIndexedBit(), and Lamp::BitSet< Type >::getLength(). |
|
排他的論理和
|
|
排他的論理和
Definition at line 152 of file BitSet.h. References Lamp::BitSet< Type >::bits_. |