本文整理汇总了C++中DataFile::count方法的典型用法代码示例。如果您正苦于以下问题:C++ DataFile::count方法的具体用法?C++ DataFile::count怎么用?C++ DataFile::count使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataFile
的用法示例。
在下文中一共展示了DataFile::count方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: check_counts_nodes
void check_counts_nodes()
{
// make sure they all have the same count
if (!(
(node_ids.count() == node_positions.count())
&&
(node_ids.count() == node_cs.count())
&&
(node_ids.count() == node_ver.count())
))
{
cerr << "current id " << current_id << endl;
cerr << "node counts are not aligned" << endl;
cerr << "pos:" << node_positions.count() << endl;
cerr << "ids: " << node_ids.count() << endl;
cerr << "cs :" << node_cs.count() << endl;
cerr << "ver :" << node_ver.count() << endl;
// write the files
node_positions.flush();
node_ids.flush();
node_cs.flush();
node_ver.flush();
exit (233);
}
}
示例2: check_counts_rels
void check_counts_rels()
{
// make sure they all have the same count
if (!
(rel_positions.count() == rel_ids.count()
&&
rel_ids.count() == rel_cs.count()
&&
rel_cs.count() == rel_ver.count()
)
)
{
cerr << current_id << endl;
cerr << "rel counts not aligned" << endl;
cerr << rel_positions.count() << endl;
cerr << rel_ids.count() << endl;
cerr << rel_cs.count() << endl;
cerr << rel_ver.count() << endl;
exit (233);
}
}
示例3: check_counts_ways
void check_counts_ways()
{
// make sure they all have the same count
if (!
(
(way_positions.count() == way_ids.count())
&&
(way_ids.count() == way_cs.count()
)
)
)
{
cerr << current_id << endl;
cerr << "way counts not aligned" << endl;
cerr << way_positions.count() << endl;
cerr << way_ids.count() << endl;
cerr << way_cs.count() << endl;
exit (233);
}
}