PGROUTING  2.6
pgrouting::Identifier Class Reference

#include "identifier.h"

Inheritance diagram for pgrouting::Identifier:

Public Member Functions

 Identifier ()=default
 
 Identifier (const Identifier &v)=default
 
 Identifier (const size_t _idx, const int64_t _id)
 
int64_t id () const
 
size_t idx () const
 
void reset_id (int64_t)
 

Private Attributes

int64_t m_id
 
size_t m_idx
 

Friends

std::ostream & operator<< (std::ostream &log, const Identifier &)
 

Detailed Description

Definition at line 39 of file identifier.h.

Constructor & Destructor Documentation

pgrouting::Identifier::Identifier ( )
default
pgrouting::Identifier::Identifier ( const Identifier v)
default
pgrouting::Identifier::Identifier ( const size_t  _idx,
const int64_t  _id 
)

Definition at line 30 of file identifier.cpp.

32  :
33  m_idx(_idx),
34  m_id(_id) {}

Member Function Documentation

void pgrouting::Identifier::reset_id ( int64_t  _id)

Definition at line 47 of file identifier.cpp.

References m_id.

Referenced by pgrouting::vrp::Tw_node::Tw_node().

47  {
48  m_id = _id;
49 }

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  log,
const Identifier ident 
)
friend

Definition at line 51 of file identifier.cpp.

51  {
52  log << "id(idx) = " << ident.id() << "(" << ident.idx() << ")";
53  return log;
54 }

Member Data Documentation

int64_t pgrouting::Identifier::m_id
private

Definition at line 53 of file identifier.h.

Referenced by id(), and reset_id().

size_t pgrouting::Identifier::m_idx
private

Definition at line 52 of file identifier.h.

Referenced by idx().


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