本文整理汇总了C++中TAlias::isActive方法的典型用法代码示例。如果您正苦于以下问题:C++ TAlias::isActive方法的具体用法?C++ TAlias::isActive怎么用?C++ TAlias::isActive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TAlias
的用法示例。
在下文中一共展示了TAlias::isActive方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: compileAll
void AliasUnit::compileAll()
{
typedef list<TAlias *>::const_iterator I;
for( I it = mAliasRootNodeList.begin(); it != mAliasRootNodeList.end(); it++)
{
TAlias * pChild = *it;
if( pChild->isActive() )
{
pChild->compileAll();
}
}
}
示例2: _assembleReport
void AliasUnit::_assembleReport( TAlias * pChild )
{
typedef list<TAlias *>::const_iterator I;
list<TAlias*> * childrenList = pChild->mpMyChildrenList;
for( I it2 = childrenList->begin(); it2 != childrenList->end(); it2++)
{
TAlias * pT = *it2;
_assembleReport( pT );
if( pT->isActive() ) statsActiveAliass++;
if( pT->isTempAlias() ) statsTempAliass++;
statsAliasTotal++;
}
}
示例3: assembleReport
QString AliasUnit::assembleReport()
{
statsActiveAliass = 0;
statsAliasTotal = 0;
statsTempAliass = 0;
typedef list<TAlias *>::const_iterator I;
for( I it = mAliasRootNodeList.begin(); it != mAliasRootNodeList.end(); it++)
{
TAlias * pChild = *it;
if( pChild->isActive() ) statsActiveAliass++;
if( pChild->isTempAlias() ) statsTempAliass++;
statsAliasTotal++;
list<TAlias*> * childrenList = pChild->mpMyChildrenList;
for( I it2 = childrenList->begin(); it2 != childrenList->end(); it2++)
{
TAlias * pT = *it2;
_assembleReport( pT );
if( pT->isActive() ) statsActiveAliass++;
if( pT->isTempAlias() ) statsTempAliass++;
statsAliasTotal++;
}
}
QStringList msg;
msg << "Aliass current total: " << QString::number(statsAliasTotal) << "\n"
<< "tempAliass current total: " << QString::number(statsTempAliass) << "\n"
<< "active Aliass: " << QString::number(statsActiveAliass) << "\n";
/*<< "active Aliass max this session: " << QString::number(statsActiveAliassMax) << "\n"
<< "active Aliass min this session: " << QString::number(statsActiveAliassMin) << "\n"
<< "active Aliass average this session: " << QString::number(statsActiveAliassAverage) << "\n"*/
//<< "tempAliass created this session: " << QString::number(statsTempAliassCreated) << "\n"
//<< "tempAliass killed this session: " << QString::number(statsTempAliassKilled) << "\n"
//<< "current total regex Aliass: " << QString::number(statsRegexAliass) << "\n"
//<< "average line processing time: " << QString::number(statsAverageLineProcessingTime) << "\n"
//<< "max line processing time: " << QString::number(statsMaxLineProcessingTime) << "\n"
//<< "min line processing time: " << QString::number(statsMinLineProcessingTime) << "\n";
return msg.join("");
}
示例4: compileAll
void AliasUnit::compileAll()
{
typedef list<TAlias *>::const_iterator I;
for( I it = mAliasRootNodeList.begin(); it != mAliasRootNodeList.end(); it++)
{
TAlias * pChild = *it;
if( pChild->isActive() )
{
pChild->compileAll();
}
}
// for( int i=0; i<uninstallList.size(); i++ )
// {
// unregisterAlias(uninstallList[i]);
// }
}