class for holding data entries
| dataEntry ( dataEntries *d, blastConfig *b ) constructor | |
| ~dataEntry () destructor | |
| operator< ( const dataEntry &entry ) used by STL sort algorithm
| |
| operator> ( const dataEntry &entry ) This operator is not used | |
| operator== ( const dataEntry &entry ) used to search for duplicate entries by dataEntries::add()
| |
| getParent () const return pointer to dataEntries vector
| |
| setParent ( dataEntries *parent ) Set up the pointer to dataEntries vector
| |
| getConfig () const return pointer to blastConfig object
| |
| setConfig ( blastConfig *config ) Set up the pointer to blastConfig object
| |
| getLength () const return length (eg. 104) | |
| setLength ( const int& len ) set length | |
| getSeqLen () const return sequence length (eg. 101) | |
| setSeqLen ( const int& len ) set sequence length | |
| getComp () const return sequence completeness (calculated from identities and residue count) | |
| setComp ( const int& comp ) set sequence completeness | |
| getId () const return id (eg. 98%) | |
| setId ( const int& id ) set id | |
| getPos () const return positives (eg. 98%) | |
| setPos ( const int& pos ) set positives | |
| getIdCount () const return count of "Identities" lines | |
| setIdCount ( const int& cnt ) set count of "Identities" lines | |
| getExp () const return "Expect" value | |
| setExp ( const char *expect ) set "Expect" value | |
| getName () const return database name (eg. PDB) | |
| setName ( const char *name ) set database name | |
| getCode () const return accession code | |
| setCode ( const char *code ) set database accession code | |
| getMolName () const return molecular system description | |
| setMolName ( const char *mol ) set molecular system description | |
| getDetails () const return sequence details | |
| setDetails ( const char *details ) set sequence details | |
| getPullOut () return pull-out flag: true or false. | |
| setPullOut ( bool b ) set pull-out flag. | |
| print () print object to cout
|
class for holding data entries.Each
dataEntryobject holds one data record.
All fields are private, they are accessed via Java-style (getX/setX/isX etc) methods.
There are operators<,>and==for sorting the vector ofdataEntryobjects and for finding duplicate entries.
Note that mening of operators<and>is somewhat counter-intuitive, RTFM carefully before using them.
Initialize member variables, set up pointers to blastConfig
and dataEntries objects.
dataEntries vector.
blastConfig object.
Erase string fields, just in case.
Since we want entries sorted in descending order of Id,
with pdb on top, this operator returns true if
operator
operator
~dataEntry()
bool operator< ( const dataEntry &entry )
sort algorithm.
this.fId > other.fId or
this.fId == other.fId and this.fName < other.fName.
See blastConfig class for fName ordering
(blastConfig::pdb etc.)
bool operator> ( const dataEntry &entry )
> returns true if
this.fId < other.fId or
this.fId == other.fId and this.fName > other.fName
(IOW it's a complement to <, see operator < for explanation).
bool operator== ( const dataEntry &entry )
dataEntries::add().
== returns true if
this.fName == other.fName and this.fCode == other.fCode.
dataEntries* getParent() const
dataEntries vector.
void setParent( dataEntries *parent )
dataEntries vector.
Note use constructor instead.
blastConfig* getConfig() const
blastConfig object.
void setConfig( blastConfig *config )
blastConfig object.
Note use constructor instead.
int getLength() const
void setLength( const int& len )
int getSeqLen() const
void setSeqLen( const int& len )
int getComp() const
void setComp( const int& comp )
int getId() const
void setId( const int& id )
int getPos() const
void setPos( const int& pos )
int getIdCount() const
void setIdCount( const int& cnt )
string getExp() const
void setExp( const char *expect )
string or char * parameter.
string getName() const
void setName( const char *name )
string or char * parameter.
string getCode() const
void setCode( const char *code )
string or char * parameter.
string getMolName() const
void setMolName( const char *mol )
string or char * parameter.
string getDetails() const
void setDetails( const char *details )
string or char * parameter.
bool getPullOut()
Alphabetic index Hierarchy of classes