SUMO - Simulation of Urban MObility
NBDistribution.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // The base class for statistical distribution descriptions
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11 // Copyright (C) 2001-2014 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 #ifndef NBDistribution_h
22 #define NBDistribution_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <string>
35 #include <map>
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
47 public:
48  static bool dictionary(const std::string& type, const std::string& id,
49  Distribution* d);
50  static Distribution* dictionary(const std::string& type,
51  const std::string& id);
52  static void clear();
53 private:
54  typedef std::map<std::string, Distribution*> DistDict;
55  typedef std::map<std::string, DistDict> TypedDistDict;
56  static TypedDistDict myDict;
57 };
58 
59 
60 #endif
61 
62 /****************************************************************************/
63 
The base class for statistical distribution descriptions.
static bool dictionary(const std::string &type, const std::string &id, Distribution *d)
static TypedDistDict myDict
std::map< std::string, Distribution * > DistDict
std::map< std::string, DistDict > TypedDistDict
static void clear()