ResetSelection(
void);
132E_Choice Which(
void)
const;
138 voidCheckSelected(E_Choice index)
const;
144NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
152 static stringSelectionName(E_Choice index);
170 typedeflist< CRef< CAuthor > >
TStd;
171 typedeflist< string >
TMl;
184 boolIsStd(
void)
const;
190 const TStd& GetStd(
void)
const;
196 TStd& SetStd(
void);
205 boolIsMl(
void)
const;
211 const TMl& GetMl(
void)
const;
226 boolIsStr(
void)
const;
232 const TStr& GetStr(
void)
const;
238 TStr& SetStr(
void);
250 static const char*
constsm_SelectionNames[];
253NCBI_NS_NCBI::CUnionBuffer<TStd>
m_Std;
254NCBI_NS_NCBI::CUnionBuffer<TMl>
m_Ml;
255NCBI_NS_NCBI::CUnionBuffer<TStr>
m_Str;
281 boolIsSetNames(
void)
const;
288 boolCanGetNames(
void)
const;
291 voidResetNames(
void);
297 const TNames& GetNames(
void)
const;
309 TNames& SetNames(
void);
319 boolIsSetAffil(
void)
const;
326 boolCanGetAffil(
void)
const;
329 voidResetAffil(
void);
335 const TAffil& GetAffil(
void)
const;
347 TAffil& SetAffil(
void);
350 virtual voidReset(
void);
383 if( m_choice != index )
384ThrowInvalidSelection(index);
393DoSelect(index, pool);
400Select(index, reset, 0);
406 returnm_choice == e_Std;
412CheckSelected(e_Std);
426 returnm_choice == e_Ml;
446 returnm_choice == e_Str;
452CheckSelected(e_Str);
@Affil.hpp User-defined methods of the data storage class.
Base class for all serializable objects.
void ThrowUnassigned(TMemberIndex index) const
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_BIBLIO_EXPORT
C_Names & operator=(const C_Names &)
bool CanGetAffil(void) const
Check if it is safe to call GetAffil method.
TStd & SetStd(void)
Select the variant.
TMl & SetMl(void)
Select the variant.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
bool IsSetAffil(void) const
author affiliation Check if a value has been assigned to Affil data member.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
TNames & SetNames(void)
Assign a value to Names data member.
const TAffil & GetAffil(void) const
Get the Affil member data.
NCBI_NS_NCBI::CUnionBuffer< TStd > m_Std
void ResetNames(void)
Reset Names data member.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
NCBI_NS_NCBI::CUnionBuffer< TStr > m_Str
CAuth_list_Base(const CAuth_list_Base &)
void * m_dummy_pointer_for_alignment
NCBI_NS_NCBI::CDelayBuffer m_delay_Names
list< CRef< CAuthor > > TStd
NCBI_NS_NCBI::CUnionBuffer< TMl > m_Ml
bool IsSetNames(void) const
Check if a value has been assigned to Names data member.
bool CanGetNames(void) const
Check if it is safe to call GetNames method.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
CAuth_list_Base & operator=(const CAuth_list_Base &)
const TStr & GetStr(void) const
Get the variant data.
bool IsStr(void) const
Check if variant Str is selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
const TNames & GetNames(void) const
Get the Names member data.
bool IsMl(void) const
Check if variant Ml is selected.
const TStd & GetStd(void) const
Get the variant data.
DECLARE_INTERNAL_TYPE_INFO()
const TMl & GetMl(void) const
Get the variant data.
DECLARE_INTERNAL_TYPE_INFO()
E_Choice Which(void) const
Which variant is currently selected.
E_Choice
Choice variants.
TStr & SetStr(void)
Select the variant.
bool IsStd(void) const
Check if variant Std is selected.
@ e_Ml
MEDLINE, semi-structured.
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