(
size_tindex);
156 bool GetBit(
size_tindex)
const;
ESpecialCase
Special edge cases (all-set and all-clear).
@ eAllSet
All OIDs are set.
@ eAllClear
All OIDs are clear.
void AssignBit(size_t i, bool value)
Store a value at the given index.
void x_Alloc(size_t bits)
Allocate memory for the bit data.
unsigned char TByte
Word size for vector elements.
ESpecialCase m_Special
Special edge cases.
void IntersectWith(CSeqDB_BitSet &other, bool consume)
This bitset is assigned to the intersection of it and another.
CSeqDB_BitSet & operator=(const CSeqDB_BitSet &)
Prevent copy assignment.
void Swap(CSeqDB_BitSet &other)
Swap two bitsets.
void DebugDump(CDebugDumpContext ddc, unsigned int depth) const
Allows to dump a snapshot of the object.
bool GetBit(size_t index) const
Get the value of the specified bit.
void UnionWith(CSeqDB_BitSet &other, bool consume)
This bitset is assigned to the union of it and another.
void Normalize()
If this is a special case bitset, convert it to a normal one.
void ClearBit(size_t index)
Clear the specified bit (to false).
bool CheckOrFindBit(size_t &index) const
Check if a bit is true or find the next bit that is.
void x_CopyBits(const CSeqDB_BitSet &src)
Set all bits that are true in `src'.
CSeqDB_BitSet(const CSeqDB_BitSet &)
Prevent copy construction.
vector< TByte > m_Bits
Representation of bit data.
void AssignBitRange(size_t start, size_t end, bool value)
Store the provided value in a range of bits.
@ eWordShift
Shift to convert from bit index to vector index.
@ eWordBits
Number of bits per stored word.
@ eWordMask
Mask to compute bit index within word.
void x_Copy(CSeqDB_BitSet &other, bool consume)
Set this bitset to the value of the provided one.
void x_Normalize(size_t start, size_t end)
Replace `special' with normal bitsets, adjust the index range.
CSeqDB_BitSet(size_t start, size_t end, ESpecialCase sp=eNone)
Constructor for bit array with start/end range.
CSeqDB_BitSet()
Default constructor for zero-length empty bit array.
size_t m_Start
Number of bits stored here.
size_t m_End
Number of bits stored here.
void SetBit(size_t index)
Set the specified bit (to true).
static unsigned char depth[2 *(256+1+29)+1]
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const GenericPointer< typename T::ValueType > T2 value
USING_SCOPE(objects)
Import definitions from the ncbi::objects namespace.
Defines database volume access classes.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4