m_object->RemoveReference();
84(m_object =
new(pool) ncbi::objects::CSphere())->
AddReference();
87(m_object =
new(pool) ncbi::objects::CCone())->
AddReference();
90(m_object =
new(pool) ncbi::objects::CCylinder())->
AddReference();
93(m_object =
new(pool) ncbi::objects::CBrick())->
AddReference();
96(m_object =
new(pool) ncbi::objects::CT_mesh())->
AddReference();
99(m_object =
new(pool) ncbi::objects::CTriangles())->
AddReference();
119 returnNCBI_NS_NCBI::CInvalidChoiceSelection::GetName(index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
124 throwNCBI_NS_NCBI::CInvalidChoiceSelection(
DIAG_COMPILE_INFO,
this, m_choice, index, sm_SelectionNames,
sizeof(sm_SelectionNames)/
sizeof(sm_SelectionNames[0]));
129CheckSelected(e_Sphere);
130 return*
static_cast<const TSphere*
>(m_object);
136 return*
static_cast<TSphere*
>(m_object);
142 if( m_choice != e_Sphere || m_object != ptr ) {
151CheckSelected(e_Cone);
152 return*
static_cast<const TCone*
>(m_object);
158 return*
static_cast<TCone*
>(m_object);
164 if( m_choice != e_Cone || m_object != ptr ) {
173CheckSelected(e_Cylinder);
174 return*
static_cast<const TCylinder*
>(m_object);
180 return*
static_cast<TCylinder*
>(m_object);
186 if( m_choice != e_Cylinder || m_object != ptr ) {
189m_choice = e_Cylinder;
195CheckSelected(e_Brick);
196 return*
static_cast<const TBrick*
>(m_object);
202 return*
static_cast<TBrick*
>(m_object);
208 if( m_choice != e_Brick || m_object != ptr ) {
217CheckSelected(e_Tmesh);
218 return*
static_cast<const TTmesh*
>(m_object);
224 return*
static_cast<TTmesh*
>(m_object);
230 if( m_choice != e_Tmesh || m_object != ptr ) {
239CheckSelected(e_Triangles);
240 return*
static_cast<const TTriangles*
>(m_object);
246 return*
static_cast<TTriangles*
>(m_object);
252 if( m_choice != e_Triangles || m_object != ptr ) {
255m_choice = e_Triangles;
272 info->CodeVersion(22400);
273 info->DataSpec(ncbi::EDataSpec::eASN);
296(*m_Contents).Reset();
310(*m_Surface).Reset();
329 info->RandomOrder();
330 info->CodeVersion(22400);
331 info->DataSpec(ncbi::EDataSpec::eASN);
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.
BEGIN_NAMED_BASE_CLASS_INFO("Surface-coordinates", CSurface_coordinates)
BEGIN_NAMED_CHOICE_INFO("", CSurface_coordinates_Base::C_Surface)
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CSurface_coordinates â.
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
#define ADD_NAMED_REF_MEMBER(MemberAlias, MemberName, ClassName)
#define ADD_NAMED_REF_CHOICE_VARIANT(MemberAlias, MemberName, ClassName)
#define SET_CLASS_MODULE(ModuleName)
#define SET_INTERNAL_NAME(OwnerName, MemberName)
#define SET_CHOICE_MODULE(ModuleName)
void AddReference(void) const
Add reference to object.
bool IsAllocatedInPool(void) const THROWS_NONE
Check if object is allocated in memory pool (not system heap)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TTmesh & SetTmesh(void)
Select the variant.
const TSphere & GetSphere(void) const
Get the variant data.
TBrick & SetBrick(void)
Select the variant.
TCylinder & SetCylinder(void)
Select the variant.
const TTriangles & GetTriangles(void) const
Get the variant data.
const TTmesh & GetTmesh(void) const
Get the variant data.
CRef< TSurface > m_Surface
TCone & SetCone(void)
Select the variant.
const TCone & GetCone(void) const
Get the variant data.
virtual ~CSurface_coordinates_Base(void)
CRef< TContents > m_Contents
static string SelectionName(E_Choice index)
Retrieve selection name (for diagnostic purposes).
const TCylinder & GetCylinder(void) const
Get the variant data.
void DoSelect(E_Choice index, CObjectMemoryPool *pool=0)
TSurface & SetSurface(void)
Assign a value to Surface data member.
E_Choice
Choice variants.
virtual void Reset(void)
Reset the whole object.
void ResetSurface(void)
Reset Surface data member.
CSurface_coordinates_Base(void)
CChem_graph_pntrs TContents
const TBrick & GetBrick(void) const
Get the variant data.
TSphere & SetSphere(void)
Select the variant.
void ResetContents(void)
Reset Contents data member.
TContents & SetContents(void)
Assign a value to Contents data member.
static const char *const sm_SelectionNames[]
TTriangles & SetTriangles(void)
Select the variant.
void ResetSelection(void)
Reset the selection (set it to e_not_set).
void Reset(void)
Reset the whole object.
void ThrowInvalidSelection(E_Choice index) const
Throw 'InvalidSelection' exception.
@ 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