37 #ifndef OBJECTS_SEQFEAT_SEQ_FEAT_HPP
38 #define OBJECTS_SEQFEAT_SEQ_FEAT_HPP
86 void AddQualifier(
const string& qual_name,
const string& qual_val);
90 void AddOrReplaceQualifier(
const string& qual_name,
const string& qual_val);
95 void RemoveQualifier(
const string& qual_name);
98 void AddDbxref(
const string& db_name,
const string& db_key);
99 void AddDbxref(
const string& db_name,
int db_key);
103 void AddExceptText(
const string & exception_text);
107 void RemoveExceptText(
const string & exception_text);
112 static vector<string> GetListOfLegalExceptions(
bool include_refseq);
115 static bool IsExceptionTextInLegalList(
const string& exception_text,
bool allow_refseq);
118 static bool IsExceptionTextRefSeqOnly(
const string& exception_text);
145 bool HasExceptionText(
const string & exception_text )
const;
161 int CompareStrict(
const CSeq_feat& f2)
const;
176 int CompareNonLocation(
const CSeq_feat& f2,
181 int GetTypeSortingOrder(
void)
const;
194 fAddExt_ReplaceAll = 1 << 0
211 void RemoveExt(
const string& ext_type);
User-defined methods of the data storage class.
bool operator<(const CSeq_feat &f1, const CSeq_feat &f2)
*** Seq-feat ******************************************* * sequence feature generalization
namespace ncbi::objects::
int GetTypeSortingOrder(void) const
Return relative importance order of features by their type.
CSeq_feat(void)
constructor
int CompareNonLocation(const CSeq_feat &f2, const CSeq_loc &loc1, const CSeq_loc &loc2) const
Compare relative order of this feature and feature f2 similarily to the Compare() method,...
CSeq_feat & operator=(const CSeq_feat &value)
int TAddExt
binary OR of EAddExt
int Compare(const CSeq_feat &f2) const
Compare relative order of this feature and feature f2, ordering first by features' coordinates,...
CSeq_feat(const CSeq_feat &value)
Prohibit copy constructor and assignment operator.
set< CTempStringEx, PNocase > TExceptionTextSet
Warning: This is invalidated if the underlying except_text is changed in any way.
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
virtual const string & GetNamedQual(const CTempString &qual_name) const =0
Return a named qualifier.
virtual const CProt_ref * GetProtXref(void) const =0
get protein (if present) from Seq-feat.xref list
virtual CConstRef< CDbtag > GetNamedDbxref(const CTempString &db) const =0
Return a specified DB xref.
virtual const CGene_ref * GetGeneXref(void) const =0
get gene (if present) from Seq-feat.xref list
int Compare(const CSeq_loc &loc) const
sequence::ECompare Compare(const CSeq_loc &loc1, const CSeq_loc &loc2, CScope *scope)
Returns the sequence::ECompare containment relationship between CSeq_locs.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_SEQFEAT_EXPORT
const TLocation & GetLocation(void) const
Get the Location member data.
const TData & GetData(void) const
Get the Data member data.
const GenericPointer< typename T::ValueType > T2 value