Reset(
void);
102 virtual voidResetSelection(
void);
108E_Choice Which(
void)
const;
114 voidCheckSelected(E_Choice index)
const;
120NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
128 static stringSelectionName(E_Choice index);
159 boolIsId(
void)
const;
186 boolIsStr(
void)
const;
192 const TStr& GetStr(
void)
const;
198 TStr& SetStr(
void);
216 static const char*
constsm_SelectionNames[];
220NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
Object-id can tag or name anything.
Base class for all serializable objects.
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GENERAL_EXPORT
bool IsStr(void) const
Check if variant Str is selected.
CObject_id_Base & operator=(const CObject_id_Base &)
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
bool IsId(void) const
Check if variant Id is selected.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
E_Choice Which(void) const
Which variant is currently selected.
void * m_dummy_pointer_for_alignment
const TStr & GetStr(void) const
Get the variant data.
TStr & SetStr(void)
Select the variant.
CObject_id_Base(const CObject_id_Base &)
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
DECLARE_INTERNAL_TYPE_INFO()
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TId & SetId(void)
Select the variant.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
E_Choice
Choice variants.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
TId GetId(void) const
Get the variant data.
@ e_not_set
No variant selected.
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