MRPT  2.0.1
List of all members | Public Types | Public Member Functions
mrpt::graphs::CDirectedTree< TYPE_EDGES >::Visitor Struct Referenceabstract

Detailed Description

template<class TYPE_EDGES = uint8_t>
struct mrpt::graphs::CDirectedTree< TYPE_EDGES >::Visitor

Virtual base class for user-defined visitors.

Definition at line 95 of file CDirectedTree.h.

#include <mrpt/graphs/CDirectedTree.h>

Public Types

using tree_t = CDirectedTree< TYPE_EDGES >
 

Public Member Functions

virtual void OnVisitNode (const TNodeID parent, const typename tree_t::TEdgeInfo &edge_to_child, const size_t depth_level)=0
 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 edge in the tree. More...
 

Member Typedef Documentation

◆ tree_t

template<class TYPE_EDGES = uint8_t>
using mrpt::graphs::CDirectedTree< TYPE_EDGES >::Visitor::tree_t = CDirectedTree<TYPE_EDGES>

Definition at line 97 of file CDirectedTree.h.

Member Function Documentation

◆ OnVisitNode()

template<class TYPE_EDGES = uint8_t>
virtual void mrpt::graphs::CDirectedTree< TYPE_EDGES >::Visitor::OnVisitNode ( const TNodeID  parent,
const typename tree_t::TEdgeInfo edge_to_child,
const size_t  depth_level 
)
pure virtual

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 edge in the tree.

Parameters
parent[IN] The ID of the parent node.
edge_to_child[IN] The edge information from the parent to "edge_to_child.id"
depth_level[IN] The "depth level" of the child node "edge_to_child.id" (root node is at 0, its children are at 1, etc.).



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020