PGROUTING  3.2
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

◆ Identifier() [1/3]

pgrouting::Identifier::Identifier ( )
default

◆ Identifier() [2/3]

pgrouting::Identifier::Identifier ( const Identifier v)
default

◆ Identifier() [3/3]

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

◆ id()

◆ idx()

◆ reset_id()

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

Definition at line 47 of file identifier.cpp.

47  {
48  m_id = _id;
49 }

References m_id.

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

Friends And Related Function Documentation

◆ operator<<

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

◆ m_id

int64_t pgrouting::Identifier::m_id
private

Definition at line 53 of file identifier.h.

Referenced by id(), and reset_id().

◆ m_idx

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:
pgrouting::Identifier::m_idx
size_t m_idx
Definition: identifier.h:52
pgrouting::Identifier::m_id
int64_t m_id
Definition: identifier.h:53