SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MFXEventQue.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // missing_desc
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 MFXEventQue_h
21 #define MFXEventQue_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 #include <fx.h>
34 #include <list>
36 
37 class MFXEventQue {
38 public:
41 
42  void* top();
43  void pop();
44  void add(void* what);
45  size_t size();
46  bool empty();
47 private:
49  std::list<void*> myEvents;
50 };
51 
52 
53 #endif
54 
55 /****************************************************************************/
56 
size_t size()
Definition: MFXEventQue.cpp:65
void * top()
Definition: MFXEventQue.cpp:39
MFXMutex myMutex
Definition: MFXEventQue.h:48
std::list< void * > myEvents
Definition: MFXEventQue.h:49
void add(void *what)
Definition: MFXEventQue.cpp:57
bool empty()
Definition: MFXEventQue.cpp:74