本文整理汇总了C++中Container::GetKey方法的典型用法代码示例。如果您正苦于以下问题:C++ Container::GetKey方法的具体用法?C++ Container::GetKey怎么用?C++ Container::GetKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Container
的用法示例。
在下文中一共展示了Container::GetKey方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: depenfunc
// The depenfunc is a recursive function which initially determines the direct dependencies from the xml file inputted
// and later recursive call is made to the same function and the indirect dependencies are also determined.
void depenfunc(stdStr depenname)
{
Container cc;
static std::vector<std::string> vect;
cc.SetKey(Convert::ToString(depenname));
if(depenname!=Convert::ToStdStr("none"))
{
for (unsigned i=0;i<headervec.size();i++)
{
if(headervec[i] == depenname)
{
stdStr tempstd = headervec[i];
std::string temp = Convert::ToString(tempstd);
temp.append(".xml");
Parser::Parsing(temp);
}
}
}
vect = cc.GetVector();
vector<std::string>::iterator it1;
std::string keee = cc.GetKey();
static std::vector<std::string> remover;
remover.push_back(keee);
cc.SetRVector(remover);
for(unsigned i=0;i<remover.size();i++)
{
it1 = find(vect.begin(),vect.end(),remover[i]);
if(it1!=vect.end())
{
vect.erase(it1);
}
}
cc.SetVector(vect);
if(vect.size()!=0)
{
for (unsigned it = 0;it<vect.size();it++)
{
depenfunc(Convert::ToStdStr(vect[it])); // the recursive call of the function
}
}
}