Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 5104

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>VTK: dox/Parallel/vtkPBGLDistributedGraphHelper.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>dox/Parallel/vtkPBGLDistributedGraphHelper.h</h1><a href="a03312.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">  Program:   Visualization Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: vtkPBGLDistributedGraphHelper.h,v $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span>
<a name="l00007"></a>00007 <span class="comment">  All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment">  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00011"></a>00011 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00012"></a>00012 <span class="comment">     PURPOSE.  See the above copyright notice for more information.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span>
<a name="l00015"></a>00015 <span class="comment">/* </span>
<a name="l00016"></a>00016 <span class="comment"> * Copyright (C) 2008 The Trustees of Indiana University.</span>
<a name="l00017"></a>00017 <span class="comment"> * Use, modification and distribution is subject to the Boost Software</span>
<a name="l00018"></a>00018 <span class="comment"> * License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt)</span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00040"></a>00040 <span class="preprocessor">#ifndef __vtkPBGLDistributedGraphHelper_h</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define __vtkPBGLDistributedGraphHelper_h</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043 <span class="preprocessor">#include "<a class="code" href="a02241.html">vtkDistributedGraphHelper.h</a>"</span>
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="keyword">class </span>vtkPBGLDistributedGraphHelperInternals;
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="comment">//BTX</span>
<a name="l00048"></a><a class="code" href="a03755.html">00048</a> <span class="keyword">namespace </span>boost { <span class="keyword">namespace </span>graph { <span class="keyword">namespace </span>distributed {
<a name="l00049"></a>00049   <span class="keyword">class </span>mpi_process_group;
<a name="l00050"></a>00050 } } } 
<a name="l00051"></a>00051 <span class="comment">//ETX</span>
<a name="l00052"></a>00052 
<a name="l00053"></a><a class="code" href="a01188.html">00053</a> <span class="keyword">class </span><a class="code" href="a02170.html#7438b32736749f34b46d66222305e60b">VTK_PARALLEL_EXPORT</a> <a class="code" href="a01188.html" title="end namespace boost::graph::distributed">vtkPBGLDistributedGraphHelper</a> : <span class="keyword">public</span> <a class="code" href="a00433.html" title="helper for the vtkGraph class that allows the graph to be distributed across multiple...">vtkDistributedGraphHelper</a>
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055  <span class="keyword">public</span>:
<a name="l00056"></a>00056   vtkTypeRevisionMacro (<a class="code" href="a01188.html" title="end namespace boost::graph::distributed">vtkPBGLDistributedGraphHelper</a>, 
<a name="l00057"></a><a class="code" href="a01188.html#44248bcb73a716d213fdcdf4c1287d99">00057</a>                         <a class="code" href="a00433.html" title="helper for the vtkGraph class that allows the graph to be distributed across multiple...">vtkDistributedGraphHelper</a>);
<a name="l00058"></a>00058   
<a name="l00060"></a>00060   <span class="keyword">static</span> <a class="code" href="a01188.html" title="end namespace boost::graph::distributed">vtkPBGLDistributedGraphHelper</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00061"></a>00061 
<a name="l00068"></a>00068   <span class="keywordtype">void</span> <a class="code" href="a00433.html#e5707938f2f434f6111d3b227b2142e5">Synchronize</a>();
<a name="l00069"></a>00069 
<a name="l00071"></a>00071   <a class="code" href="a00433.html" title="helper for the vtkGraph class that allows the graph to be distributed across multiple...">vtkDistributedGraphHelper</a> *<a class="code" href="a00433.html#15357ec6b10e2283538ce72dba88e4d3">Clone</a>();
<a name="l00072"></a>00072 
<a name="l00073"></a>00073   <span class="comment">//BTX</span>
<a name="l00075"></a>00075 <span class="comment"></span>
<a name="l00076"></a>00076   boost::graph::distributed::mpi_process_group GetProcessGroup();
<a name="l00077"></a>00077   <span class="comment">//ETX</span>
<a name="l00079"></a>00079 <span class="comment"></span>
<a name="l00082"></a><a class="code" href="a01188.html#67d626c5f0d3d435c71785150eecd085">00082</a>   vtkPBGLDistributedGraphHelperInternals *Internals;
<a name="l00083"></a>00083 
<a name="l00084"></a>00084  <span class="keyword">protected</span>:
<a name="l00085"></a>00085   <a class="code" href="a01188.html" title="end namespace boost::graph::distributed">vtkPBGLDistributedGraphHelper</a>();
<a name="l00086"></a>00086   ~<a class="code" href="a01188.html" title="end namespace boost::graph::distributed">vtkPBGLDistributedGraphHelper</a>();
<a name="l00087"></a>00087 
<a name="l00088"></a>00088   <span class="comment">//BTX</span>
<a name="l00089"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890">00089</a>   <span class="keyword">enum</span> <a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890">Tags</a>
<a name="l00090"></a>00090   {
<a name="l00091"></a>00091     <span class="comment">// Find a vertex by pedigree ID. This always has a reply.</span>
<a name="l00092"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890136b56707ed3957c5eb7007b4a919227">00092</a>     FIND_VERTEX_TAG,
<a name="l00093"></a>00093     <span class="comment">// Find the source and target by edge ID. This always has a reply.</span>
<a name="l00094"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890821d3a750ee026f9e36875fe4912f77b">00094</a>     FIND_EDGE_SOURCE_TARGET_TAG,
<a name="l00095"></a>00095     <span class="comment">// Add a vertex with the given pedigree ID.</span>
<a name="l00096"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c8907f77f7c50a02a5fd8afc030156be97d4">00096</a>     ADD_VERTEX_NO_REPLY_TAG,
<a name="l00097"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890f985cbedb48519998bd6fc450e5003a8">00097</a>     ADD_VERTEX_WITH_REPLY_TAG,
<a name="l00098"></a>00098     <span class="comment">// Add a vertex with the given property array.</span>
<a name="l00099"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c8905c436b2a5e2e5e56736fd955927c6f09">00099</a>     ADD_VERTEX_PROPS_NO_REPLY_TAG,
<a name="l00100"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c89006d4c162153748479128d3818afe96cb">00100</a>     ADD_VERTEX_PROPS_WITH_REPLY_TAG,
<a name="l00101"></a>00101     <span class="comment">// Add a back edge; the forward edge has already been added.</span>
<a name="l00102"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890fb83e0759e60e0ed04e3766ca8f7ab52">00102</a>     ADD_DIRECTED_BACK_EDGE_TAG,
<a name="l00103"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c8908267ee100b90c0f9499d2d4d8b73670e">00103</a>     ADD_UNDIRECTED_BACK_EDGE_TAG,
<a name="l00104"></a>00104     <span class="comment">// Add an edge; don't reply.</span>
<a name="l00105"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890594b67c1f6c64ab5d6b653aae8cec729">00105</a>     ADD_DIRECTED_EDGE_NO_REPLY_TAG,
<a name="l00106"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c8909f6fbde7dcec6999b118f8e88dcee92f">00106</a>     ADD_UNDIRECTED_EDGE_NO_REPLY_TAG,
<a name="l00107"></a>00107     <span class="comment">// Add an edge; return the edge ID.</span>
<a name="l00108"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c8904087d9192f21322bca684b759e159274">00108</a>     ADD_DIRECTED_EDGE_WITH_REPLY_TAG,
<a name="l00109"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c89096da80d3a7aa2d5c1b1c70336a05c441">00109</a>     ADD_UNDIRECTED_EDGE_WITH_REPLY_TAG,
<a name="l00110"></a>00110     <span class="comment">// Add an edge via (pedigree, id); don't reply.</span>
<a name="l00111"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c8901152e02a8ec07613bf000f2e7a2cd54f">00111</a>     ADD_DIRECTED_EDGE_NI_NO_REPLY_TAG,
<a name="l00112"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890ad1d9eed020dbf0e6a6339fcb24b6b4a">00112</a>     ADD_UNDIRECTED_EDGE_NI_NO_REPLY_TAG,
<a name="l00113"></a>00113     <span class="comment">// Add an edge via (pedigree, id); return the edge ID.</span>
<a name="l00114"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c89086cdd2e90e53fe1e117e39f2d2f7e873">00114</a>     ADD_DIRECTED_EDGE_NI_WITH_REPLY_TAG,
<a name="l00115"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890f9e534f9e38bdfeaa024fc37aabb9540">00115</a>     ADD_UNDIRECTED_EDGE_NI_WITH_REPLY_TAG,
<a name="l00116"></a>00116     <span class="comment">// Add an edge via (id, pedigree); don't reply.</span>
<a name="l00117"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890622dc2a4e47d3d8b374d7ed49449e5a5">00117</a>     ADD_DIRECTED_EDGE_IN_NO_REPLY_TAG,
<a name="l00118"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c8909e53ab5ee13085ad6ad1cc9505f05f70">00118</a>     ADD_UNDIRECTED_EDGE_IN_NO_REPLY_TAG,
<a name="l00119"></a>00119     <span class="comment">// Add an edge via (pedigree, pedigree); don't reply.</span>
<a name="l00120"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890a8a2a7133092c41300ef8021e1883833">00120</a>     ADD_DIRECTED_EDGE_NN_NO_REPLY_TAG,
<a name="l00121"></a><a class="code" href="a01188.html#8297412b2452cb6a62d10f4c0635c890402bf618ea890a31287b2070367bda54">00121</a>     ADD_UNDIRECTED_EDGE_NN_NO_REPLY_TAG
<a name="l00122"></a>00122   };
<a name="l00123"></a>00123 
<a name="l00125"></a>00125 
<a name="l00130"></a>00130   <span class="keywordtype">void</span> <a class="code" href="a00433.html#2f566829e245ed0e0d94b58e0528f48c">AddVertexInternal</a>(<a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a> *propertyArr, 
<a name="l00131"></a>00131                          <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> *vertex);
<a name="l00133"></a>00133   
<a name="l00136"></a>00136   <span class="keywordtype">void</span> <a class="code" href="a00433.html#2f566829e245ed0e0d94b58e0528f48c">AddVertexInternal</a>(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>&amp; pedigreeId, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> *vertex);
<a name="l00137"></a>00137 
<a name="l00139"></a>00139 
<a name="l00143"></a>00143   <span class="keywordtype">void</span> <a class="code" href="a00433.html#3d5a0440c299bacded8dd39f1c481bc3">AddEdgeInternal</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> u, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> v, <span class="keywordtype">bool</span> directed, 
<a name="l00144"></a>00144                        <a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a> *propertyArr, 
<a name="l00145"></a>00145                        <a class="code" href="a00454.html">vtkEdgeType</a> *edge);
<a name="l00147"></a>00147   
<a name="l00149"></a>00149 
<a name="l00155"></a>00155   <span class="keywordtype">void</span> <a class="code" href="a00433.html#3d5a0440c299bacded8dd39f1c481bc3">AddEdgeInternal</a>(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>&amp; uPedigreeId, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> v, 
<a name="l00156"></a>00156                        <span class="keywordtype">bool</span> directed, <a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a> *propertyArr, 
<a name="l00157"></a>00157                        <a class="code" href="a00454.html">vtkEdgeType</a> *edge);
<a name="l00159"></a>00159 
<a name="l00161"></a>00161 
<a name="l00167"></a>00167   <span class="keywordtype">void</span> <a class="code" href="a00433.html#3d5a0440c299bacded8dd39f1c481bc3">AddEdgeInternal</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> u, <span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>&amp; vPedigreeId, 
<a name="l00168"></a>00168                        <span class="keywordtype">bool</span> directed, <a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a> *propertyArr, 
<a name="l00169"></a>00169                        <a class="code" href="a00454.html">vtkEdgeType</a> *edge);
<a name="l00171"></a>00171 
<a name="l00173"></a>00173 
<a name="l00180"></a>00180   <span class="keywordtype">void</span> <a class="code" href="a00433.html#3d5a0440c299bacded8dd39f1c481bc3">AddEdgeInternal</a>(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>&amp; uPedigreeId, 
<a name="l00181"></a>00181                        <span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>&amp; vPedigreeId, 
<a name="l00182"></a>00182                        <span class="keywordtype">bool</span> directed, <a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a> *propertyArr, 
<a name="l00183"></a>00183                        <a class="code" href="a00454.html">vtkEdgeType</a> *edge); 
<a name="l00184"></a>00184   <span class="comment">// Description:</span>
<a name="l00185"></a>00185   <span class="comment">// Try to find the vertex with the given pedigree ID. Returns true and</span>
<a name="l00186"></a>00186   <span class="comment">// fills in the vertex ID if the vertex is found, and returns false</span>
<a name="l00187"></a>00187   <span class="comment">// otherwise;</span>
<a name="l00188"></a>00188   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00433.html#c2c39c1ce0fe34573818c5f77e0c36fc">FindVertex</a>(<span class="keyword">const</span> <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>&amp; pedigreeId);
<a name="l00190"></a>00190 
<a name="l00192"></a>00192 
<a name="l00195"></a>00195   <span class="keywordtype">void</span> <a class="code" href="a00433.html#16fae387f1b4bcb63a113ef07708108f">FindEdgeSourceAndTarget</a>(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <span class="keywordtype">id</span>, 
<a name="l00196"></a>00196                                <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> *<a class="code" href="a02995.html#7c22aa18a4e42c330618a6410d133551">source</a>, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> *<a class="code" href="a02995.html#fc938df20cbcc0144ed508333af97623">target</a>);
<a name="l00198"></a>00198 
<a name="l00200"></a>00200 
<a name="l00202"></a>00202   <span class="keywordtype">void</span> <a class="code" href="a00433.html#7527ce708d6ce4d064d54e0539ee3f0b">AttachToGraph</a>(<a class="code" href="a00654.html" title="Base class for graph data types.">vtkGraph</a> *graph);
<a name="l00203"></a>00203   <span class="comment">//ETX</span>
<a name="l00205"></a>00205 <span class="comment"></span>
<a name="l00206"></a>00206  <span class="keyword">private</span>:
<a name="l00207"></a>00207   <a class="code" href="a01188.html" title="end namespace boost::graph::distributed">vtkPBGLDistributedGraphHelper</a>(<span class="keyword">const</span> <a class="code" href="a01188.html" title="end namespace boost::graph::distributed">vtkPBGLDistributedGraphHelper</a>&amp;); <span class="comment">// Not implemented</span>
<a name="l00208"></a>00208   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01188.html" title="end namespace boost::graph::distributed">vtkPBGLDistributedGraphHelper</a>&amp;); <span class="comment">// Not implemented</span>
<a name="l00209"></a>00209 
<a name="l00210"></a>00210   <span class="comment">//BTX</span>
<a name="l00211"></a><a class="code" href="a01188.html#ddb1a2e1e53d91ab20a4febb2cc6fd9c">00211</a>   <span class="keyword">friend</span> <span class="keyword">class </span>vtkPBGLDistributedGraphHelperInternals;
<a name="l00212"></a>00212   <span class="comment">//ETX</span>
<a name="l00213"></a>00213 };
<a name="l00214"></a>00214 
<a name="l00215"></a>00215 <span class="preprocessor">#endif // __vtkPBGLDistributedGraphHelper_h</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:43 2009 for VTK by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>