PGROUTING  3.2
dnode.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 
3 FILE: dnode.h
4 
5 Copyright (c) 2015 pgRouting developers
7 
8 ------
9 
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14 
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19 
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 
24  ********************************************************************PGR-GNU*/
25 
28 #ifndef INCLUDE_VRP_DNODE_H_
29 #define INCLUDE_VRP_DNODE_H_
30 #pragma once
31 
32 #include <string>
33 #include <iosfwd>
34 #include "cpp_common/identifier.h"
36 
37 namespace pgrouting {
38 namespace vrp {
39 
40 class Pgr_pickDeliver;
41 class PD_problem;
42 
48 class Dnode : public Identifier {
49  friend PD_problem;
50 
51  public:
55  Dnode() = default;
57  Dnode(size_t id, int64_t original_id);
62  double distance(const Dnode &other) const;
63 
64  friend std::ostream& operator << (std::ostream &log, const Dnode &node);
65 
66  protected:
67  static Pgr_messages& msg() ;
68 
71 
72 };
73 
74 } // namespace vrp
75 } // namespace pgrouting
76 
77 #endif // INCLUDE_VRP_DNODE_H_
pgrouting::Pgr_messages
Definition: pgr_messages.h:39
pgrouting::vrp::Dnode
The Dnode class defines a the basic operations when data is a matrix.
Definition: dnode.h:48
pgrouting::vrp::Dnode::distance
double distance(const Dnode &other) const
Definition: dnode.cpp:43
pgr_messages.h
pgrouting::vrp::Dnode::problem
static Pgr_pickDeliver * problem
The problem.
Definition: dnode.h:70
pgrouting::vrp::Dnode::PD_problem
friend PD_problem
Definition: dnode.h:49
pgrouting::vrp::Pgr_pickDeliver
Definition: pgr_pickDeliver.h:57
identifier.h
pgrouting::vrp::Dnode::operator<<
friend std::ostream & operator<<(std::ostream &log, const Dnode &node)
Definition: dnode.cpp:35
pgrouting::Identifier
Definition: identifier.h:39
pgrouting::vrp::Dnode::msg
static Pgr_messages & msg()
pgrouting::vrp::Dnode::Dnode
Dnode()=default
pgrouting
Book keeping class for swapping orders between vehicles.
Definition: pgr_alphaShape.cpp:56