66 m_object->RemoveReference();
78 (m_object =
new(pool) ncbi::objects::CReal_graph())->
AddReference();
81 (m_object =
new(pool) ncbi::objects::CInt_graph())->
AddReference();
84 (m_object =
new(pool) ncbi::objects::CByte_graph())->
AddReference();
101 return NCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
106 throw NCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
111 CheckSelected(e_Real);
112 return *
static_cast<const TReal*
>(m_object);
118 return *
static_cast<TReal*
>(m_object);
124 if ( m_choice != e_Real || m_object != ptr ) {
133 CheckSelected(e_Int);
134 return *
static_cast<const TInt*
>(m_object);
140 return *
static_cast<TInt*
>(m_object);
146 if ( m_choice != e_Int || m_object != ptr ) {
155 CheckSelected(e_Byte);
156 return *
static_cast<const TByte*
>(m_object);
162 return *
static_cast<TByte*
>(m_object);
168 if ( m_choice != e_Byte || m_object != ptr ) {
185 info->CodeVersion(22400);
186 info->DataSpec(ncbi::EDataSpec::eASN);
283 info->CodeVersion(22400);
284 info->DataSpec(ncbi::EDataSpec::eASN);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
BEGIN_NAMED_BASE_CLASS_INFO("Seq-graph", CSeq_graph)
BEGIN_NAMED_CHOICE_INFO("", CSeq_graph_Base::C_Graph)
#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)
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.
void ResetTitle(void)
Reset Title data member.
void ResetTitle_y(void)
Reset Title_y data member.
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
TLoc & SetLoc(void)
Assign a value to Loc data member.
void ResetA(void)
Reset A data member.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
TByte & SetByte(void)
Select the variant.
virtual void Reset(void)
Reset the whole object.
const TInt & GetInt(void) const
Get the variant data.
TReal & SetReal(void)
Select the variant.
TInt & SetInt(void)
Select the variant.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
const TByte & GetByte(void) const
Get the variant data.
const TReal & GetReal(void) const
Get the variant data.
virtual ~CSeq_graph_Base(void)
void ResetLoc(void)
Reset Loc data member.
void ResetTitle_x(void)
Reset Title_x data member.
void ResetNumval(void)
Reset Numval data member.
void ResetComp(void)
Reset Comp data member.
TGraph & SetGraph(void)
Assign a value to Graph data member.
void ResetComment(void)
Reset Comment data member.
void Reset(void)
Reset the whole object.
void ResetGraph(void)
Reset Graph data member.
void ResetB(void)
Reset B data member.
static const char *const sm_SelectionNames[]
void ResetSelection(void)
Reset the selection (set it to e_not_set).
@ e_not_set
No variant selected.
const GenericPointer< typename T::ValueType > T2 value