当前位置: 首页>>代码示例>>C++>>正文


C++ DataFile::count方法代码示例

本文整理汇总了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);
      }
  }
开发者ID:h4ck3rm1k3,项目名称:FOSM-Api,代码行数:27,代码来源:fileindexer.hpp

示例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);
     }
 }
开发者ID:h4ck3rm1k3,项目名称:FOSM-Api,代码行数:21,代码来源:fileindexer.hpp

示例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);
     }
 }
开发者ID:h4ck3rm1k3,项目名称:FOSM-Api,代码行数:20,代码来源:fileindexer.hpp


注:本文中的DataFile::count方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。