ResetSelection(
void);
134E_Choice Which(
void)
const;
140 voidCheckSelected(E_Choice index)
const;
146NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
154 static stringSelectionName(E_Choice index);
188 boolIsBinomial(
void)
const;
194 const TBinomial& GetBinomial(
void)
const;
214 boolIsVirus(
void)
const;
220 const TVirus& GetVirus(
void)
const;
226 TVirus& SetVirus(
void);
241 boolIsHybrid(
void)
const;
247 const THybrid& GetHybrid(
void)
const;
267 boolIsNamedhybrid(
void)
const;
293 boolIsPartial(
void)
const;
299 const TPartial& GetPartial(
void)
const;
322 static const char*
constsm_SelectionNames[];
325NCBI_NS_NCBI::CUnionBuffer<NCBI_NS_STD::string>
m_string;
332 typedeflist< CRef< COrgMod > >
TMod;
363 boolIsSetName(
void)
const;
370 boolCanGetName(
void)
const;
373 voidResetName(
void);
379 const TName& GetName(
void)
const;
391 TName& SetName(
void);
401 boolIsSetAttrib(
void)
const;
408 boolCanGetAttrib(
void)
const;
411 voidResetAttrib(
void);
417 const TAttrib& GetAttrib(
void)
const;
439 boolIsSetMod(
void)
const;
446 boolCanGetMod(
void)
const;
449 voidResetMod(
void);
455 const TMod& GetMod(
void)
const;
461 TMod& SetMod(
void);
471 boolIsSetLineage(
void)
const;
478 boolCanGetLineage(
void)
const;
481 voidResetLineage(
void);
487 const TLineage& GetLineage(
void)
const;
510 boolIsSetGcode(
void)
const;
517 boolCanGetGcode(
void)
const;
520 voidResetGcode(
void);
548 boolIsSetMgcode(
void)
const;
555 boolCanGetMgcode(
void)
const;
558 voidResetMgcode(
void);
564 TMgcodeGetMgcode(
void)
const;
586 boolIsSetDiv(
void)
const;
593 boolCanGetDiv(
void)
const;
596 voidResetDiv(
void);
602 const TDiv& GetDiv(
void)
const;
625 boolIsSetPgcode(
void)
const;
632 boolCanGetPgcode(
void)
const;
635 voidResetPgcode(
void);
641 TPgcodeGetPgcode(
void)
const;
656 virtual voidReset(
void);
694 if( m_choice != index )
695ThrowInvalidSelection(index);
704DoSelect(index, pool);
711Select(index, reset, 0);
717 returnm_choice == e_Binomial;
723 returnm_choice == e_Virus;
729CheckSelected(e_Virus);
743 returnm_choice == e_Hybrid;
749 returnm_choice == e_Namedhybrid;
755 returnm_choice == e_Partial;
761 return m_Name.NotEmpty();
1023 m_Div= std::forward<COrgName_Base::TDiv>(
value);
@OrgMod.hpp User-defined methods of the data storage class.
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(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.
#define NCBI_SEQFEAT_EXPORT
const TMod & GetMod(void) const
Get the Mod member data.
bool CanGetMod(void) const
Check if it is safe to call GetMod method.
TDiv & SetDiv(void)
Assign a value to Div data member.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
bool CanGetName(void) const
Check if it is safe to call GetName method.
const TLineage & GetLineage(void) const
Get the Lineage member data.
bool IsSetPgcode(void) const
plastid genetic code Check if a value has been assigned to Pgcode data member.
bool CanGetDiv(void) const
Check if it is safe to call GetDiv method.
const TDiv & GetDiv(void) const
Get the Div member data.
void ResetMgcode(void)
Reset Mgcode data member.
const TVirus & GetVirus(void) const
Get the variant data.
TMgcode GetMgcode(void) const
Get the Mgcode member data.
list< CRef< COrgMod > > m_Mod
E_Choice Which(void) const
Which variant is currently selected.
TGcode GetGcode(void) const
Get the Gcode member data.
bool IsHybrid(void) const
Check if variant Hybrid is selected.
C_Name & operator=(const C_Name &)
NCBI_NS_NCBI::CUnionBuffer< NCBI_NS_STD::string > m_string
bool IsNamedhybrid(void) const
Check if variant Namedhybrid is selected.
TVirus & SetVirus(void)
Select the variant.
TMgcode & SetMgcode(void)
Assign a value to Mgcode data member.
bool IsSetLineage(void) const
lineage with semicolon separators Check if a value has been assigned to Lineage data member.
DECLARE_INTERNAL_TYPE_INFO()
bool IsPartial(void) const
Check if variant Partial is selected.
COrgName_Base & operator=(const COrgName_Base &)
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
TLineage & SetLineage(void)
Assign a value to Lineage data member.
const TName & GetName(void) const
Get the Name member data.
bool IsSetMgcode(void) const
mitochondrial genetic code Check if a value has been assigned to Mgcode data member.
bool CanGetMgcode(void) const
Check if it is safe to call GetMgcode method.
TPgcode & SetPgcode(void)
Assign a value to Pgcode data member.
void ResetGcode(void)
Reset Gcode data member.
COrgName_Base(const COrgName_Base &)
NCBI_NS_NCBI::CSerialObject * m_object
void ResetPgcode(void)
Reset Pgcode data member.
bool CanGetLineage(void) const
Check if it is safe to call GetLineage method.
bool IsSetDiv(void) const
GenBank division code Check if a value has been assigned to Div data member.
E_Choice
Choice variants.
bool IsSetMod(void) const
Check if a value has been assigned to Mod data member.
list< CRef< COrgMod > > TMod
CBinomialOrgName TNamedhybrid
bool IsSetAttrib(void) const
attribution of name Check if a value has been assigned to Attrib data member.
bool CanGetAttrib(void) const
Check if it is safe to call GetAttrib method.
bool IsSetGcode(void) const
genetic code (see CdRegion) Check if a value has been assigned to Gcode data member.
TMod & SetMod(void)
Assign a value to Mod data member.
bool CanGetGcode(void) const
Check if it is safe to call GetGcode method.
DECLARE_INTERNAL_TYPE_INFO()
TAttrib & SetAttrib(void)
Assign a value to Attrib data member.
bool CanGetPgcode(void) const
Check if it is safe to call GetPgcode method.
Tparent::CMemberIndex< E_memberIndex, 9 > TmemberIndex
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
TPgcode GetPgcode(void) const
Get the Pgcode member data.
bool IsSetName(void) const
Check if a value has been assigned to Name data member.
const TAttrib & GetAttrib(void) const
Get the Attrib member data.
TGcode & SetGcode(void)
Assign a value to Gcode data member.
CBinomialOrgName TBinomial
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsVirus(void) const
Check if variant Virus is selected.
bool IsBinomial(void) const
Check if variant Binomial is selected.
@ e_Hybrid
hybrid between organisms
@ e_Namedhybrid
some hybrids have genus x species name
@ e_Binomial
genus/species type name
@ e_Virus
virus names are different
const GenericPointer< typename T::ValueType > T2 value
void SetPartial(CSeq_loc &loc, CRef< CSeq_feat > feat, CSeq_loc::TStrand strand, bool partial_start, bool partial_stop)
void SetDiv(CRef< objects::CSeq_entry > entry, string div)
void SetGcode(CRef< objects::CSeq_entry > entry, objects::COrgName::TGcode gcode)
void SetLineage(CRef< objects::CSeq_entry > entry, string lineage)
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