vector<string> & vol_names,
249 if(rec_indx < (
int)
m_VolList.size()) {
253(rvol.
OIDEnd() > oid)) {
262 for(
intindex = 0; index < (
int)
m_VolList.size(); index++) {
263 if((
m_VolList[index].OIDStart() <= oid) &&
268vol_oid = oid -
m_VolList[index].OIDStart();
297 if(rec_indx < (
int)
m_VolList.size()) {
301(rvol.
OIDEnd() > oid)) {
309 for(
intindex = 0; index < (
int)
m_VolList.size(); index++) {
310 if((
m_VolList[index].OIDStart() <= oid) &&
315vol_oid = oid -
m_VolList[index].OIDStart();
465 for(
intindex = 0; index < (
int)
m_VolList.size(); index++) {
507 for(
intindex = 0; index < (
int)
m_VolList.size(); index++) {
508vol_total +=
m_VolList[index].Vol()->GetVolumeLength();
518 for(
intindex = 0; index < (
int)
m_VolList.size(); index++) {
529 for(
intindex = 0; index < (
int)
m_VolList.size(); index++) {
599 if(volname ==
m_VolList[
i].Vol()->GetVolName()) {
619 if(volname ==
m_VolList[
i].Vol()->GetVolName()) {
const CSeqDBVol * Vol() const
Get a const pointer to the underlying volume object.
int OIDStart() const
Get the starting OID in this volume's range.
int m_OIDEnd
The end of the OID range.
int OIDEnd() const
Get the ending OID in this volume's range.
void Free()
Free the volume object.
CSeqDBVol * m_Vol
The underlying volume object.
CSeqDBVol * Vol()
Get a pointer to the underlying volume object.
int m_OIDStart
The start of the OID range.
void SetStartAndEnd(int start)
Set the OID range.
CSeqDBVolEntry(CSeqDBVol *new_vol)
Constructor.
void OptimizeGiLists()
Optimize the GI list configuration.
CSeqDBVolSet()
Default Constructor.
void UnLease()
Return storage held by the volumes.
const CSeqDBVol * GetVol(const string &volname) const
Find a volume by name.
~CSeqDBVolSet()
Destructor.
const CSeqDBVolEntry * GetVolEntry(int i) const
Find a volume entry by index.
void x_AddVolume(CSeqDBAtlas &atlas, const string &nm, char pn, CSeqDBGiList *user_list, CSeqDBNegativeList *neg_list, CSeqDBLockHold &locked)
Add a volume.
const CSeqDBVolEntry * x_FindVolName(const string &volname) const
Find a volume by name.
const CSeqDBVol * GetVol(int i) const
Find a volume by index.
int x_GetNumOIDs() const
Get the size of the entire OID range.
CSeqDBVol * FindVol(int oid, int &vol_oid)
Find a volume by OID.
Uint8 GetVolumeSetLength() const
Find total volume length for all volumes.
CSeqDBVolSet & operator=(const CSeqDBVolSet &)
Private operator to prevent assignment.
CSeqDBVol * GetVolNonConst(int i)
Find a volume by index.
int GetNumVols() const
Get the number of volumes.
CSeqDBVolSet(const CSeqDBVolSet &)
Private constructor to prevent copy operation.
CSeqDBVolEntry * x_FindVolName(const string &volname)
Find a volume by name.
CSeqDBVol * FindVol(int oid, int &vol_oid) const
Find a volume by OID.
int GetNumOIDs() const
Get the size of the OID range.
vector< CSeqDBVolEntry > m_VolList
The actual set of volumes.
volatile int m_RecentVol
The index of the most recently used volume.
const CSeqDBVol * FindVol(int oid, int &vol_oid, int &vol_idx) const
Find a volume by OID.
int GetVolOIDStart(int i) const
Get the first OID in a volume.
CSeqDBVol * GetVol(const string &volname)
Find a volume by name (non-const version).
int GetNumOIDs() const
Get the number of OIDs for this volume.
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned int
A callback function used to compare two keys in a database.
Type and macro definitions from C toolkit that are not defined in C++ toolkit.
#define INT4_MAX
largest nubmer represented by signed int
Implementation for some assorted ID list filtering code.
Defines database volume access classes.
USING_SCOPE(objects)
Import definitions from the ncbi::objects namespace.
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