DGtal 1.3.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions
DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node Struct Reference

#include <DGtal/graph/DistanceBreadthFirstVisitor.h>

Inheritance diagram for DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node:

Public Types

typedef std::pair< Vertex, ScalarBase
 

Public Member Functions

 Node ()=default
 
 Node (const Node &other)=default
 
 Node (const Vertex &v, Scalar d)
 
bool operator< (const Node &other) const
 
bool operator<= (const Node &other) const
 
bool operator== (const Node &other) const
 
bool operator!= (const Node &other) const
 

Detailed Description

template<typename TGraph, typename TVertexFunctor, typename TMarkSet = typename TGraph::VertexSet>
struct DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node

The type storing the vertex and its distance. It is also a model of boost::LessComparable, boost::EqualityComparable.

Definition at line 229 of file DistanceBreadthFirstVisitor.h.

Member Typedef Documentation

◆ Base

template<typename TGraph , typename TVertexFunctor , typename TMarkSet = typename TGraph::VertexSet>
typedef std::pair< Vertex, Scalar > DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node::Base

Definition at line 231 of file DistanceBreadthFirstVisitor.h.

Constructor & Destructor Documentation

◆ Node() [1/3]

template<typename TGraph , typename TVertexFunctor , typename TMarkSet = typename TGraph::VertexSet>
DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node::Node ( )
inlinedefault

◆ Node() [2/3]

template<typename TGraph , typename TVertexFunctor , typename TMarkSet = typename TGraph::VertexSet>
DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node::Node ( const Node other)
inlinedefault

◆ Node() [3/3]

template<typename TGraph , typename TVertexFunctor , typename TMarkSet = typename TGraph::VertexSet>
DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node::Node ( const Vertex v,
Scalar  d 
)
inline

Definition at line 237 of file DistanceBreadthFirstVisitor.h.

238 : std::pair< Vertex, Scalar >( v, d )
239 {}

Member Function Documentation

◆ operator!=()

template<typename TGraph , typename TVertexFunctor , typename TMarkSet = typename TGraph::VertexSet>
bool DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node::operator!= ( const Node other) const
inline

Definition at line 252 of file DistanceBreadthFirstVisitor.h.

253 {
254 return other.second != second;
255 }

◆ operator<()

template<typename TGraph , typename TVertexFunctor , typename TMarkSet = typename TGraph::VertexSet>
bool DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node::operator< ( const Node other) const
inline

Definition at line 240 of file DistanceBreadthFirstVisitor.h.

241 {
242 return other.second < second;
243 }

◆ operator<=()

template<typename TGraph , typename TVertexFunctor , typename TMarkSet = typename TGraph::VertexSet>
bool DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node::operator<= ( const Node other) const
inline

Definition at line 244 of file DistanceBreadthFirstVisitor.h.

245 {
246 return other.second <= second;
247 }

◆ operator==()

template<typename TGraph , typename TVertexFunctor , typename TMarkSet = typename TGraph::VertexSet>
bool DGtal::DistanceBreadthFirstVisitor< TGraph, TVertexFunctor, TMarkSet >::Node::operator== ( const Node other) const
inline

Definition at line 248 of file DistanceBreadthFirstVisitor.h.

249 {
250 return other.second == second;
251 }

The documentation for this struct was generated from the following file: