Go to the SVN repository for this file.
41 #ifndef OBJECTS_MMDB3_CHEM_GRAPH_PNTRS_BASE_HPP 42 #define OBJECTS_MMDB3_CHEM_GRAPH_PNTRS_BASE_HPP 48 #ifndef BEGIN_objects_SCOPE 49 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects) 50 # define END_objects_SCOPE END_SCOPE(objects) 100 virtual voidReset(
void);
103 virtual voidResetSelection(
void);
109E_Choice Which(
void)
const;
115 voidCheckSelected(E_Choice index)
const;
121NCBI_NORETURN
voidThrowInvalidSelection(E_Choice index)
const;
129 static stringSelectionName(E_Choice index);
161 boolIsAtoms(
void)
const;
167 const TAtoms& GetAtoms(
void)
const;
173 TAtoms& SetAtoms(
void);
187 boolIsResidues(
void)
const;
193 const TResidues& GetResidues(
void)
const;
213 boolIsMolecules(
void)
const;
219 const TMolecules& GetMolecules(
void)
const;
242 static const char*
constsm_SelectionNames[];
CChem_graph_pntrs_Base â.
Base class for all serializable objects.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_MMDB3_EXPORT
CChem_graph_pntrs_Base & operator=(const CChem_graph_pntrs_Base &)
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
void Select(E_Choice index, EResetVariant reset, CObjectMemoryPool *pool)
Select the requested variant if needed, allocating CObject variants from memory pool.
DECLARE_INTERNAL_TYPE_INFO()
E_ChoiceStopper
Maximum+1 value of the choice variant enumerator.
bool IsAtoms(void) const
Check if variant Atoms is selected.
E_Choice
Choice variants.
E_Choice Which(void) const
Which variant is currently selected.
CMolecule_pntrs TMolecules
bool IsMolecules(void) const
Check if variant Molecules is selected.
void Select(E_Choice index, EResetVariant reset=eDoResetVariant)
Select the requested variant if needed.
NCBI_NS_NCBI::CSerialObject * m_object
bool IsResidues(void) const
Check if variant Residues is selected.
CChem_graph_pntrs_Base(const CChem_graph_pntrs_Base &)
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
void CheckSelected(E_Choice index) const
Verify selection, throw exception if it differs from the expected.
virtual void ResetSelection(void)
Reset the selection (set it to e_not_set).
@ 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