PGROUTING  2.6-dev
pgrouting::Line_vertex Class Reference

#include "line_vertex.h"

Public Member Functions

 Line_vertex ()
 
 Line_vertex (const pgr_edge_t &edge)
 
 Line_vertex (const Line_vertex &v)
 
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

pgrouting::Line_vertex::Line_vertex ( )
inline

Definition at line 47 of file line_vertex.h.

47  :
48  id(0) {}
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),
53  source(edge.source),
54  target(edge.target),
55  cost(edge.cost) {}
int64_t source
Definition: pgr_edge_t.h:60
int64_t target
Definition: pgr_edge_t.h:61
int64_t id
Definition: pgr_edge_t.h:59
double cost
Definition: pgr_edge_t.h:62
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

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

Definition at line 64 of file line_vertex.h.

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

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  }
void pgrouting::Line_vertex::cp_members ( int64_t  _id,
int64_t  _source 
)
inline

Definition at line 72 of file line_vertex.h.

References cost, source, target, and vertex_id.

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

Friends And Related Function Documentation

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

double pgrouting::Line_vertex::cost

Definition at line 94 of file line_vertex.h.

Referenced by cp_members().

int64_t pgrouting::Line_vertex::id

Definition at line 90 of file line_vertex.h.

Referenced by cp_members().

int64_t pgrouting::Line_vertex::source

Definition at line 92 of file line_vertex.h.

Referenced by cp_members().

int64_t pgrouting::Line_vertex::target

Definition at line 93 of file line_vertex.h.

Referenced by cp_members().

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: