eType_standardized = 1,
88eType_neutralized = 3,
133 voidResetSelection(
void);
139E_Choice Which(
void)
const;
145 voidCheckSelected(E_Choice index)
const;
151NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
159 static stringSelectionName(E_Choice index);
191 boolIsCid(
void)
const;
197 TCidGetCid(
void)
const;
203 TCid& SetCid(
void);
218 boolIsSid(
void)
const;
224 TSidGetSid(
void)
const;
230 TSid& SetSid(
void);
245 boolIsXid(
void)
const;
251 TXidGetXid(
void)
const;
257 TXid& SetXid(
void);
275 static const char*
constsm_SelectionNames[];
305 boolIsSetType(
void)
const;
312 boolCanGetType(
void)
const;
315 voidResetType(
void);
321 TTypeGetType(
void)
const;
333 TType& SetType(
void);
342 boolIsSetId(
void)
const;
349 boolCanGetId(
void)
const;
352 voidResetId(
void);
373 virtual voidReset(
void);
405 if( m_choice != index )
406ThrowInvalidSelection(index);
415DoSelect(index, pool);
422Select(index, reset, 0);
428 returnm_choice == e_Cid;
434CheckSelected(e_Cid);
455 returnm_choice == e_Sid;
461CheckSelected(e_Sid);
482 returnm_choice == e_Xid;
488CheckSelected(e_Xid);
556 return m_Id.NotEmpty();
Compound Namespace and ID (absent for "deposited" type compounds)
Qualification used to describe the type of Compound deposited, standardized, or derived.
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
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,...
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_PCSUBSTANCE_EXPORT
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
TType GetType(void) const
Get the Type member data.
TXid GetXid(void) const
Get the variant data.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool CanGetType(void) const
Check if it is safe to call GetType method.
E_Choice Which(void) const
Which variant is currently selected.
bool IsCid(void) const
Check if variant Cid is selected.
TSid & SetSid(void)
Select the variant.
TXid & SetXid(void)
Select the variant.
void ResetType(void)
Reset Type data member.
TCid & SetCid(void)
Select the variant.
DECLARE_INTERNAL_TYPE_INFO()
CPC_CompoundType_Base(const CPC_CompoundType_Base &)
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
TCid GetCid(void) const
Get the variant data.
TSid GetSid(void) const
Get the variant data.
DECLARE_INTERNAL_TYPE_INFO()
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
C_Id & operator=(const C_Id &)
bool IsXid(void) const
Check if variant Xid is selected.
EType
Compound Qualifier or Type For Compound Depositions.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
const TId & GetId(void) const
Get the Id member data.
TType & SetType(void)
Assign a value to Type data member.
CPC_CompoundType_Base & operator=(const CPC_CompoundType_Base &)
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
E_Choice
Choice variants.
bool IsSid(void) const
Check if variant Sid is selected.
bool CanGetId(void) const
Check if it is safe to call GetId method.
bool IsSetType(void) const
Check if a value has been assigned to Type data member.
@ e_Sid
PubChem Substance (for "mixture" type compounds)
@ e_Cid
Standardized Compound.
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