41 #ifndef OBJECTS_SEQ_SEQ_DATA_BASE_HPP
42 #define OBJECTS_SEQ_SEQ_DATA_BASE_HPP
61 #ifndef BEGIN_objects_SCOPE
62 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
63 # define END_objects_SCOPE END_SCOPE(objects)
122 virtual void Reset(
void);
125 virtual void ResetSelection(
void);
131 E_Choice Which(
void)
const;
137 void CheckSelected(E_Choice index)
const;
143 NCBI_NORETURN
void ThrowInvalidSelection(E_Choice index)
const;
151 static string SelectionName(E_Choice index);
191 bool IsIupacna(
void)
const;
197 const TIupacna& GetIupacna(
void)
const;
218 bool IsIupacaa(
void)
const;
224 const TIupacaa& GetIupacaa(
void)
const;
245 bool IsNcbi2na(
void)
const;
251 const TNcbi2na& GetNcbi2na(
void)
const;
266 bool IsNcbi4na(
void)
const;
272 const TNcbi4na& GetNcbi4na(
void)
const;
287 bool IsNcbi8na(
void)
const;
293 const TNcbi8na& GetNcbi8na(
void)
const;
308 bool IsNcbipna(
void)
const;
314 const TNcbipna& GetNcbipna(
void)
const;
329 bool IsNcbi8aa(
void)
const;
335 const TNcbi8aa& GetNcbi8aa(
void)
const;
350 bool IsNcbieaa(
void)
const;
356 const TNcbieaa& GetNcbieaa(
void)
const;
377 bool IsNcbipaa(
void)
const;
383 const TNcbipaa& GetNcbipaa(
void)
const;
398 bool IsNcbistdaa(
void)
const;
419 bool IsGap(
void)
const;
425 const TGap& GetGap(
void)
const;
448 static const char*
const sm_SelectionNames[];
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.
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.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
*** Various internal sequence representations ************ * all are controlled, fixed length forms s...
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const TIupacaa & GetIupacaa(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< TNcbipna > m_Ncbipna
bool IsNcbipna(void) const
Check if variant Ncbipna is selected.
TNcbipna & SetNcbipna(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TNcbi4na > m_Ncbi4na
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
bool IsNcbieaa(void) const
Check if variant Ncbieaa is selected.
bool IsNcbi8aa(void) const
Check if variant Ncbi8aa is selected.
NCBI_NS_NCBI::CUnionBuffer< TNcbieaa > m_Ncbieaa
NCBI_NS_NCBI::CUnionBuffer< TNcbi8na > m_Ncbi8na
bool IsIupacaa(void) const
Check if variant Iupacaa is selected.
TNcbi8aa & SetNcbi8aa(void)
Select the variant.
const TIupacna & GetIupacna(void) const
Get the variant data.
bool IsNcbistdaa(void) const
Check if variant Ncbistdaa is selected.
const TNcbipna & GetNcbipna(void) const
Get the variant data.
const TNcbipaa & GetNcbipaa(void) const
Get the variant data.
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
TNcbipaa & SetNcbipaa(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TNcbistdaa > m_Ncbistdaa
NCBI_NS_NCBI::CUnionBuffer< TNcbipaa > m_Ncbipaa
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
const TNcbi8aa & GetNcbi8aa(void) const
Get the variant data.
TNcbieaa & SetNcbieaa(void)
Select the variant.
NCBI_NS_NCBI::CSerialObject * m_object
CSeq_data_Base & operator=(const CSeq_data_Base &)
CSeq_data_Base(const CSeq_data_Base &)
bool IsNcbi4na(void) const
Check if variant Ncbi4na is selected.
bool IsNcbi8na(void) const
Check if variant Ncbi8na is selected.
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
TIupacna & SetIupacna(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TIupacaa > m_Iupacaa
NCBI_NS_NCBI::CUnionBuffer< TNcbi8aa > m_Ncbi8aa
DECLARE_INTERNAL_TYPE_INFO()
const TNcbieaa & GetNcbieaa(void) const
Get the variant data.
bool IsNcbipaa(void) const
Check if variant Ncbipaa is selected.
NCBI_NS_NCBI::CUnionBuffer< TNcbi2na > m_Ncbi2na
NCBI_NS_NCBI::CUnionBuffer< TIupacna > m_Iupacna
const TNcbistdaa & GetNcbistdaa(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< TNcbipna > m_Ncbipna
TNcbi8na & SetNcbi8na(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TNcbi2na > m_Ncbi2na
TNcbistdaa & SetNcbistdaa(void)
Select the variant.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
const TNcbi4na & GetNcbi4na(void) const
Get the variant data.
TNcbi2na & SetNcbi2na(void)
Select the variant.
const TNcbi2na & GetNcbi2na(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< TNcbi4na > m_Ncbi4na
NCBI_NS_NCBI::CUnionBuffer< TIupacna > m_Iupacna
bool IsGap(void) const
Check if variant Gap is selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
NCBI_NS_NCBI::CUnionBuffer< TNcbistdaa > m_Ncbistdaa
NCBI_NS_NCBI::CUnionBuffer< TNcbipaa > m_Ncbipaa
bool IsNcbi2na(void) const
Check if variant Ncbi2na is selected.
TNcbi4na & SetNcbi4na(void)
Select the variant.
const TNcbi8na & GetNcbi8na(void) const
Get the variant data.
NCBI_NS_NCBI::CUnionBuffer< TIupacaa > m_Iupacaa
TIupacaa & SetIupacaa(void)
Select the variant.
NCBI_NS_NCBI::CUnionBuffer< TNcbi8na > m_Ncbi8na
NCBI_NS_NCBI::CUnionBuffer< TNcbieaa > m_Ncbieaa
bool IsIupacna(void) const
Check if variant Iupacna is selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
NCBI_NS_NCBI::CUnionBuffer< TNcbi8aa > m_Ncbi8aa
E_Choice Which(void) const
Which variant is currently selected.
@ e_not_set
No variant selected.
@ e_Ncbipna
nucleic acid probabilities
@ e_Ncbieaa
extended ASCII 1 letter aa codes
@ e_Ncbistdaa
consecutive codes for std aas
@ e_Ncbi2na
2 bit nucleic acid code
@ e_Iupacna
IUPAC 1 letter nuc acid code.
@ e_Ncbipaa
amino acid probabilities
@ e_Ncbi8na
8 bit extended nucleic acid code
@ e_Ncbi4na
4 bit nucleic acid code
@ e_Iupacaa
IUPAC 1 letter amino acid code.
@ e_Ncbi8aa
8 bit extended amino acid codes
const GenericPointer< typename T::ValueType > T2 value