Go to the SVN repository for this file.
41 #ifndef OBJECTS_SEQ_SEQ_EXT_BASE_HPP 42 #define OBJECTS_SEQ_SEQ_EXT_BASE_HPP 48 #ifndef BEGIN_objects_SCOPE 49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects) 50 # define END_objects_SCOPE END_SCOPE(objects) 105 virtual voidReset(
void);
108 virtual voidResetSelection(
void);
114E_Choice Which(
void)
const;
120 voidCheckSelected(E_Choice index)
const;
126NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
134 static stringSelectionName(E_Choice index);
167 boolIsSeg(
void)
const;
173 const TSeg& GetSeg(
void)
const;
179 TSeg& SetSeg(
void);
193 boolIsRef(
void)
const;
199 const TRef& GetRef(
void)
const;
205 TRef& SetRef(
void);
219 boolIsMap(
void)
const;
225 const TMap& GetMap(
void)
const;
231 TMap& SetMap(
void);
245 boolIsDelta(
void)
const;
251 const TDelta& GetDelta(
void)
const;
257 TDelta& SetDelta(
void);
274 static const char*
constsm_SelectionNames[];
*** Sequence Extensions ********************************** * for representing more complex types * co...
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool IsMap(void) const
Check if variant Map is selected.
bool IsRef(void) const
Check if variant Ref is selected.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
CSeq_ext_Base & operator=(const CSeq_ext_Base &)
CSeq_ext_Base(const CSeq_ext_Base &)
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
bool IsSeg(void) const
Check if variant Seg is selected.
DECLARE_INTERNAL_TYPE_INFO()
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsDelta(void) const
Check if variant Delta is selected.
E_Choice
Choice variants.
E_Choice Which(void) const
Which variant is currently selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
NCBI_NS_NCBI::CSerialObject * m_object
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
@ e_not_set
No variant selected.
@ e_Seg
segmented sequences
@ e_Map
ordered map of markers
@ e_Ref
hot link to another sequence (a view)
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