本文整理汇总了C++中COperator::increaseID方法的典型用法代码示例。如果您正苦于以下问题:C++ COperator::increaseID方法的具体用法?C++ COperator::increaseID怎么用?C++ COperator::increaseID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COperator
的用法示例。
在下文中一共展示了COperator::increaseID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: operator
Expression CFunction::operator()( const Expression &arg ){
uint run1,run2;
CFunction thisFunction(*this);
thisFunction.nn = arg.getDim();
for( run1 = 0; run1 < maxAlloc; run1++ ){
thisFunction.xStore [run1] = new double[thisFunction.nn];
thisFunction.seedStore[run1] = new double[thisFunction.nn];
for( run2 = 0; run2 < thisFunction.nn; run2++ ){
thisFunction.xStore [run1][run2] = 0.0;
thisFunction.seedStore[run1][run2] = 0.0;
}
}
Expression tmp(dim);
COperator dummy;
dummy.increaseID();
for( run1 = 0; run1 < dim; run1++ ){
delete tmp.element[run1];
tmp.element[run1] = new COperator( thisFunction, arg, run1 );
}
return tmp;
}