SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NIVissimNodeDef_Edges.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // -------------------
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
10 // Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO 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 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef NIVissimNodeDef_Edges_h
21 #define NIVissimNodeDef_Edges_h
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 
34 #include <string>
35 #include <map>
38 #include "NIVissimNodeDef.h"
39 
41  public NIVissimNodeDef {
42 public:
43  NIVissimNodeDef_Edges(int id, const std::string& name,
45  virtual ~NIVissimNodeDef_Edges();
46  static bool dictionary(int id, const std::string& name,
48 // virtual void computeBounding();
49  virtual void searchAndSetConnections();
50  virtual SUMOReal getEdgePosition(int edgeid) const;
51 
55  class id_matches {
56  public:
57  explicit id_matches(int id) : myEdgeID(id) { }
59  return e->getID() == myEdgeID;
60  }
61  private:
62  int myEdgeID;
63  };
64 
66  public:
69  return e->getEdgeID() == myEdge->getID() &&
71  }
72  private:
74  };
75 
76 protected:
78 };
79 
80 
81 #endif
82 
83 /****************************************************************************/
84 
virtual void searchAndSetConnections()
bool operator()(NIVissimExtendedEdgePoint *e)
bool operator()(NIVissimNodeParticipatingEdge *e)
virtual SUMOReal getEdgePosition(int edgeid) const
static bool dictionary(int id, const std::string &name, const NIVissimNodeParticipatingEdgeVector &edges)
lying_within_match(NIVissimNodeParticipatingEdge *e)
NIVissimNodeParticipatingEdge * myEdge
std::vector< NIVissimNodeParticipatingEdge * > NIVissimNodeParticipatingEdgeVector
NIVissimNodeDef_Edges(int id, const std::string &name, const NIVissimNodeParticipatingEdgeVector &edges)
#define SUMOReal
Definition: config.h:221
NIVissimNodeParticipatingEdgeVector myEdges