![]() |
vrpRouting
0.3
|
Class that stores the information about identifiers. More...
#include "identifier.h"
Public Member Functions | |
Identifier ()=default | |
Identifier (const Identifier &v)=default | |
Identifier (size_t _idx, int64_t _id) | |
Private Attributes | |
int64_t | m_id |
size_t | m_idx |
Friends | |
std::ostream & | operator<< (std::ostream &log, const Identifier &) |
print the Identifier information More... | |
Class that stores the information about identifiers.
Data comes with an identifier
Example use:
Definition at line 65 of file identifier.h.
|
default |
|
default |
vrprouting::Identifier::Identifier | ( | size_t | _idx, |
int64_t | _id | ||
) |
Definition at line 30 of file identifier.cpp.
int64_t vrprouting::Identifier::id | ( | ) | const |
get the original id
Definition at line 42 of file identifier.cpp.
References m_id.
Referenced by vrprouting::problem::Vehicle_node::get_postgres_result(), vrprouting::problem::Vehicle_pickDeliver::hillClimb(), vrprouting::problem::Vehicle::is_phony(), vrprouting::operator<<(), vrprouting::problem::operator<<(), vrprouting::problem::Tw_node::operator==(), vrprouting::problem::Vehicle_pickDeliver::set_initial_solution(), vrprouting::problem::Vehicle_pickDeliver::set_unmovable(), vrprouting::problem::Vehicle::tau(), and vrprouting::problem::Tw_node::travel_time_to().
size_t vrprouting::Identifier::idx | ( | ) | const |
get the internal index
Definition at line 37 of file identifier.cpp.
References m_idx.
Referenced by vrprouting::problem::Vehicle_pickDeliver::erase(), vrprouting::problem::Vehicle::erase(), vrprouting::problem::Vehicle_pickDeliver::has_order(), vrprouting::problem::Vehicle_pickDeliver::hillClimb(), vrprouting::operator<<(), vrprouting::problem::operator<<(), vrprouting::problem::Tw_node::operator==(), vrprouting::problem::Vehicle_pickDeliver::push_back(), vrprouting::problem::Vehicle_pickDeliver::push_front(), vrprouting::problem::Vehicle_pickDeliver::semiLIFO(), vrprouting::problem::Order::set_compatibles(), and vrprouting::problem::Vehicle::tau().
void vrprouting::Identifier::reset_id | ( | int64_t | _id | ) |
change the original id
Definition at line 47 of file identifier.cpp.
References m_id.
Referenced by vrprouting::problem::Tw_node::Tw_node().
|
friend |
print the Identifier information
Definition at line 51 of file identifier.cpp.
|
private |
Definition at line 87 of file identifier.h.
Referenced by id(), and reset_id().
|
private |
Definition at line 86 of file identifier.h.
Referenced by idx().