PGROUTING  3.2
pgrouting::trsp::Pgr_trspHandler::Predecessor Class Reference
Collaboration diagram for pgrouting::trsp::Pgr_trspHandler::Predecessor:

Public Member Functions

 Predecessor ()
 
bool isIllegal (Position i)
 
bool isIllegal (size_t i)
 

Public Attributes

std::vector< size_t > e_idx
 
std::vector< Positionv_pos
 

Detailed Description

Definition at line 71 of file pgr_trspHandler.h.

Constructor & Destructor Documentation

◆ Predecessor()

pgrouting::trsp::Pgr_trspHandler::Predecessor::Predecessor ( )
inline

Definition at line 73 of file pgr_trspHandler.h.

73  :
74  e_idx(2),
75  v_pos(2) {
76  for (auto &p : v_pos) p = ILLEGAL;
77  }

References pgrouting::trsp::Pgr_trspHandler::ILLEGAL, and v_pos.

Member Function Documentation

◆ isIllegal() [1/2]

bool pgrouting::trsp::Pgr_trspHandler::Predecessor::isIllegal ( Position  i)
inline

Definition at line 80 of file pgr_trspHandler.h.

80  {
81  pgassert(i != ILLEGAL);
82  if (i == ILLEGAL) return true;
83  return v_pos[static_cast<size_t>(i)] == ILLEGAL;}

References pgrouting::trsp::Pgr_trspHandler::ILLEGAL, pgassert, and v_pos.

◆ isIllegal() [2/2]

bool pgrouting::trsp::Pgr_trspHandler::Predecessor::isIllegal ( size_t  i)
inline

Definition at line 79 of file pgr_trspHandler.h.

79 {return v_pos[i] == ILLEGAL;}

References pgrouting::trsp::Pgr_trspHandler::ILLEGAL, and v_pos.

Member Data Documentation

◆ e_idx

std::vector<size_t> pgrouting::trsp::Pgr_trspHandler::Predecessor::e_idx

Definition at line 85 of file pgr_trspHandler.h.

◆ v_pos

std::vector<Position> pgrouting::trsp::Pgr_trspHandler::Predecessor::v_pos

Definition at line 86 of file pgr_trspHandler.h.

Referenced by isIllegal(), and Predecessor().


The documentation for this class was generated from the following file:
pgrouting::trsp::Pgr_trspHandler::ILLEGAL
@ ILLEGAL
Definition: pgr_trspHandler.h:68
pgrouting::trsp::Pgr_trspHandler::Predecessor::v_pos
std::vector< Position > v_pos
Definition: pgr_trspHandler.h:86
pgassert
#define pgassert(expr)
Uses the standard assert syntax.
Definition: pgr_assert.h:94
pgrouting::trsp::Pgr_trspHandler::Predecessor::e_idx
std::vector< size_t > e_idx
Definition: pgr_trspHandler.h:85