Go to the SVN repository for this file.
41 #ifndef OBJECTS_SEQ_NUMBERING_BASE_HPP 42 #define OBJECTS_SEQ_NUMBERING_BASE_HPP 48 #ifndef BEGIN_objects_SCOPE 49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects) 50 # define END_objects_SCOPE END_SCOPE(objects) 103 virtual voidReset(
void);
106 virtual voidResetSelection(
void);
112E_Choice Which(
void)
const;
118 voidCheckSelected(E_Choice index)
const;
124NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
132 static stringSelectionName(E_Choice index);
165 boolIsCont(
void)
const;
171 const TCont& GetCont(
void)
const;
177 TCont& SetCont(
void);
191 boolIsEnum(
void)
const;
197 const TEnum& GetEnum(
void)
const;
203 TEnum& SetEnum(
void);
217 boolIsRef(
void)
const;
223 const TRef& GetRef(
void)
const;
229 TRef& SetRef(
void);
243 boolIsReal(
void)
const;
249 const TReal& GetReal(
void)
const;
255 TReal& SetReal(
void);
272 static const char*
constsm_SelectionNames[];
any display numbering system
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
bool IsCont(void) const
Check if variant Cont is selected.
E_Choice
Choice variants.
NCBI_NS_NCBI::CSerialObject * m_object
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsEnum(void) const
Check if variant Enum is selected.
bool IsRef(void) const
Check if variant Ref is selected.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
bool IsReal(void) const
Check if variant Real is selected.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
CNumbering_Base(const CNumbering_Base &)
DECLARE_INTERNAL_TYPE_INFO()
CNumbering_Base & operator=(const CNumbering_Base &)
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
E_Choice Which(void) const
Which variant is currently selected.
@ e_Ref
by reference to another sequence
@ e_Cont
continuous numbering
@ e_Enum
enumerated names for residues
@ e_Real
supports mapping to a float system
@ e_not_set
No variant selected.
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