1 #ifndef OBJTOOLS_READERS_SEQDB__SEQDBOIDLIST_HPP
2 #define OBJTOOLS_READERS_SEQDB__SEQDBOIDLIST_HPP
123 size_t bit = next_oid;
124 bool found = m_AllBits->CheckOrFindBit(bit);
126 next_oid =
static_cast<int>(bit);
127 _ASSERT(
size_t(next_oid) == bit);
149 typedef const unsigned char TCUC;
152 typedef unsigned char TUC;
162 inline bool x_IsSet(
TOID oid)
const;
206 void x_ClearBitRange(
int oid_start,
int oid_end);
245 x_IdsToBitSet(
const CSeqDBGiList & ids,
int vol_start,
int vol_end);
301 return (oid < m_NumOIDs) && m_AllBits->GetBit(oid);
CNcbiStreamoff TIndx
The type used for file offsets.
int TOID
A large enough type to span all OIDs.
bool x_IsSet(TOID oid) const
Check if a bit is set.
unsigned char TUC
Shorthand type to clarify code that iterates over memory.
void UnLease()
Deallocate the memory ranges owned by this object.
CSeqDBFileMemMap m_Lease
A memory lease which holds the mask file (if only one is used).
CSeqDBAtlas & m_Atlas
The memory management layer object.
const unsigned char TCUC
Shorthand type to clarify code that iterates over memory.
CRef< CSeqDB_BitSet > m_AllBits
An OID bit set covering all volumes.
int m_NumOIDs
The total number of OIDs represented in the bit set.
bool CheckOrFindOID(TOID &next_oid) const
Find an included oid from the specified point.
CSeqDBAtlas::TIndx TIndx
A type which spans possible file offsets.
Tree of nodes describing filtering of database sequences.
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.
Defines BLAST database access classes.
Implementation for the CSeqDB_BitSet class, a bit vector.
File access objects for CSeqDB.
Implementation for some assorted ID list filtering code.
Manages a set of database volumes.