本文整理汇总了C++中ParameterList::GetNMultiComplex方法的典型用法代码示例。如果您正苦于以下问题:C++ ParameterList::GetNMultiComplex方法的具体用法?C++ ParameterList::GetNMultiComplex怎么用?C++ ParameterList::GetNMultiComplex使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ParameterList
的用法示例。
在下文中一共展示了ParameterList::GetNMultiComplex方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Append
void ParameterList::Append(const ParameterList& addList)
{
for(int i=0; i<addList.GetNBool(); i++ )
AddParameter(addList.GetBoolParameter(i));
for(int i=0; i<addList.GetNInteger(); i++ )
AddParameter(addList.GetIntegerParameter(i));
for(int i=0; i<addList.GetNDouble(); i++ )
AddParameter(addList.GetDoubleParameter(i));
for(int i=0; i<addList.GetNComplex(); i++ )
AddParameter(addList.GetComplexParameter(i));
for(int i=0; i<addList.GetNMultiDouble(); i++ )
AddParameter(addList.GetMultiDouble(i));
for(int i=0; i<addList.GetNMultiComplex(); i++ )
AddParameter(addList.GetMultiComplex(i));
for(int i=0; i<addList.GetNMultiUnsignedInteger(); i++ )
AddParameter(addList.GetMultiUnsignedInteger(i));
}
示例2: DeepCopy
void ParameterList::DeepCopy(const ParameterList& in)
{
out_=in.out_;
vMultiComplex_.clear();
vMultiDouble_.clear();
vDouble_.clear();
vInt_.clear();
vBool_.clear();
for(unsigned int i=0; i<in.GetNMultiComplex();i++)
vMultiComplex_.push_back(
std::shared_ptr<MultiComplex>(
new MultiComplex(*(in.vMultiComplex_[i]))
)
);
for(unsigned int i=0; i<in.GetNMultiDouble();i++)
vMultiDouble_.push_back(
std::shared_ptr<MultiDouble>(
new MultiDouble(*(in.vMultiDouble_[i]))
)
);
for(unsigned int i=0; i<in.GetNDouble();i++)
vDouble_.push_back(
std::shared_ptr<DoubleParameter>(
new DoubleParameter(*(in.vDouble_[i]))
)
);
for (unsigned int i = 0; i < in.GetNMultiUnsignedInteger(); i++)
vMultiUnsignedInteger_.push_back(
std::shared_ptr<MultiUnsignedInteger>(
new MultiUnsignedInteger(*(in.vMultiUnsignedInteger_[i]))
)
);
for(unsigned int i=0; i<in.GetNInteger();i++)
vInt_.push_back(
std::shared_ptr<IntegerParameter>(
new IntegerParameter(*(in.vInt_[i]))
)
);
for(unsigned int i=0; i<in.GetNBool();i++)
vBool_.push_back(
std::shared_ptr<BoolParameter>(
new BoolParameter(*(in.vBool_[i]))
)
);
}