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


C++ vertex_type::local_id方法代码示例

本文整理汇总了C++中vertex_type::local_id方法的典型用法代码示例。如果您正苦于以下问题:C++ vertex_type::local_id方法的具体用法?C++ vertex_type::local_id怎么用?C++ vertex_type::local_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在vertex_type的用法示例。


在下文中一共展示了vertex_type::local_id方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: synchronize

 /**
  * \brief Synchronizes all copies of this vertex
  * 
  * If the current vertex value has changed, copy the vertex value to
  * all mirrors. This is for advanced use!
  * Under most circumstances you should not need to use 
  * this function directly.
  */
 void synchronize() {
   if (vtx_set && graph.l_is_master(vtx.local_id())) {
     std::string new_value = serialize_to_string(vtx.data());
     if (original_value != new_value) {
       // synchronize this vertex's value
       engine.synchronize_one_vertex_wait(vtx);
     }
     std::swap(original_value, new_value);
   }
 }
开发者ID:DongCiLu,项目名称:DecSearch,代码行数:18,代码来源:warp_engine.hpp

示例2: internalSignal

 void SynchronousEngine<algorithm_t>::
 internalSignal(const vertex_type &vertex, const message_type& message){
     const lvid_type lvid = vertex.local_id();
     //        local_vertex_lock[lvid].lock();
     if (has_msg_[lvid]) {
         messages_[lvid] += message;
     }else{
         has_msg_[lvid] = 1;
         messages_[lvid] = message;
     }
     //        local_vertex_lock[lvid].unlock();
 }
开发者ID:HongleiZhuang,项目名称:saedb,代码行数:12,代码来源:synchronous_engine.hpp

示例3: set_synchronized

 /**
  * \internal
  * \brief Flags that this vertex was synchronized.
  */
 void set_synchronized() {
   if (vtx_set && graph.l_is_master(vtx.local_id())) {
     original_value = serialize_to_string(vtx.data());
   }
 }
开发者ID:DongCiLu,项目名称:DecSearch,代码行数:9,代码来源:warp_engine.hpp

示例4: internalSignal

 void SynchronousEngine<algorithm_t>::
 internalSignal(const vertex_type &vertex, const message_type& message){
     lvid_type lvid = vertex.local_id();
     internalSignal(lvid, message);
 }
开发者ID:neozhangthe1,项目名称:saedb,代码行数:5,代码来源:synchronous_engine.hpp


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