MRPT  1.9.9
mrpt::graphs::detail::NotConnectedGraph Class Reference

Detailed Description

Custom exception class that passes information in case an unconnected graph is passed to a Dijkstra instance.

Definition at line 31 of file dijkstra.h.

#include <mrpt/graphs/dijkstra.h>

Inheritance diagram for mrpt::graphs::detail::NotConnectedGraph:
Inheritance graph

Public Member Functions

 NotConnectedGraph (const std::set< mrpt::graphs::TNodeID > &unconnected_nodeIDs, std::string err)
const char * what ()
 ~NotConnectedGraph () throw ()
void getUnconnectedNodeIDs (std::set< mrpt::graphs::TNodeID > *set_nodeIDs) const
 Fill set with the nodeIDs Dijkstra algorithm could not reach starting from the root node. More...

Private Attributes

std::set< mrpt::graphs::TNodeIDm_unconnected_nodeIDs
std::string m_err

Constructor & Destructor Documentation

◆ NotConnectedGraph()

mrpt::graphs::detail::NotConnectedGraph::NotConnectedGraph ( const std::set< mrpt::graphs::TNodeID > &  unconnected_nodeIDs,
std::string  err 

Definition at line 34 of file dijkstra.h.

◆ ~NotConnectedGraph()

mrpt::graphs::detail::NotConnectedGraph::~NotConnectedGraph ( )
throw (

Definition at line 43 of file dijkstra.h.

Member Function Documentation

◆ getUnconnectedNodeIDs()

void mrpt::graphs::detail::NotConnectedGraph::getUnconnectedNodeIDs ( std::set< mrpt::graphs::TNodeID > *  set_nodeIDs) const

Fill set with the nodeIDs Dijkstra algorithm could not reach starting from the root node.

Definition at line 47 of file dijkstra.h.

References ASSERTMSG_, and m_unconnected_nodeIDs.

Referenced by mrpt::graphs::CNetworkOfPoses< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS >::extractSubGraph().

◆ what()

const char* mrpt::graphs::detail::NotConnectedGraph::what ( )

Definition at line 42 of file dijkstra.h.

References m_err.

Member Data Documentation

◆ m_err

std::string mrpt::graphs::detail::NotConnectedGraph::m_err

Definition at line 64 of file dijkstra.h.

Referenced by what().

◆ m_unconnected_nodeIDs

std::set<mrpt::graphs::TNodeID> mrpt::graphs::detail::NotConnectedGraph::m_unconnected_nodeIDs

Definition at line 63 of file dijkstra.h.

Referenced by getUnconnectedNodeIDs().

Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020