本文整理汇总了C++中driver::UnsignedIntOption类的典型用法代码示例。如果您正苦于以下问题:C++ UnsignedIntOption类的具体用法?C++ UnsignedIntOption怎么用?C++ UnsignedIntOption使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了UnsignedIntOption类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: derive
// string bpfs(void) const {return _bpfs.value();}
/// Derive the bpf
void derive(void) {
std::cout << "compute problem input data : " << _bpfs.value() << " - " << std::endl;
string str1 = _bpfs.value();
string str2 (") (");
string sub1,sub2;
size_t found;
// different member versions of find in the same order as above:
found=str1.find(str2);
if (found!=string::npos)
cout << "first ))(( found at: " << int(found) << endl;
sub1 = str1.substr(1,found);
sub2 = str1.substr(found +1,str1.size() - found - 2);
cout << " " << str1.substr(1,found) << endl;
cout <<" " << str1.substr(found +1,str1.size() - found - 2) << endl;
cout <<"SIZE " << _size.value() << endl;
Bpf bpf0(sub1);
thebpfs[0]=bpf0;
profils[0]=bpf0.profil(size() - 1);
Bpf bpf1(sub2);
thebpfs[1]=bpf1;
profils[1]=bpf1.profil(size() - 1);
bpfs_n = 1;
}
开发者ID:slemouton,项目名称:gecodeMCP,代码行数:32,代码来源:profils.cpp
示例2: colors
/// Return number of colors
unsigned int colors(void) const { return _colors.value(); }
开发者ID:tkelman,项目名称:gecode,代码行数:2,代码来源:colored-matrix.cpp
示例3: width
/// Return width
unsigned int width(void) const {
if (_size.value() == 0)
return _width.value();
else
return _size.value();
}
开发者ID:tkelman,项目名称:gecode,代码行数:7,代码来源:colored-matrix.cpp
示例4: height
/// Return height
unsigned int height(void) const {
if (_size.value() == 0)
return _height.value();
else
return _size.value();
}
开发者ID:tkelman,项目名称:gecode,代码行数:7,代码来源:colored-matrix.cpp
示例5:
// Return len2
unsigned int len2(void) const { return _len2.value(); }
开发者ID:HanumathRao,项目名称:hakank,代码行数:2,代码来源:pandigital_numbers.cpp
示例6: start
// Return the start number (0 or 1)
unsigned int start(void) const { return _start.value(); }
开发者ID:HanumathRao,项目名称:hakank,代码行数:2,代码来源:pandigital_numbers.cpp
示例7: base
// Return base to use
unsigned int base(void) const { return _base.value(); }
开发者ID:HanumathRao,项目名称:hakank,代码行数:2,代码来源:pandigital_numbers.cpp
示例8: size
/// Return number of chords
unsigned int size(void) const { return _size.value(); }
开发者ID:slemouton,项目名称:gecodeMCP,代码行数:2,代码来源:profils.cpp
示例9: distance
/// Return minimum distance
unsigned int distance(void) const { return _distance.value(); }
开发者ID:slemouton,项目名称:gecodeMCP,代码行数:2,代码来源:profils.cpp
示例10: nn
/// Return maximum number of notes
unsigned int nn(void) const { return _nn.value(); }
开发者ID:slemouton,项目名称:gecodeMCP,代码行数:2,代码来源:profils.cpp
示例11: bits
/// Return number of bits
unsigned int bits(void) const { return _bits.value(); }
开发者ID:celikpence,项目名称:gecode,代码行数:2,代码来源:hamming.cpp
注:本文中的driver::UnsignedIntOption类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论