Eclipse SUMO - Simulation of Urban MObility
MSTrigger.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
16 // An abstract device that changes the state of the micro simulation
17 /****************************************************************************/
18 #ifndef MSTrigger_h
19 #define MSTrigger_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <set>
28 #include <utils/common/Named.h>
29 
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
41 class MSTrigger : public Named {
42 public:
47  MSTrigger(const std::string& id);
48 
50  virtual ~MSTrigger();
51 
53  static void cleanup();
54 
55 private:
57  MSTrigger(const MSTrigger&);
58 
60  MSTrigger& operator=(const MSTrigger&);
61 
62  static std::set<MSTrigger*> myInstances;
63 
64 };
65 
66 
67 #endif
68 
69 /****************************************************************************/
70 
MSTrigger::operator=
MSTrigger & operator=(const MSTrigger &)
Invalidated assignment operator.
MSTrigger::~MSTrigger
virtual ~MSTrigger()
Destructor.
Definition: MSTrigger.cpp:39
Named
Base class for objects which have an id.
Definition: Named.h:57
MSTrigger::myInstances
static std::set< MSTrigger * > myInstances
Definition: MSTrigger.h:62
MSTrigger::cleanup
static void cleanup()
properly deletes all trigger instances
Definition: MSTrigger.cpp:44
Named.h
MSTrigger
An abstract device that changes the state of the micro simulation.
Definition: MSTrigger.h:41
config.h
MSTrigger::MSTrigger
MSTrigger(const std::string &id)
Constructor.
Definition: MSTrigger.cpp:33