PGROUTING  3.2
pgr_contract.cpp
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: pgr_contract.cpp
3 
4 Generated with Template by:
5 Copyright (c) 2015 pgRouting developers
7 
8 Function's developer:
9 Copyright (c) 2016 Rohith Reddy
10 Mail:
11 
12 ------
13 
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation; either version 2 of the License, or
17 (at your option) any later version.
18 
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
23 
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 
28  ********************************************************************PGR-GNU*/
29 
31 
32 namespace pgrouting {
33 namespace contraction {
34 
35 bool is_valid_contraction(int number) {
36  switch (number) {
37  case 1:
38  case 2:
39  return true;
40  break;
41  default:
42  return false;
43  break;
44  }
45 }
46 
47 } // namespace contraction
48 } // namespace pgrouting
pgr_contract.hpp
pgrouting::contraction::is_valid_contraction
bool is_valid_contraction(int number)
Definition: pgr_contract.cpp:35
pgrouting
Book keeping class for swapping orders between vehicles.
Definition: pgr_alphaShape.cpp:56