<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>mrpt::graphs::CDirectedTree::Visitor Struct Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <div align="left"><a href="http://www.mrpt.org/">Main MRPT website</a> > <b>C++ reference</b> </div> <div align="right"> <a href="index.html"><img border="0" src="mrpt_logo.png" alt="MRPT logo"></a> </div> <!-- Generated by Doxygen 1.7.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <div class="left"> <form id="FSearchBox" action="search.php" method="get"> <img id="MSearchSelect" src="search/mag.png" alt=""/> <input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)"/> </form> </div><div class="right"></div> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacemrpt.html">mrpt</a> </li> <li class="navelem"><a class="el" href="namespacemrpt_1_1graphs.html">graphs</a> </li> <li class="navelem"><a class="el" href="classmrpt_1_1graphs_1_1_c_directed_tree.html">CDirectedTree</a> </li> <li class="navelem"><a class="el" href="structmrpt_1_1graphs_1_1_c_directed_tree_1_1_visitor.html">Visitor</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">mrpt::graphs::CDirectedTree::Visitor Struct Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="mrpt::graphs::CDirectedTree::Visitor" --><hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Virtual base class for user-defined visitors. </p> </div> <p><code>#include <<a class="el" href="_c_directed_tree_8h_source.html">mrpt/graphs/CDirectedTree.h</a>></code></p> <p><a href="structmrpt_1_1graphs_1_1_c_directed_tree_1_1_visitor-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classmrpt_1_1graphs_1_1_c_directed_tree.html">CDirectedTree</a>< TYPE_EDGES > </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1graphs_1_1_c_directed_tree_1_1_visitor.html#a2e245f6894582ee25f8cf2615b433fb6">tree_t</a></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="structmrpt_1_1graphs_1_1_c_directed_tree_1_1_visitor.html#acfce764b342a2b6b21361effc7d6f47c">OnVisitNode</a> (const <a class="el" href="namespacemrpt_1_1utils.html#a718b4f99645b7e9f6501c9b7bb2a2fe7">TNodeID</a> parent, const typename <a class="el" href="structmrpt_1_1graphs_1_1_c_directed_tree_1_1_t_edge_info.html">tree_t::TEdgeInfo</a> &edge_to_child, const size_t depth_level)=0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual method to be implemented by the user and which will be called during the visit to a graph with visitDepthFirst or visitBreadthFirst Specifically, the method will be called once for each <b>edge</b> in the tree. <a href="#acfce764b342a2b6b21361effc7d6f47c"></a><br/></td></tr> </table> <hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="a2e245f6894582ee25f8cf2615b433fb6"></a><!-- doxytag: member="mrpt::graphs::CDirectedTree::Visitor::tree_t" ref="a2e245f6894582ee25f8cf2615b433fb6" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="classmrpt_1_1graphs_1_1_c_directed_tree.html">CDirectedTree</a><TYPE_EDGES> <a class="el" href="structmrpt_1_1graphs_1_1_c_directed_tree_1_1_visitor.html#a2e245f6894582ee25f8cf2615b433fb6">mrpt::graphs::CDirectedTree::Visitor::tree_t</a></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="_c_directed_tree_8h_source.html#l00082">82</a> of file <a class="el" href="_c_directed_tree_8h_source.html">CDirectedTree.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="acfce764b342a2b6b21361effc7d6f47c"></a><!-- doxytag: member="mrpt::graphs::CDirectedTree::Visitor::OnVisitNode" ref="acfce764b342a2b6b21361effc7d6f47c" args="(const TNodeID parent, const typename tree_t::TEdgeInfo &edge_to_child, const size_t depth_level)=0" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void mrpt::graphs::CDirectedTree::Visitor::OnVisitNode </td> <td>(</td> <td class="paramtype">const <a class="el" href="namespacemrpt_1_1utils.html#a718b4f99645b7e9f6501c9b7bb2a2fe7">TNodeID</a> </td> <td class="paramname"><em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const typename <a class="el" href="structmrpt_1_1graphs_1_1_c_directed_tree_1_1_t_edge_info.html">tree_t::TEdgeInfo</a> & </td> <td class="paramname"><em>edge_to_child</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const size_t </td> <td class="paramname"><em>depth_level</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [pure virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Virtual method to be implemented by the user and which will be called during the visit to a graph with visitDepthFirst or visitBreadthFirst Specifically, the method will be called once for each <b>edge</b> in the tree. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">parent</td><td>[IN] The ID of the parent node. </td></tr> <tr><td class="paramname">edge_to_child</td><td>[IN] The edge information from the parent to "edge_to_child.id" </td></tr> <tr><td class="paramname">depth_level</td><td>[IN] The "depth level" of the child node "edge_to_child.id" (root node is at 0, its children are at 1, etc.). </td></tr> </table> </dd> </dl> </div> </div> </div> <br><hr><br> <table border="0" width="100%"> <tr> <td> Page generated by <a href="http://www.doxygen.org" target="_blank">Doxygen 1.7.5</a> for MRPT 0.9.5 SVN: at Sun Sep 25 17:20:18 UTC 2011</td><td></td> <td width="100"> </td> <td width="150"> </td></tr> </table> </body></html>