SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
ROMAEdgeBuilder.cpp
Go to the documentation of this file.
1
/****************************************************************************/
9
// Interface for building instances of duarouter-edges
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12
// Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
#include "
ROMAEdgeBuilder.h
"
34
#include "
ROMAEdge.h
"
35
36
#ifdef CHECK_MEMORY_LEAKS
37
#include <
foreign/nvwa/debug_new.h
>
38
#endif // CHECK_MEMORY_LEAKS
39
40
41
// ===========================================================================
42
// method definitions
43
// ===========================================================================
44
ROMAEdgeBuilder::ROMAEdgeBuilder
() {
45
}
46
47
48
ROMAEdgeBuilder::~ROMAEdgeBuilder
() {}
49
50
51
ROEdge
*
52
ROMAEdgeBuilder::buildEdge
(
const
std::string& name,
RONode
* from,
RONode
* to,
const
int
priority) {
53
return
new
ROMAEdge
(name, from, to,
getNextIndex
(), priority);
54
}
55
56
57
/****************************************************************************/
58
ROMAEdge.h
windows_config.h
debug_new.h
config.h
ROMAEdgeBuilder::~ROMAEdgeBuilder
~ROMAEdgeBuilder()
Destructor.
Definition:
ROMAEdgeBuilder.cpp:48
ROMAEdgeBuilder.h
ROMAEdgeBuilder::buildEdge
ROEdge * buildEdge(const std::string &name, RONode *from, RONode *to, const int priority)
Builds an edge with the given name.
Definition:
ROMAEdgeBuilder.cpp:52
ROAbstractEdgeBuilder::getNextIndex
int getNextIndex()
Returns the index of the edge to built.
Definition:
ROAbstractEdgeBuilder.h:90
ROMAEdgeBuilder::ROMAEdgeBuilder
ROMAEdgeBuilder()
Constructor.
Definition:
ROMAEdgeBuilder.cpp:44
ROEdge
A basic edge for routing applications.
Definition:
ROEdge.h:77
RONode
Base class for nodes used by the router.
Definition:
RONode.h:53
ROMAEdge
A basic edge for routing applications.
Definition:
ROMAEdge.h:65
src
marouter
ROMAEdgeBuilder.cpp
Generated on Sun Mar 19 2017 15:07:43 for SUMO - Simulation of Urban MObility by
1.8.8