41 #ifndef OBJECTS_SEQSPLIT_ID2S_GI_INTERVAL_BASE_HPP
42 #define OBJECTS_SEQSPLIT_ID2S_GI_INTERVAL_BASE_HPP
48 #ifndef BEGIN_objects_SCOPE
49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
50 # define END_objects_SCOPE END_SCOPE(objects)
104 bool IsSetGi(
void)
const;
111 bool CanGetGi(
void)
const;
120 TGi GetGi(
void)
const;
141 bool IsSetStart(
void)
const;
148 bool CanGetStart(
void)
const;
151 void ResetStart(
void);
178 bool IsSetLength(
void)
const;
185 bool CanGetLength(
void)
const;
188 void ResetLength(
void);
191 void SetDefaultLength(
void);
212 virtual void Reset(
void);
261 return reinterpret_cast<const TGi&
>(
m_Gi);
280 return reinterpret_cast<TGi&
>(
m_Gi);
CID2S_Gi_Interval_Base –.
Base class for all serializable objects.
unsigned int TSeqPos
Type for sequence locations and lengths.
CStrictId< SStrictId_Gi, SStrictId_Gi::TId > TGi
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
TSeqPos GetLength(const CSeq_id &id, CScope *scope)
Get sequence length if scope not null, else return max possible TSeqPos.
TSeqPos GetStart(const CSeq_loc &loc, CScope *scope, ESeqLocExtremes ext=eExtreme_Positional)
If only one CBioseq is represented by CSeq_loc, returns the position at the start of the location.
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.
CID2S_Gi_Interval_Base(const CID2S_Gi_Interval_Base &)
void ResetLength(void)
Reset Length data member.
bool CanGetGi(void) const
Check if it is safe to call GetGi method.
bool IsSetLength(void) const
Check if a value has been assigned to Length data member.
DECLARE_INTERNAL_TYPE_INFO()
void ResetGi(void)
Reset Gi data member.
void ResetStart(void)
Reset Start data member.
bool IsSetStart(void) const
Check if a value has been assigned to Start data member.
bool CanGetStart(void) const
Check if it is safe to call GetStart method.
TGi GetGi(void) const
Get the Gi member data.
Tparent::CMemberIndex< E_memberIndex, 4 > TmemberIndex
TLength & SetLength(void)
Assign a value to Length data member.
bool IsSetGi(void) const
Check if a value has been assigned to Gi data member.
TStart & SetStart(void)
Assign a value to Start data member.
CID2S_Gi_Interval_Base & operator=(const CID2S_Gi_Interval_Base &)
bool CanGetLength(void) const
Check if it is safe to call GetLength method.
TLength GetLength(void) const
Get the Length member data.
TStart GetStart(void) const
Get the Start member data.
TGi & SetGi(void)
Assign a value to Gi data member.
void SetDefaultLength(void)
Assign default value to Length data member.