PGROUTING  3.2
pgrouting::yen::Pgr_turnRestrictedPath< G >::Myvisitor Class Reference

#include "pgr_turnRestrictedPath.hpp"

Inheritance diagram for pgrouting::yen::Pgr_turnRestrictedPath< G >::Myvisitor:
Collaboration diagram for pgrouting::yen::Pgr_turnRestrictedPath< G >::Myvisitor:

Public Member Functions

 Myvisitor (pSet &solutions, std::vector< trsp::Rule > &restrictions, bool stop_on_first)
 
void on_insert_first_solution (const Path path) const
 
void on_insert_to_heap (const Path path) const
 

Private Member Functions

bool has_restriction (const Path &path) const
 

Private Attributes

std::vector< trsp::Rule > & m_restrictions
 
pSetm_solutions
 
bool m_stop_on_first
 

Detailed Description

template<typename G>
class pgrouting::yen::Pgr_turnRestrictedPath< G >::Myvisitor

Definition at line 58 of file pgr_turnRestrictedPath.hpp.

Constructor & Destructor Documentation

◆ Myvisitor()

template<typename G >
pgrouting::yen::Pgr_turnRestrictedPath< G >::Myvisitor::Myvisitor ( pSet solutions,
std::vector< trsp::Rule > &  restrictions,
bool  stop_on_first 
)
inline

Definition at line 60 of file pgr_turnRestrictedPath.hpp.

63  :
64  m_stop_on_first(stop_on_first),
65  m_solutions(solutions),
66  m_restrictions(restrictions) {
67  }

Member Function Documentation

◆ has_restriction()

template<typename G >
bool pgrouting::yen::Pgr_turnRestrictedPath< G >::Myvisitor::has_restriction ( const Path path) const
inlineprivate

◆ on_insert_first_solution()

template<typename G >
void pgrouting::yen::Pgr_turnRestrictedPath< G >::Myvisitor::on_insert_first_solution ( const Path  path) const
inlinevirtual

◆ on_insert_to_heap()

template<typename G >
void pgrouting::yen::Pgr_turnRestrictedPath< G >::Myvisitor::on_insert_to_heap ( const Path  path) const
inlinevirtual

Member Data Documentation

◆ m_restrictions

template<typename G >
std::vector<trsp::Rule>& pgrouting::yen::Pgr_turnRestrictedPath< G >::Myvisitor::m_restrictions
private

◆ m_solutions

◆ m_stop_on_first


The documentation for this class was generated from the following file:
pgrouting::yen::Pgr_turnRestrictedPath::Myvisitor::m_solutions
pSet & m_solutions
Definition: pgr_turnRestrictedPath.hpp:101
pgrouting::yen::Pgr_turnRestrictedPath::Myvisitor::m_restrictions
std::vector< trsp::Rule > & m_restrictions
Definition: pgr_turnRestrictedPath.hpp:102
Path::empty
bool empty() const
Definition: basePath_SSEC.hpp:72
Path::has_restriction
bool has_restriction(const pgrouting::trsp::Rule &rule) const
Definition: basePath_SSEC.cpp:100
pgrouting::yen::Pgr_turnRestrictedPath::Myvisitor::m_stop_on_first
bool m_stop_on_first
Definition: pgr_turnRestrictedPath.hpp:100
pgrouting::yen::Pgr_turnRestrictedPath::Myvisitor::has_restriction
bool has_restriction(const Path &path) const
Definition: pgr_turnRestrictedPath.hpp:90