ResetSelection(
void);
124E_Choice Which(
void)
const;
130 voidCheckSelected(E_Choice index)
const;
136NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
144 static stringSelectionName(E_Choice index);
175 boolIsReal(
void)
const;
181 TRealGetReal(
void)
const;
187 TReal& SetReal(
void);
202 boolIsInt(
void)
const;
208 TIntGetInt(
void)
const;
214 TInt& SetInt(
void);
232 static const char*
constsm_SelectionNames[];
261 boolIsSetId(
void)
const;
268 boolCanGetId(
void)
const;
271 voidResetId(
void);
298 boolIsSetValue(
void)
const;
305 boolCanGetValue(
void)
const;
308 voidResetValue(
void);
314 const TValue& GetValue(
void)
const;
320 TValue& SetValue(
void);
323 virtual voidReset(
void);
357 if( m_choice != index )
358ThrowInvalidSelection(index);
367DoSelect(index, pool);
374Select(index, reset, 0);
380 returnm_choice == e_Real;
386CheckSelected(e_Real);
407 returnm_choice == e_Int;
413CheckSelected(e_Int);
434 return m_Id.NotEmpty();
use of Score is discouraged for external ASN.1 specifications
Base class for all serializable objects.
void ThrowUnassigned(TMemberIndex index) const
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,...
virtual void DoNotDeleteThisObject(void)
Mark this object as not allocated in heap â do not delete this object.
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.
#define NCBI_SEQALIGN_EXPORT
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
DECLARE_INTERNAL_TYPE_INFO()
E_Choice
Choice variants.
E_Choice Which(void) const
Which variant is currently selected.
TInt & SetInt(void)
Select the variant.
C_Value & operator=(const C_Value &)
TValue & SetValue(void)
Assign a value to Value data member.
bool IsReal(void) const
Check if variant Real is selected.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TReal & SetReal(void)
Select the variant.
bool CanGetValue(void) const
Check if it is safe to call GetValue method.
CScore_Base & operator=(const CScore_Base &)
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
CScore_Base(const CScore_Base &)
TInt GetInt(void) const
Get the variant data.
bool IsInt(void) const
Check if variant Int is selected.
DECLARE_INTERNAL_TYPE_INFO()
const TValue & GetValue(void) const
Get the Value member data.
bool CanGetId(void) const
Check if it is safe to call GetId method.
bool IsSetValue(void) const
Check if a value has been assigned to Value data member.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
TReal GetReal(void) const
Get the variant data.
const TId & GetId(void) const
Get the Id member data.
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