PGROUTING  3.2
pgrouting::Line_vertex Class Reference

#include "line_vertex.h"

Public Member Functions

 Line_vertex ()
 
 Line_vertex (const Line_vertex &v)
 
 Line_vertex (const pgr_edge_t &edge)
 
void cp_members (const Line_vertex &other)
 
void cp_members (int64_t _id, int64_t _source)
 

Public Attributes

double cost
 
int64_t id
 
int64_t source
 
int64_t target
 
int64_t vertex_id
 

Friends

std::ostream & operator<< (std::ostream &log, const Line_vertex &v)
 

Detailed Description

Definition at line 45 of file line_vertex.h.

Constructor & Destructor Documentation

◆ Line_vertex() [1/3]

pgrouting::Line_vertex::Line_vertex ( )
inline

Definition at line 47 of file line_vertex.h.

47  :
48  id(0) {}

◆ Line_vertex() [2/3]

pgrouting::Line_vertex::Line_vertex ( const pgr_edge_t edge)
inlineexplicit

Definition at line 50 of file line_vertex.h.

50  :
51  id(edge.id),
52  vertex_id(edge.id),
55  cost(edge.cost) {}

◆ Line_vertex() [3/3]

pgrouting::Line_vertex::Line_vertex ( const Line_vertex v)
inline

Definition at line 57 of file line_vertex.h.

57  :
58  id(v.id),
59  vertex_id(v.vertex_id),
60  source(v.source),
61  target(v.target),
62  cost(v.cost) {}

Member Function Documentation

◆ cp_members() [1/2]

void pgrouting::Line_vertex::cp_members ( const Line_vertex other)
inline

Definition at line 64 of file line_vertex.h.

64  {
65  this->id = other.id;
66  this->vertex_id = other.vertex_id;
67  this->cost = other.cost;
68  this->source = other.source;
69  this->target = other.target;
70  }

References cost, id, source, target, and vertex_id.

◆ cp_members() [2/2]

void pgrouting::Line_vertex::cp_members ( int64_t  _id,
int64_t  _source 
)
inline

Definition at line 72 of file line_vertex.h.

72  {
73  this->id = _id;
74  this->vertex_id = -1;
75  this->cost = 0;
76  this->source = _source;
77  this->target = -1;
78  }

References cost, source, target, and vertex_id.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  log,
const Line_vertex v 
)
friend

Definition at line 80 of file line_vertex.h.

80  {
81  log << "\nid = " << v.id;
82  log << " | vertex_id = " << v.vertex_id;
83  log << " | source = " << v.source;
84  log << " | target = " << v.target;
85  log << " | cost = " << v.cost;
86  return log;
87  }

Member Data Documentation

◆ cost

double pgrouting::Line_vertex::cost

Definition at line 94 of file line_vertex.h.

Referenced by cp_members().

◆ id

int64_t pgrouting::Line_vertex::id

Definition at line 90 of file line_vertex.h.

Referenced by cp_members().

◆ source

int64_t pgrouting::Line_vertex::source

Definition at line 92 of file line_vertex.h.

Referenced by cp_members().

◆ target

int64_t pgrouting::Line_vertex::target

Definition at line 93 of file line_vertex.h.

Referenced by cp_members().

◆ vertex_id

int64_t pgrouting::Line_vertex::vertex_id

Definition at line 91 of file line_vertex.h.

Referenced by cp_members().


The documentation for this class was generated from the following file:
edge::cost
float8 cost
Definition: trsp.h:45
edge::target
int64 target
Definition: trsp.h:44
pgrouting::Line_vertex::id
int64_t id
Definition: line_vertex.h:90
edge
Definition: trsp.h:41
pgrouting::Line_vertex::target
int64_t target
Definition: line_vertex.h:93
edge::source
int64 source
Definition: trsp.h:43
pgrouting::Line_vertex::vertex_id
int64_t vertex_id
Definition: line_vertex.h:91
edge::id
int64 id
Definition: trsp.h:42
pgrouting::Line_vertex::cost
double cost
Definition: line_vertex.h:94
pgrouting::Line_vertex::source
int64_t source
Definition: line_vertex.h:92