operations_research::SmallRevBitSet Class Reference
This class represents a small reversible bitset (size <= 64).
More...
#include <constraint_solveri.h>
List of all members.
Detailed Description
This class represents a small reversible bitset (size <= 64).
This class is useful to maintain supports.
Definition at line 421 of file constraint_solveri.h.
Constructor & Destructor Documentation
operations_research::SmallRevBitSet::SmallRevBitSet |
( |
int64 |
size |
) |
[explicit] |
Member Function Documentation
void operations_research::SmallRevBitSet::SetToOne |
( |
Solver *const |
solver, |
|
|
int64 |
pos | |
|
) |
| | |
void operations_research::SmallRevBitSet::SetToZero |
( |
Solver *const |
solver, |
|
|
int64 |
pos | |
|
) |
| | |
int64 operations_research::SmallRevBitSet::Cardinality |
( |
|
) |
const |
Returns the number of bits set to one.
Definition at line 48 of file utilities.cc.
bool operations_research::SmallRevBitSet::IsCardinalityZero |
( |
|
) |
const [inline] |
bool operations_research::SmallRevBitSet::IsCardinalityOne |
( |
|
) |
const [inline] |
int64 operations_research::SmallRevBitSet::GetFirstOne |
( |
|
) |
const |
Gets the index of the first bit set starting from 0.
It returns -1 if the bitset is empty.
Definition at line 52 of file utilities.cc.
The documentation for this class was generated from the following files: