(
void)
const;
338 bool IsDup(
void)
const;
364 bool IsInv(
void)
const;
390 bool IsIns(
void)
const;
416 bool IsConv(
void)
const;
646 virtual void Reset(
void);
678 if( m_choice != index )
679ThrowInvalidSelection(index);
688DoSelect(index, pool);
695Select(index, reset, 0);
701 returnm_choice == e_Na_identity;
707 returnm_choice == e_Na_sub;
713 returnm_choice == e_Prot_sub;
719 returnm_choice == e_Prot_silent;
725 returnm_choice == e_Del;
731 returnm_choice == e_Dup;
737 returnm_choice == e_Inv;
743 returnm_choice == e_Ins;
749 returnm_choice == e_Conv;
755 returnm_choice == e_Delins;
761 returnm_choice == e_Repeat;
767 returnm_choice == e_Prot_ext;
773 returnm_choice == e_Frameshift;
779 return m_Type.NotEmpty();
Base class for all serializable objects.
static char UnassignedByte(void)
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.
TType & SetType(void)
Assign a value to Type data member.
void SetDefaultFuzzy(void)
Assign default value to Fuzzy data member.
void Reset(void)
Reset the whole object.
bool IsNa_sub(void) const
Check if variant Na_sub is selected.
const TProt_sub & GetProt_sub(void) const
Get the variant data.
bool IsInv(void) const
Check if variant Inv is selected.
TDelins & SetDelins(void)
Select the variant.
const TDup & GetDup(void) const
Get the variant data.
bool IsDel(void) const
Check if variant Del is selected.
const TDelins & GetDelins(void) const
Get the variant data.
const TInv & GetInv(void) const
Get the variant data.
C_Type & operator=(const C_Type &)
bool IsRepeat(void) const
Check if variant Repeat is selected.
bool IsProt_sub(void) const
Check if variant Prot_sub is selected.
CSimpleVariant_Base & operator=(const CSimpleVariant_Base &)
TDup & SetDup(void)
Select the variant.
bool IsFrameshift(void) const
Check if variant Frameshift is selected.
void ResetType(void)
Reset Type data member.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
void ResetSelection(void)
Reset the selection (set it to e_not_set).
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
CSimpleVariant_Base(const CSimpleVariant_Base &)
bool IsProt_ext(void) const
Check if variant Prot_ext is selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
bool CanGetType(void) const
Check if it is safe to call GetType method.
E_Choice
Choice variants.
DECLARE_INTERNAL_TYPE_INFO()
const TDel & GetDel(void) const
Get the variant data.
DECLARE_INTERNAL_TYPE_INFO()
bool IsDelins(void) const
Check if variant Delins is selected.
bool IsIns(void) const
Check if variant Ins is selected.
const TNa_sub & GetNa_sub(void) const
Get the variant data.
bool IsNa_identity(void) const
Check if variant Na_identity is selected.
bool CanGetFuzzy(void) const
Check if it is safe to call GetFuzzy method.
bool IsDup(void) const
Check if variant Dup is selected.
TFrameshift & SetFrameshift(void)
Select the variant.
virtual ~CSimpleVariant_Base(void)
NCBI_NS_NCBI::CSerialObject * m_object
TFuzzy GetFuzzy(void) const
Get the Fuzzy member data.
TConv & SetConv(void)
Select the variant.
bool IsSetFuzzy(void) const
Check if a value has been assigned to Fuzzy data member.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
bool IsProt_silent(void) const
Check if variant Prot_silent is selected.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
TRepeat & SetRepeat(void)
Select the variant.
CProteinExtension TProt_ext
virtual void Reset(void)
Reset the whole object.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
const TType & GetType(void) const
Get the Type member data.
TNa_identity & SetNa_identity(void)
Select the variant.
bool IsConv(void) const
Check if variant Conv is selected.
const TFrameshift & GetFrameshift(void) const
Get the variant data.
TFuzzy & SetFuzzy(void)
Assign a value to Fuzzy data member.
CSimpleVariant_Base(void)
TInv & SetInv(void)
Select the variant.
TDel & SetDel(void)
Select the variant.
const TProt_silent & GetProt_silent(void) const
Get the variant data.
TProt_ext & SetProt_ext(void)
Select the variant.
const TIns & GetIns(void) const
Get the variant data.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
static const char *const sm_SelectionNames[]
TProt_sub & SetProt_sub(void)
Select the variant.
TProt_silent & SetProt_silent(void)
Select the variant.
TNa_sub & SetNa_sub(void)
Select the variant.
TIns & SetIns(void)
Select the variant.
bool IsSetType(void) const
Check if a value has been assigned to Type data member.
void ResetFuzzy(void)
Reset Fuzzy data member.
const TNa_identity & GetNa_identity(void) const
Get the variant data.
const TConv & GetConv(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
const TRepeat & GetRepeat(void) const
Get the variant data.
const TProt_ext & GetProt_ext(void) const
Get the variant data.
@ e_not_set
No variant selected.
@ e_Repeat
short-sequence repeat (ssr)
@ e_MaxChoice
== e_Frameshift+1
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