vector of dataEntry objects with a few extra members and methods
![]() | dataEntries () constructor |
![]() | ~dataEntries () destructor |
![]() | add ( dataEntry entry ) add an entry to the vector |
![]() | sort () sort the vector |
![]() | getCount ( int db_index ) returns count of entries from a particular database |
vector of dataEntry objects with a few extra members and methods.This class is a vector, all standard members of vector are available.
In additiondataEntries
keeps count of how many entries from each database it has, so that we can limit the number of entries to deposit on a per-database basis, and
has methods to get those counts and to sort the vector.
Initializes counters to 0.
Erases vector's contents.
All PDB entries except duplicates are added to the vector.
For non-pdb entries
~dataEntries()
int add( dataEntry entry )
add()
checks the corresponding
counter against MaxXEntries
constant declared in
blastConfig
. If counter is less than
MaxXEntries
, or it's a PDB entry, the entry is
compared to all other entries in the vector. If it is not already
in the vector, it is added and corresp. counter is incremented.
blastConfigvoid sort()
Sort()
uses the standard algorithm to sort the
vector. See operator <
in dataEntry
class.
int getCount( int db_index )
getCount()
is used mainly for debugging/diagnostic.
Alphabetic index Hierarchy of classes