PGROUTING  2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pgrouting::Basic_vertex Class Reference

#include "basic_vertex.h"

Public Member Functions

 Basic_vertex ()
 
 Basic_vertex (const Basic_vertex &v)
 
 Basic_vertex (const int64_t _id)
 
 Basic_vertex (const pgr_edge_t &other, bool is_source)
 
void cp_members (const Basic_vertex &other)
 

Public Attributes

int64_t id
 
size_t vertex_index
 

Friends

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

Detailed Description

Definition at line 40 of file basic_vertex.h.

Constructor & Destructor Documentation

pgrouting::Basic_vertex::Basic_vertex ( )
inline

Definition at line 42 of file basic_vertex.h.

42  :
43  id(0) {}
pgrouting::Basic_vertex::Basic_vertex ( const Basic_vertex v)
inline

Definition at line 44 of file basic_vertex.h.

44  :
45  id(v.id) {}
pgrouting::Basic_vertex::Basic_vertex ( const int64_t  _id)
inlineexplicit

Definition at line 47 of file basic_vertex.h.

47  :
48  id(_id) {}
pgrouting::Basic_vertex::Basic_vertex ( const pgr_edge_t other,
bool  is_source 
)
inline

Definition at line 50 of file basic_vertex.h.

50  :
51  id(is_source? other.source : other.target) {}
int64_t source
Definition: pgr_edge_t.h:60
int64_t target
Definition: pgr_edge_t.h:61

Member Function Documentation

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

Definition at line 53 of file basic_vertex.h.

References id.

53  {
54  this->id = other.id;
55  }

Friends And Related Function Documentation

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

Definition at line 37 of file basic_vertex.cpp.

37  {
38  log << v.id;
39  return log;
40  }

Member Data Documentation

int64_t pgrouting::Basic_vertex::id
size_t pgrouting::Basic_vertex::vertex_index

Definition at line 61 of file basic_vertex.h.


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