SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
RODFEdgeBuilder.cpp
Go to the documentation of this file.
1
/****************************************************************************/
10
// Interface for building instances of dfrouter-edges
11
/****************************************************************************/
12
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
13
// Copyright (C) 2006-2014 DLR (http://www.dlr.de/) and contributors
14
/****************************************************************************/
15
//
16
// This file is part of SUMO.
17
// SUMO is free software: you can redistribute it and/or modify
18
// it under the terms of the GNU General Public License as published by
19
// the Free Software Foundation, either version 3 of the License, or
20
// (at your option) any later version.
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 "
RODFEdgeBuilder.h
"
34
#include "
RODFEdge.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
RODFEdgeBuilder::RODFEdgeBuilder
() {}
45
46
47
RODFEdgeBuilder::~RODFEdgeBuilder
() {}
48
49
50
ROEdge
*
51
RODFEdgeBuilder::buildEdge
(
const
std::string& name,
RONode
* from,
RONode
* to,
const
int
priority) {
52
return
new
RODFEdge
(name, from, to,
getNextIndex
(), priority);
53
}
54
55
56
/****************************************************************************/
57
RODFEdge.h
ROAbstractEdgeBuilder::getNextIndex
unsigned int getNextIndex()
Returns the index of the edge to built.
Definition:
ROAbstractEdgeBuilder.h:90
windows_config.h
debug_new.h
config.h
RODFEdgeBuilder::~RODFEdgeBuilder
~RODFEdgeBuilder()
Destructor.
Definition:
RODFEdgeBuilder.cpp:47
RODFEdgeBuilder::buildEdge
ROEdge * buildEdge(const std::string &name, RONode *from, RONode *to, const int priority)
Builds an edge with the given name.
Definition:
RODFEdgeBuilder.cpp:51
RODFEdgeBuilder::RODFEdgeBuilder
RODFEdgeBuilder()
Constructor.
Definition:
RODFEdgeBuilder.cpp:44
RODFEdgeBuilder.h
ROEdge
A basic edge for routing applications.
Definition:
ROEdge.h:69
RONode
Base class for nodes used by the router.
Definition:
RONode.h:51
RODFEdge
Definition:
RODFEdge.h:55
build
buildd
sumo-0.21.0+dfsg
src
dfrouter
RODFEdgeBuilder.cpp
Generated on Wed Mar 18 2015 22:57:48 for SUMO - Simulation of Urban MObility by
1.8.9.1