#include <gnBaseFeature.h>
Inheritance diagram for gnBaseFeature:
Public Member Functions | |
gnBaseFeature () | |
gnBaseFeature (string &name, uint32 id=0, gnFragmentSpec *spec=NULL, gnLocation::gnLocationType lt=gnLocation::LT_Nothing, boolean broken=false) | |
~gnBaseFeature () | |
Destructor, frees memory. | |
virtual gnBaseFeature * | Clone () const=0 |
virtual string | GetName () const |
Gets the feature name (e.g. | |
virtual void | SetName (const string &name) |
Sets the feature name. | |
virtual uint32 | GetID () const |
Gets this feature's ID. | |
virtual void | SetID (uint32 id) |
Sets this feature's ID. | |
virtual gnFragmentSpec * | GetSpec () const |
Gets the gnFragmentSpec to which this feature refers. | |
virtual void | SetSpec (gnFragmentSpec *spec) |
Sets the gnFragmentSpec to which this feature refers. | |
virtual gnLocation::gnLocationType | GetLocationType () const |
Gets this feature's location type. | |
virtual void | SetLocationType (gnLocation::gnLocationType lType) |
Sets this feature's location type. | |
virtual uint32 | GetLocationListLength () const |
Returns the number of locations this feature describes. | |
virtual boolean | AddLocation (const gnLocation &l, uint32 listI=0) |
Adds a new location before the location at listI. | |
virtual gnLocation | GetLocation (uint32 listI) const |
Gets the location at listI. | |
virtual boolean | RemoveLocation (uint32 listI) |
Deletes the location at listI. | |
virtual boolean | SetLocation (const gnLocation &l, uint32 listI) |
Sets the location at listI to a new location. | |
virtual boolean | MovePositive (const gnSeqI i) |
Increases this feature's coordinates by a specific number of bases. | |
virtual boolean | MoveNegative (const gnSeqI i) |
Decreases this feature's coordinates by a specific number of bases. | |
virtual boolean | CropStart (const gnSeqI i) |
Crops the start locations of this feature by the specified amount. | |
virtual boolean | CropEnd (const gnSeqI i) |
Crops the end locations of this feature by the specified amount. | |
virtual boolean | Crop (const gnLocation &l) |
Crops the locations of this feature to fit within the given location. | |
virtual boolean | IsBroken () const |
Returns true if the feature is broken. | |
virtual void | SetBroken (boolean broke) |
Sets whether the feature is broken or not. | |
virtual boolean | Contains (gnSeqI i) const |
Checks if the given coordinate is contained by this feature. | |
virtual boolean | Contains (const gnLocation &l) const |
Checks if the given location is contained by this feature. | |
virtual boolean | Contains (gnBaseFeature *feature) const |
Checks if the given feature is entirely contained by this feature. | |
virtual boolean | IsContainedBy (const gnLocation &l) const |
Checks if this feature is entirely contained by the given location. | |
virtual boolean | Intersects (const gnLocation &l) const |
Checks if the given location intersects this feature. | |
virtual boolean | Intersects (gnBaseFeature *feature) const |
Checks if the given feature intersects this feature. | |
virtual uint32 | GetQualifierListLength () const |
Returns the number of qualifiers in this feature. | |
virtual boolean | AddQualifier (gnBaseQualifier *qualifier) |
Adds a new qualifier. | |
virtual boolean | HasQualifier (const string &name) const |
Looks for a qualifier by name. | |
virtual uint32 | FirstIndexOfQualifier (const string &name, uint32 listI) const |
Searches for a qualifier by name, starting at the index listI. | |
virtual uint32 | LastIndexOfQualifier (const string &name, uint32 listI) const |
Searches for a qualifier by name, ending at the index listI. | |
virtual string | GetQualifierName (uint32 listI) const |
Gets the name of the qualifier at the list index listI. | |
virtual string | GetQualifierValue (uint32 listI) const |
Gets the value of the qualifier at the list index listI. | |
virtual gnBaseQualifier * | GetQualifier (uint32 listI) |
Gets the qualifier at the list index listI. | |
virtual boolean | RemoveQualifier (uint32 listI) |
Deletes the qualifier at the list index listI. | |
virtual boolean | SetQualifier (string &name, string &value, uint32 listI) |
Set the name and value of the qualifier at the list index listI. | |
virtual boolean | SetQualifierName (string &name, uint32 listI) |
Set the name of the qualifier at the list index listI. | |
virtual boolean | SetQualifierValue (string &value, uint32 listI) |
Set the value of the qualifier at the list index listI. | |
Protected Attributes | |
uint32 | m_id |
string | m_name |
boolean | m_broken |
gnLocation::gnLocationType | m_locationType |
vector< gnLocation > | m_locationList |
vector< gnBaseQualifier * > | m_qualifierList |
gnFragmentSpec * | m_spec |
gnBaseFeature outlines a basic interface and gives functionality its derived sequence classes, such as gnCDSFeature.
Definition at line 30 of file gnBaseFeature.h.
|
Definition at line 18 of file gnBaseFeature.cpp. References gnLocation::LT_Nothing, m_broken, m_id, m_locationType, m_name, and m_spec. |
|
Definition at line 26 of file gnBaseFeature.cpp. References m_broken, m_id, m_locationType, m_name, and m_spec. |
|
Destructor, frees memory.
Definition at line 34 of file gnBaseFeature.cpp. References m_qualifierList, and uint32. |
|
Adds a new location before the location at listI.
Definition at line 186 of file gnBaseFeature.cpp. References m_locationList. Referenced by gnSEQSource::ParseStream(), and gnGBKSource::ParseStream(). |
|
Adds a new qualifier.
Definition at line 216 of file gnBaseFeature.cpp. References m_qualifierList. Referenced by gnSEQSource::ParseStream(), and gnGBKSource::ParseStream(). |
|
Implements gnClone. Implemented in gnFeature. |
|
Checks if the given feature is entirely contained by this feature.
Definition at line 146 of file gnBaseFeature.cpp. References GetLocation(), GetLocationListLength(), m_locationList, and uint32. |
|
Checks if the given location is contained by this feature.
Definition at line 139 of file gnBaseFeature.cpp. References m_locationList, and uint32. |
|
Checks if the given coordinate is contained by this feature.
Definition at line 131 of file gnBaseFeature.cpp. References m_locationList, and uint32. |
|
Crops the locations of this feature to fit within the given location.
Definition at line 328 of file gnBaseFeature.h. References CropEnd(), CropStart(), gnLocation::GetEnd(), and gnLocation::GetStart(). |
|
Crops the end locations of this feature by the specified amount.
Definition at line 58 of file gnBaseFeature.cpp. References m_locationList, and uint32. Referenced by Crop(). |
|
Crops the start locations of this feature by the specified amount.
Definition at line 67 of file gnBaseFeature.cpp. References m_locationList, and uint32. Referenced by Crop(). |
|
Searches for a qualifier by name, starting at the index listI.
Definition at line 74 of file gnBaseFeature.cpp. References GNSEQI_END, m_qualifierList, and uint32. |
|
Gets this feature's ID.
Definition at line 291 of file gnBaseFeature.h. |
|
Gets the location at listI.
Definition at line 194 of file gnBaseFeature.cpp. References m_locationList. Referenced by Contains(), Intersects(), and gnGBKSource::Write(). |
|
Returns the number of locations this feature describes.
Definition at line 324 of file gnBaseFeature.h. References m_locationList, and uint32. Referenced by Contains(), Intersects(), gnSEQSource::ParseStream(), gnGBKSource::ParseStream(), and gnGBKSource::Write(). |
|
Gets this feature's location type.
Definition at line 316 of file gnBaseFeature.h. References gnLocation::gnLocationType, and m_locationType. Referenced by gnGBKSource::Write(). |
|
Gets the feature name (e.g. CDS, trna...).
Definition at line 283 of file gnBaseFeature.h. References m_name. Referenced by SetQualifierValue(), and gnGBKSource::Write(). |
|
Gets the qualifier at the list index listI.
Definition at line 243 of file gnBaseFeature.cpp. References m_qualifierList. Referenced by gnGBKSource::Write(). |
|
Returns the number of qualifiers in this feature.
Definition at line 332 of file gnBaseFeature.h. References m_qualifierList, and uint32. Referenced by gnGBKSource::Write(). |
|
Gets the name of the qualifier at the list index listI.
Definition at line 231 of file gnBaseFeature.cpp. References m_qualifierList. |
|
Gets the value of the qualifier at the list index listI.
Definition at line 237 of file gnBaseFeature.cpp. References m_qualifierList. |
|
Gets the gnFragmentSpec to which this feature refers.
Definition at line 299 of file gnBaseFeature.h. References m_spec. |
|
Looks for a qualifier by name.
Definition at line 224 of file gnBaseFeature.cpp. References m_qualifierList, and uint32. |
|
Checks if the given feature intersects this feature.
Definition at line 173 of file gnBaseFeature.cpp. References GetLocation(), GetLocationListLength(), m_locationList, and uint32. |
|
Checks if the given location intersects this feature.
Definition at line 166 of file gnBaseFeature.cpp. References gnLocation::Intersects(), m_locationList, and uint32. |
|
Returns true if the feature is broken.
Definition at line 307 of file gnBaseFeature.h. References m_broken. |
|
Checks if this feature is entirely contained by the given location.
Definition at line 158 of file gnBaseFeature.cpp. References gnLocation::Contains(), m_locationList, and uint32. Referenced by gnGenomeSpec::AddFeature(). |
|
Searches for a qualifier by name, ending at the index listI.
Definition at line 86 of file gnBaseFeature.cpp. References GNSEQI_END, m_qualifierList, and uint32. |
|
Decreases this feature's coordinates by a specific number of bases.
Definition at line 49 of file gnBaseFeature.cpp. References m_locationList, and uint32. |
|
Increases this feature's coordinates by a specific number of bases.
Definition at line 41 of file gnBaseFeature.cpp. References m_locationList, and uint32. Referenced by gnGenomeSpec::GetFeature(). |
|
Deletes the location at listI.
Definition at line 200 of file gnBaseFeature.cpp. References m_locationList. |
|
Deletes the qualifier at the list index listI.
Definition at line 96 of file gnBaseFeature.cpp. References m_qualifierList. |
|
Sets whether the feature is broken or not.
Definition at line 311 of file gnBaseFeature.h. References m_broken. |
|
Sets this feature's ID.
Definition at line 295 of file gnBaseFeature.h. References m_id. |
|
Sets the location at listI to a new location.
Definition at line 208 of file gnBaseFeature.cpp. References m_locationList. |
|
Sets this feature's location type. LT_BetweenBases is not a valid feature location type.
Definition at line 320 of file gnBaseFeature.h. References m_locationType. Referenced by gnSEQSource::ParseStream(), and gnGBKSource::ParseStream(). |
|
Sets the feature name.
Definition at line 287 of file gnBaseFeature.h. References m_name. |
|
Set the name and value of the qualifier at the list index listI.
Definition at line 104 of file gnBaseFeature.cpp. References m_qualifierList. |
|
Set the name of the qualifier at the list index listI.
Definition at line 112 of file gnBaseFeature.cpp. References m_qualifierList. |
|
Set the value of the qualifier at the list index listI.
Definition at line 121 of file gnBaseFeature.cpp. References GetName(), and m_qualifierList. |
|
Sets the gnFragmentSpec to which this feature refers.
Definition at line 303 of file gnBaseFeature.h. References m_spec. Referenced by gnFragmentSpec::AddFeature(). |
|
Definition at line 275 of file gnBaseFeature.h. Referenced by gnBaseFeature(), gnFeature::gnFeature(), IsBroken(), and SetBroken(). |
|
Definition at line 273 of file gnBaseFeature.h. Referenced by GetID(), gnBaseFeature(), gnFeature::gnFeature(), and SetID(). |
|
Definition at line 277 of file gnBaseFeature.h. Referenced by AddLocation(), Contains(), CropEnd(), CropStart(), GetLocation(), GetLocationListLength(), gnFeature::gnFeature(), Intersects(), IsContainedBy(), MoveNegative(), MovePositive(), RemoveLocation(), and SetLocation(). |
|
Definition at line 276 of file gnBaseFeature.h. Referenced by GetLocationType(), gnBaseFeature(), gnFeature::gnFeature(), and SetLocationType(). |
|
Definition at line 274 of file gnBaseFeature.h. Referenced by GetName(), gnBaseFeature(), gnFeature::gnFeature(), and SetName(). |
|
Definition at line 278 of file gnBaseFeature.h. Referenced by AddQualifier(), FirstIndexOfQualifier(), GetQualifier(), GetQualifierListLength(), GetQualifierName(), GetQualifierValue(), gnFeature::gnFeature(), HasQualifier(), LastIndexOfQualifier(), RemoveQualifier(), SetQualifier(), SetQualifierName(), SetQualifierValue(), and ~gnBaseFeature(). |
|
Definition at line 279 of file gnBaseFeature.h. Referenced by GetSpec(), gnBaseFeature(), gnFeature::gnFeature(), and SetSpec(). |