本文整理汇总了C++中MultiMap::End方法的典型用法代码示例。如果您正苦于以下问题:C++ MultiMap::End方法的具体用法?C++ MultiMap::End怎么用?C++ MultiMap::End使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MultiMap
的用法示例。
在下文中一共展示了MultiMap::End方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Show
void xRenderSettingPane::Show(bool b)
{
m_wndPropList.RemoveAll();
if (!b)
return ;
IPropertyObj * obj = xRenderSetting::Instance();
int propSize = obj->GetPropertySize();
MultiMap<TString128, const Property *> mmap;
for (int i = 0; i < propSize; ++i)
{
const Property * p = obj->GetProperty(i);
mmap.Insert(p->group, p);
}
MultiMap<TString128, const Property *>::Iterator whr = mmap.Begin();
MultiMap<TString128, const Property *>::Iterator end = mmap.End();
while (whr != end)
{
CMFCPropertyGridProperty * gp = new CMFCPropertyGridProperty(whr->first.c_str());
List<const Property *>::Iterator w = whr->second.Begin();
List<const Property *>::Iterator e = whr->second.End();
while (w != e)
{
const Property * p = *w;
_ToCtrl(gp, obj, p);
++w;
}
m_wndPropList.AddProperty(gp);
++whr;
}
}
示例2: _Frush
void xEnvironmentPane::_Frush(CMFCPropertyGridCtrl & PropertyGrid, IPropertyObj * obj)
{
PropertyGrid.RemoveAll();
if (!obj)
return ;
int propSize = obj->GetPropertySize();
MultiMap<TString128, const Property *> mmap;
for (int i = 0; i < propSize; ++i)
{
const Property * p = obj->GetProperty(i);
mmap.Insert(p->group, p);
}
MultiMap<TString128, const Property *>::Iterator whr = mmap.Begin();
MultiMap<TString128, const Property *>::Iterator end = mmap.End();
while (whr != end)
{
CMFCPropertyGridProperty * gp = new CMFCPropertyGridProperty(whr->first.c_str());
List<const Property *>::Iterator w = whr->second.Begin();
List<const Property *>::Iterator e = whr->second.End();
while (w != e)
{
const Property * p = *w;
_ToCtrl(gp, obj, p);
++w;
}
PropertyGrid.AddProperty(gp);
++whr;
}
}