本文整理汇总了C++中CArrayPtr::Compress方法的典型用法代码示例。如果您正苦于以下问题:C++ CArrayPtr::Compress方法的具体用法?C++ CArrayPtr::Compress怎么用?C++ CArrayPtr::Compress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CArrayPtr
的用法示例。
在下文中一共展示了CArrayPtr::Compress方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: StripAllNotOnPartnerListL
//.........这里部分代码省略.........
{
removeMe = EFalse;
break;
}
}
}
else
{
removeMe = EFalse;
break;
}
}
}
else
{
//Handling when the device supports VersitTokenType as "Encoding"
if(ownparamname == KVersitTokenENCODING)
{
removeMe = EFalse;
}
else
{
for(TInt remoteparam = 0; remoteparam < remoteProperty.ParamCount(); remoteparam++)
{
TDesC8 remoteparamname = remoteProperty.Param( remoteparam ).Field().Name().DesC();
if(ownparamname.Compare(remoteProperty.Param( remoteparam ).Field().Name().DesC()) == 0)
{
const CSmlDataField& field = remoteProperty.Param( remoteparam ).Field();
if( field.EnumValueCount() > 0)
{
for( TInt rmtenumcount = 0; rmtenumcount < field.EnumValueCount(); rmtenumcount++ )
{
TPtrC8 rmtenumvalue = field.EnumValue( rmtenumcount ).DesC();
if( rmtenumvalue.Compare(ownparamvalue)== 0 )
{
removeMe = EFalse;
break;
}
}
}
else
{
removeMe = EFalse;
break;
}
}
}
}
}
if( removeMe )
{
break;
}
}
}
else
{
removeMe = EFalse;
}
}
}
else
{
removeMe = EFalse;
}
if( !removeMe )
{
break;
}
}
}
if( removeMe )
{
#ifdef __NSML_DEBUG__
TPtrC8 pn( ownProperty.Name() );
DBG_ARGS8(_S8("CNSmlDataModBase::StripAllNotOnPartnerListL(): Dropping %S"), &pn);
#endif // __NSML_DEBUG__
delete allProps->At( i );
allProps->Delete( i );
wasModified = ETrue;
aModified = ETrue;
}
else
{
#ifdef __NSML_DEBUG__
TPtrC8 pn( ownProperty.Name() );
DBG_ARGS8(_S8("CNSmlDataModBase::StripAllNotOnPartnerListL(): NOT dropping %S"), &pn);
#endif // __NSML_DEBUG__
i++;
}
}
// can't use aModified as that may have been set earlier!
if( wasModified )
{
allProps->Compress();
}
}
_DBG_FILE("CNSmlDataModBase::StripAllNotOnPartnerListL(): end");
}