41 #ifndef OBJECTS_SEQ_SEQ_INST_BASE_HPP
42 #define OBJECTS_SEQ_SEQ_INST_BASE_HPP
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
122 eTopology_not_set = 0,
123 eTopology_linear = 1,
124 eTopology_circular = 2,
125 eTopology_tandem = 3,
126 eTopology_other = 255
180 bool IsSetRepr(
void)
const;
187 bool CanGetRepr(
void)
const;
190 void ResetRepr(
void);
196 TRepr GetRepr(
void)
const;
208 TRepr& SetRepr(
void);
217 bool IsSetMol(
void)
const;
224 bool CanGetMol(
void)
const;
233 TMol GetMol(
void)
const;
255 bool IsSetLength(
void)
const;
262 bool CanGetLength(
void)
const;
265 void ResetLength(
void);
293 bool IsSetFuzz(
void)
const;
300 bool CanGetFuzz(
void)
const;
303 void ResetFuzz(
void);
321 TFuzz& SetFuzz(
void);
330 bool IsSetTopology(
void)
const;
337 bool CanGetTopology(
void)
const;
340 void ResetTopology(
void);
343 void SetDefaultTopology(
void);
370 bool IsSetStrand(
void)
const;
377 bool CanGetStrand(
void)
const;
380 void ResetStrand(
void);
408 bool IsSetSeq_data(
void)
const;
415 bool CanGetSeq_data(
void)
const;
418 void ResetSeq_data(
void);
424 const TSeq_data& GetSeq_data(
void)
const;
446 bool IsSetExt(
void)
const;
453 bool CanGetExt(
void)
const;
462 const TExt& GetExt(
void)
const;
484 bool IsSetHist(
void)
const;
491 bool CanGetHist(
void)
const;
494 void ResetHist(
void);
500 const THist& GetHist(
void)
const;
512 THist& SetHist(
void);
515 virtual void Reset(
void);
828 return m_Ext.NotEmpty();
*** Instances of sequences ******************************* * the sequence data itself
Base class for all serializable objects.
unsigned int TSeqPos
Type for sequence locations and lengths.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
TSeqPos GetLength(const CSeq_id &id, CScope *scope)
Get sequence length if scope not null, else return max possible TSeqPos.
ENa_strand GetStrand(const CSeq_loc &loc, CScope *scope=0)
Returns eNa_strand_unknown if multiple Bioseqs in loc Returns eNa_strand_other if multiple strands in...
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void ResetStrand(void)
Reset Strand data member.
TRepr GetRepr(void) const
Get the Repr member data.
bool IsSetSeq_data(void) const
the sequence Check if a value has been assigned to Seq_data data member.
TRepr & SetRepr(void)
Assign a value to Repr data member.
TStrand GetStrand(void) const
Get the Strand member data.
bool CanGetStrand(void) const
Check if it is safe to call GetStrand method.
ERepr
representation class
void ResetMol(void)
Reset Mol data member.
CRef< TSeq_data > m_Seq_data
TTopology GetTopology(void) const
Get the Topology member data.
bool CanGetMol(void) const
Check if it is safe to call GetMol method.
bool IsSetRepr(void) const
Check if a value has been assigned to Repr data member.
bool IsSetMol(void) const
Check if a value has been assigned to Mol data member.
const TFuzz & GetFuzz(void) const
Get the Fuzz member data.
bool CanGetTopology(void) const
Check if it is safe to call GetTopology method.
bool IsSetStrand(void) const
Check if a value has been assigned to Strand data member.
bool CanGetLength(void) const
Check if it is safe to call GetLength method.
Tparent::CMemberIndex< E_memberIndex, 10 > TmemberIndex
bool IsSetHist(void) const
sequence history Check if a value has been assigned to Hist data member.
bool IsSetExt(void) const
extensions for special types Check if a value has been assigned to Ext data member.
DECLARE_INTERNAL_TYPE_INFO()
TLength GetLength(void) const
Get the Length member data.
TMol GetMol(void) const
Get the Mol member data.
bool CanGetFuzz(void) const
Check if it is safe to call GetFuzz method.
void SetDefaultTopology(void)
Assign default value to Topology data member.
bool IsSetLength(void) const
length of sequence in residues Check if a value has been assigned to Length data member.
bool CanGetHist(void) const
Check if it is safe to call GetHist method.
const THist & GetHist(void) const
Get the Hist member data.
const TExt & GetExt(void) const
Get the Ext member data.
bool CanGetRepr(void) const
Check if it is safe to call GetRepr method.
void ResetTopology(void)
Reset Topology data member.
ETopology
topology of molecule
TTopology & SetTopology(void)
Assign a value to Topology data member.
EMol
molecule class in living organism
TMol & SetMol(void)
Assign a value to Mol data member.
EStrand
strandedness in living organism
bool CanGetExt(void) const
Check if it is safe to call GetExt method.
bool CanGetSeq_data(void) const
Check if it is safe to call GetSeq_data method.
void ResetLength(void)
Reset Length data member.
CSeq_inst_Base & operator=(const CSeq_inst_Base &)
TLength & SetLength(void)
Assign a value to Length data member.
const TSeq_data & GetSeq_data(void) const
Get the Seq_data member data.
void ResetRepr(void)
Reset Repr data member.
bool IsSetTopology(void) const
Check if a value has been assigned to Topology data member.
bool IsSetFuzz(void) const
length uncertainty Check if a value has been assigned to Fuzz data member.
CSeq_inst_Base(const CSeq_inst_Base &)
TStrand & SetStrand(void)
Assign a value to Strand data member.
static const CInt_fuzz * GetFuzz(const CDelta_item &delta)