Reset(
void);
119 virtual voidResetSelection(
void);
125E_Choice Which(
void)
const;
131 voidCheckSelected(E_Choice index)
const;
137NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
145 static stringSelectionName(E_Choice index);
183 boolIsNull(
void)
const;
186 voidSetNull(
void);
195 boolIsEmpty(
void)
const;
201 const TEmpty& GetEmpty(
void)
const;
207 TEmpty& SetEmpty(
void);
221 boolIsWhole(
void)
const;
227 const TWhole& GetWhole(
void)
const;
233 TWhole& SetWhole(
void);
247 boolIsInt(
void)
const;
253 const TInt& GetInt(
void)
const;
259 TInt& SetInt(
void);
273 boolIsPacked_int(
void)
const;
299 boolIsPnt(
void)
const;
305 const TPnt& GetPnt(
void)
const;
311 TPnt& SetPnt(
void);
325 boolIsPacked_pnt(
void)
const;
351 boolIsMix(
void)
const;
357 const TMix& GetMix(
void)
const;
363 TMix& SetMix(
void);
377 boolIsEquiv(
void)
const;
383 const TEquiv& GetEquiv(
void)
const;
389 TEquiv& SetEquiv(
void);
403 boolIsBond(
void)
const;
409 const TBond& GetBond(
void)
const;
415 TBond& SetBond(
void);
429 boolIsFeat(
void)
const;
435 const TFeat& GetFeat(
void)
const;
441 TFeat& SetFeat(
void);
458 static const char*
constsm_SelectionNames[];
*** Sequence locations ********************************** *
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_SEQLOC_EXPORT
bool IsMix(void) const
Check if variant Mix is selected.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsEmpty(void) const
Check if variant Empty is selected.
void SetNull(void)
Select the variant.
bool IsFeat(void) const
Check if variant Feat is selected.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
CPacked_seqpnt TPacked_pnt
bool IsPacked_pnt(void) const
Check if variant Packed_pnt is selected.
bool IsEquiv(void) const
Check if variant Equiv is selected.
DECLARE_INTERNAL_TYPE_INFO()
E_Choice Which(void) const
Which variant is currently selected.
CPacked_seqint TPacked_int
bool IsBond(void) const
Check if variant Bond is selected.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
CSeq_loc_Base(const CSeq_loc_Base &)
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
CSeq_loc_Base & operator=(const CSeq_loc_Base &)
bool IsPacked_int(void) const
Check if variant Packed_int is selected.
NCBI_NS_NCBI::CSerialObject * m_object
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
bool IsWhole(void) const
Check if variant Whole is selected.
bool IsInt(void) const
Check if variant Int is selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsNull(void) const
Check if variant Null is selected.
E_Choice
Choice variants.
bool IsPnt(void) const
Check if variant Pnt is selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
@ e_not_set
No variant selected.
@ e_Equiv
equivalent sets of locations
@ e_Empty
to NULL one Seq-id in a collection
@ e_Feat
indirect, through a Seq-feat
const GenericPointer< typename T::ValueType > T2 value
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4