本文整理汇总了C++中ListPtr::GetInternalList方法的典型用法代码示例。如果您正苦于以下问题:C++ ListPtr::GetInternalList方法的具体用法?C++ ListPtr::GetInternalList怎么用?C++ ListPtr::GetInternalList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListPtr
的用法示例。
在下文中一共展示了ListPtr::GetInternalList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AppendListWithoutCopy
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~FUNCTION~~~~~~
NOTES: Similar as the above, but it adds every element in the given list,
rather than the list itself.
*/
void List::AppendListWithoutCopy( ListPtr X )
{
unsigned int i;
for( i = 0; i< X->GetInternalList().size(); i++ )
{
PushWithoutCopy( X->GetInternalList()[i] );
}
}
示例2: AppendList
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~FUNCTION~~~~~~
List::AppendList
NOTES: Adds all the elements of one list onto another.
*/
void List::AppendList( const ListPtr OtherList ){
unsigned int i;
const ListType& OtherVector = OtherList->GetInternalList();
for( i = 0; i < OtherVector.size(); i++ ){
mList.push_back( CreateVariable<Variable>( SS_BASE_ARGS_DEFAULTS, *(OtherVector[i]->CastToVariable()) ) );
}
}
示例3:
VariableBasePtr List::PushOp::Operate( VariableBasePtr pX )
{
ListPtr pXList = pX->CastToList();
const ListType& XList = pXList->GetInternalList();
size_t i;
for( i = 0; i < XList.size(); i++ )
{
mParentList.Push( XList[i] );
}
return mParentList.CastToVariableBase();
}