VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scheduler.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include <vlutil/vlList.h>
9 #include <vrfutil/simClock.h>
10 
11 class DtTimer;
12 class DtSimManager;
13 
22 #include "vrfcore/vrfcoreDefines.h"
23 class DT_DLL_vrfcore DtScheduler : public DtIntrusiveList
24 {
25 public:
26 
29  DtScheduler();
30  DtScheduler(DtSimManager * simManager);
31 
33  DtScheduler(const DtScheduler& orig);
34 
36  DtScheduler& operator=(const DtScheduler& orig);
37 
39  virtual ~DtScheduler();
40 
48  virtual void tick();
49 
52 
56  virtual void addTimer(DtTimer *timer);
57 
60  virtual void removeTimer (DtTimer *timer);
61 
64  virtual void reset(bool clearAll = false);
65 
68  void reSort(DtTimer *timer);
69 
70 protected:
71 
73  void doPendingResorts();
74 
77  void moveToEnd(DtTimer *timer);
78 
82  bool myInTick;
83 
85 };
class DtScheduler
Definition: scheduler.h:23
Instances of DtTimer are used to maintain the information needed to represent some kind of scheduled ...
Definition: timer.h:45
bool myInTick
If in tick, ReSort() does NOT resort.
Definition: scheduler.h:82
DtSimManager * mySimManager
Definition: scheduler.h:84
File: vlClock.h.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
#define DT_DLL_vrfcore
This file is used to determine how to build.
Definition: vrfcoreDefines.h:25

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)