68 m_object->RemoveReference();
80 (m_object =
new(pool) ncbi::objects::CCount())->
AddReference();
83 (m_object =
new(pool) ncbi::objects::CSubsequence())->
AddReference();
105 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
110 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
127 CheckSelected(e_Count);
128 return *
static_cast<const TCount*
>(m_object);
134 return *
static_cast<TCount*
>(m_object);
140 if ( m_choice != e_Count || m_object != ptr ) {
149 CheckSelected(e_Subseq);
150 return *
static_cast<const TSubseq*
>(m_object);
156 return *
static_cast<TSubseq*
>(m_object);
162 if ( m_choice != e_Subseq || m_object != ptr ) {
180 info->CodeVersion(22400);
181 info->DataSpec(ncbi::EDataSpec::eASN);
218 (*m_Seqinfo).Reset();
238 info->CodeVersion(22400);
239 info->DataSpec(ncbi::EDataSpec::eASN);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("Insertion", CInsertion)
BEGIN_NAMED_CHOICE_INFO("", CInsertion_Base::C_Seqinfo)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
#define ADD_NAMED_REF_CHOICE_VARIANT(MemberAlias, MemberName, ClassName)
#define SET_CLASS_MODULE(ModuleName)
#define SET_INTERNAL_NAME(OwnerName, MemberName)
#define SET_CHOICE_MODULE(ModuleName)
#define ADD_NAMED_BUF_CHOICE_VARIANT(MemberAlias, MemberName, TypeMacro, TypeMacroArgs)
Uint8 TCount
Alias for value type of counter.
void AddReference(void) const
Add reference to object.
bool IsAllocatedInPool(void) const THROWS_NONE
Check if object is allocated in memory pool (not system heap)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
CRef< TSeqinfo > m_Seqinfo
TSeqinfo & SetSeqinfo(void)
Assign a value to Seqinfo data member.
void ResetSeqinfo(void)
Reset Seqinfo data member.
TRaw_seq & SetRaw_seq(void)
Select the variant.
TIdentifier & SetIdentifier(void)
Select the variant.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
virtual void Reset(void)
Reset the whole object.
const TCount & GetCount(void) const
Get the variant data.
TCount & SetCount(void)
Select the variant.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void ResetInt(void)
Reset Int data member.
void Reset(void)
Reset the whole object.
const TSubseq & GetSubseq(void) const
Get the variant data.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
static const char *const sm_SelectionNames[]
TInt & SetInt(void)
Assign a value to Int data member.
TSubseq & SetSubseq(void)
Select the variant.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
virtual ~CInsertion_Base(void)
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value