64 m_object->RemoveReference();
76 (m_object =
new(pool) ncbi::objects::CGC_Sequence())->
AddReference();
95 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
100 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
105 CheckSelected(e_Single);
106 return *
static_cast<const TSingle*
>(m_object);
112 return *
static_cast<TSingle*
>(m_object);
118 if ( m_choice != e_Single || m_object != ptr ) {
134 info->CodeVersion(22400);
135 info->DataSpec(ncbi::EDataSpec::eASN);
170 (*m_Sequence).Reset();
192 info->CodeVersion(22400);
193 info->DataSpec(ncbi::EDataSpec::eASN);
User-defined methods of the data storage class.
BEGIN_NAMED_CHOICE_INFO("", CGC_Replicon_Base::C_Sequence)
BEGIN_NAMED_BASE_CLASS_INFO("GC-Replicon", CGC_Replicon)
User-defined methods of the data storage class.
the sequence(s) representing this molecule in the case of 2L and 2R - the molecule is represented by ...
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define MEMBER_PTR(MemberName)
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
#define ADD_NAMED_REF_CHOICE_VARIANT(MemberAlias, MemberName, ClassName)
#define ADD_NAMED_STD_MEMBER(MemberAlias, MemberName)
#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)
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.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
static const char *const sm_SelectionNames[]
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
CRef< TSequence > m_Sequence
void ResetName(void)
Reset Name data member.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void ResetLocal_name(void)
Reset Local_name data member.
void ResetSequence(void)
Reset Sequence data member.
virtual ~CGC_Replicon_Base(void)
TSingle & SetSingle(void)
Select the variant.
const TSingle & GetSingle(void) const
Get the variant data.
void Reset(void)
Reset the whole object.
TSequence & SetSequence(void)
Assign a value to Sequence data member.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
virtual void Reset(void)
Reset the whole object.
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value