Gecode::Int::Extensional::BitSet Class Reference
Simple bitsets. More...
#include <bitset.hpp>
Public Member Functions | |
BitSet (void) | |
Default (empty) initialization of BitSet. | |
BitSet (Space &home, unsigned int s, bool value=false) | |
BitSet with space for s bits. The bits are set to value. | |
BitSet (Space &home, const BitSet &bs) | |
Copy BitSet bs. | |
void | init (Space &home, unsigned int s, bool value=false) |
Initialize BitSet for s bits. The bits are set to value. | |
bool | get (unsigned int i) const |
Access value at bit i. | |
void | set (unsigned int i, bool value=true) |
Set value at bit i to value. |
Detailed Description
Simple bitsets.
Definition at line 48 of file bitset.hpp.
Constructor & Destructor Documentation
Gecode::Int::Extensional::BitSet::BitSet | ( | void | ) | [inline] |
Default (empty) initialization of BitSet.
Definition at line 80 of file bitset.hpp.
Gecode::Int::Extensional::BitSet::BitSet | ( | Space & | home, | |
unsigned int | s, | |||
bool | value = false | |||
) | [inline] |
BitSet with space for s bits. The bits are set to value.
Definition at line 83 of file bitset.hpp.
Copy BitSet bs.
Definition at line 88 of file bitset.hpp.
Member Function Documentation
void Gecode::Int::Extensional::BitSet::init | ( | Space & | home, | |
unsigned int | s, | |||
bool | value = false | |||
) | [inline] |
Initialize BitSet for s bits. The bits are set to value.
Definition at line 71 of file bitset.hpp.
bool Gecode::Int::Extensional::BitSet::get | ( | unsigned int | i | ) | const [inline] |
Access value at bit i.
Definition at line 93 of file bitset.hpp.
void Gecode::Int::Extensional::BitSet::set | ( | unsigned int | i, | |
bool | value = true | |||
) | [inline] |
Set value at bit i to value.
Definition at line 100 of file bitset.hpp.
The documentation for this class was generated from the following file:
- gecode/int/extensional/bitset.hpp (Revision: 9219)