Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class SmallRevBitSet
Note: This documentation is automatically generated.
This class represents a small reversible bitset (size <= 64).
This class is useful to maintain supports.
Method |
Cardinality | Return type: int64_t Returns the number of bits set to one.
|
GetFirstOne | Return type: int64_t Gets the index of the first bit set starting from 0.
It returns -1 if the bitset is empty.
|
IsCardinalityOne | Return type: bool Does it contains only one bit set?
|
IsCardinalityZero | Return type: bool Is bitset null?
|
SetToOne | Return type: void Arguments: Solver* const solver, int64_t pos Sets the 'pos' bit.
|
SetToZero | Return type: void Arguments: Solver* const solver, int64_t pos Erases the 'pos' bit.
|
SmallRevBitSet | Return type: explicit Arguments: int64_t size |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-09-14 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]