⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 a00496.html

📁 opendds 1.2 最新版 面向分布式实时网络编程
💻 HTML
📖 第 1 页 / 共 2 页
字号:
          <td class="memname"><a class="el" href="a00495.html">OpenDDS::DCPS::DataLinkSet</a> * OpenDDS::DCPS::DataLinkSetMap::find_set           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00552.html">RepoId</a>&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00552.html">RepoId</a> *&nbsp;</td>
          <td class="paramname"> <em>remoteIds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const CORBA::ULong&nbsp;</td>
          <td class="paramname"> <em>num_targets</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="098eeaa3e21afaa7d202317f06df703b"></a><!-- doxytag: member="OpenDDS::DCPS::DataLinkSetMap::find_set" ref="098eeaa3e21afaa7d202317f06df703b" args="(RepoId id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00495.html">OpenDDS::DCPS::DataLinkSet</a> * OpenDDS::DCPS::DataLinkSetMap::find_set           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00552.html">RepoId</a>&nbsp;</td>
          <td class="paramname"> <em>id</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Caller responsible for reference (count) returned. Will return nil (0) for failure. 
</div>
</div><p>
<a class="anchor" name="c20e9ce56f441a0e0df196ba9141152e"></a><!-- doxytag: member="OpenDDS::DCPS::DataLinkSetMap::insert_link" ref="c20e9ce56f441a0e0df196ba9141152e" args="(RepoId id, DataLink *link)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OpenDDS::DCPS::DataLinkSetMap::insert_link           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00552.html">RepoId</a>&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00493.html">DataLink</a> *&nbsp;</td>
          <td class="paramname"> <em>link</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
REMEMBER: This really means find_or_create_set_then_insert_link(). 
<p>
This method will do the find_or_create_set(id), followed by an <a class="el" href="a01275.html#4fe5e74884629cb4ddb9cbba6b2d7aa3">insert()</a> call on the <a class="el" href="a00495.html">DataLinkSet</a> (the one that was found or created for us). A -1 is returned if there are any problems. A 0 is returned to denote success. And a return code of 1 indicates that the link is already a member of the <a class="el" href="a00495.html">DataLinkSet</a> associated with the key RepoId. REMEMBER: This really means find_or_create_set_then_insert_link() 
</div>
</div><p>
<a class="anchor" name="3dfbe184dcd717ee0b37f0efc1f44d24"></a><!-- doxytag: member="OpenDDS::DCPS::DataLinkSetMap::release_all_reservations" ref="3dfbe184dcd717ee0b37f0efc1f44d24" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenDDS::DCPS::DataLinkSetMap::release_all_reservations           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Called when the <a class="el" href="a00748.html">TransportInterface</a> is detaching from the <a class="el" href="a00746.html">TransportImpl</a> (as opposed to the other way around when the <a class="el" href="a00746.html">TransportImpl</a> is detaching from the <a class="el" href="a00748.html">TransportInterface</a>). 
</div>
</div><p>
<a class="anchor" name="cb6d9770ba9293422948a1b9068298fa"></a><!-- doxytag: member="OpenDDS::DCPS::DataLinkSetMap::release_reservations" ref="cb6d9770ba9293422948a1b9068298fa" args="(ssize_t num_remote_ids, const RepoId *remote_ids, const RepoId local_id, DataLinkSetMap &amp;released_locals, const bool pub_side)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenDDS::DCPS::DataLinkSetMap::release_reservations           </td>
          <td>(</td>
          <td class="paramtype">ssize_t&nbsp;</td>
          <td class="paramname"> <em>num_remote_ids</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00552.html">RepoId</a> *&nbsp;</td>
          <td class="paramname"> <em>remote_ids</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00552.html">RepoId</a>&nbsp;</td>
          <td class="paramname"> <em>local_id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00496.html">DataLinkSetMap</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>released_locals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&nbsp;</td>
          <td class="paramname"> <em>pub_side</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Used by the <a class="el" href="a00748.html">TransportInterface</a> when this map is regarded as the "remote map".<p>
For each remote_id in the array of remote_ids, this method will cause the remote_id/local_id <a class="el" href="a00493.html">DataLink</a> be removed from remote_id's <a class="el" href="a00495.html">DataLinkSet</a> if the remote_id/local_id is the last association in the <a class="el" href="a00493.html">DataLink</a>, followed by informing the remote_id/local_id <a class="el" href="a00493.html">DataLink</a> to release the remote_id/local_id. The <a class="el" href="a00493.html">DataLink</a> will update the released_locals as it successfully handles its release_reservation() requests. 
</div>
</div><p>
<a class="anchor" name="2add237948642531de2e64925d67bfee"></a><!-- doxytag: member="OpenDDS::DCPS::DataLinkSetMap::remove_released" ref="2add237948642531de2e64925d67bfee" args="(const DataLinkSetMap &amp;released_locals)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OpenDDS::DCPS::DataLinkSetMap::remove_released           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00496.html">DataLinkSetMap</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>released_locals</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Used by the <a class="el" href="a00748.html">TransportInterface</a> when this map is regarded as the "local map".<p>
The supplied released_locals contains, for each RepoId key, the set of DataLinks that should be removed from our map_. These are removed due to a release_reservations call on our "reverse" map in the <a class="el" href="a00748.html">TransportInterface</a>. 
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="85ad697713c4d9db1198a898f9c11d7b"></a><!-- doxytag: member="OpenDDS::DCPS::DataLinkSetMap::map_" ref="85ad697713c4d9db1198a898f9c11d7b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00496.html#bfd292ff6f99159995b22fb365a282e0">MapType</a> <a class="el" href="a00496.html#85ad697713c4d9db1198a898f9c11d7b">OpenDDS::DCPS::DataLinkSetMap::map_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="643d15493908cc5f22e34423f5056aaa"></a><!-- doxytag: member="OpenDDS::DCPS::DataLinkSetMap::map_lock_" ref="643d15493908cc5f22e34423f5056aaa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00496.html#b31c9996f62b2515e461f4e6a28631fe">LockType</a> <a class="el" href="a00496.html#643d15493908cc5f22e34423f5056aaa">OpenDDS::DCPS::DataLinkSetMap::map_lock_</a><code> [private]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a00816.html">DataLinkSetMap.h</a><li><a class="el" href="a00815.html">DataLinkSetMap.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Nov 7 09:37:41 2008 for OpenDDS by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -