本文整理汇总了C++中CHash::GetPos方法的典型用法代码示例。如果您正苦于以下问题:C++ CHash::GetPos方法的具体用法?C++ CHash::GetPos怎么用?C++ CHash::GetPos使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CHash
的用法示例。
在下文中一共展示了CHash::GetPos方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GetPos
uvar32_64 CMarkStyle::GetPos () {
for (CHash<CMarkStyle*,CMarkStyle>* p = theApp.MarkStyles.m_pHashHead; p; p = p->GetNext ())
if (p->m_hData == this)
if (theApp.MarkStyles.m_nActive == p->GetPos ())
return (p->GetPos ());
return (uvar32_64(-1));
}
示例2: GetPos
uvar32_64 CVariable::GetPos () {
m_pTesla->Variables.m_pHashHead = m_pTesla->Variables.m_pHashHead->GetHead ();
for (CHash<CVariable*,CVariable>* p = m_pTesla->Variables.m_pHashHead; p; p = p->GetNext ())
if (p->m_hData == this)
return (p->GetPos ());
return (-1);
}
示例3: GetPos
svar32_64 CImage::GetPos () {
m_pDoc->Images.m_pHashHead = m_pDoc->Images.m_pHashHead->GetHead ();
for (CHash<CImage*,CImage>* p = m_pDoc->Images.m_pHashHead; p; p = p->GetNext ())
if (p->m_hData == this)
return (p->GetPos ());
return (-1);
}
示例4: Insert
uvar32_64 CDiasAPIDensScales::Insert (uvar32_64 pos, CDensScale& scale) {
if ((pos = NameLookup (scale.m_strName)) != uvar32_64(-1))
return ((uvar32_64)-1);
CHash<CDensScale*,CDensScale>* p = new CHash<CDensScale*,CDensScale>(&scale);
m_pHashHead->GetAt(pos)->InsertAfter (p);
m_pHashHead = m_pHashHead->GetHead ();
return ((uvar32_64)(p->GetPos ()));
}
示例5: Add
uvar32_64 CDiasAPIDensScales::Add (CDensScale& scale) {
int pos;
if ((pos = NameLookup (scale.m_strName)) != uvar32_64(-1))
return ((uvar32_64)-1);
CHash<CDensScale*,CDensScale>* p = new CHash<CDensScale*,CDensScale>(&scale);
if (!m_pHashHead)
m_pHashHead = p;
else
m_pHashHead->GetTail()->InsertAfter (p);
return ((uvar32_64)(p->GetPos()));
}
示例6: Activate
void CMarkStyle::Activate () {
for (CHash<CMarkStyle*,CMarkStyle>* p = theApp.MarkStyles.m_pHashHead; p; p = p->GetNext ())
if (p->m_hData == this)
theApp.MarkStyles.m_nActive = p->GetPos ();
theApp.Update (UPDHA_MARKSTYLE);
}
示例7: Activate
void CGeomScale::Activate () {
for (CHash<CGeomScale*,CGeomScale>* p = theApp.GeomScales.m_pHashHead; p; p = p->GetNext ())
if (p->m_hData == this)
theApp.GeomScales.m_nActive = p->GetPos ();
theApp.Update (UPDHA_GEOMSCALE);
}