blob: 1bcd2c50605864d062ba4f04b913b00e5581fb1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef T2DLL_T2ROUTINGTABLEELEM_H
#define T2DLL_T2ROUTINGTABLEELEM_H
#include "../common.h"
class AFX_CLASS_EXPORT T2RoutingTableElem {
public:
T2RoutingTableElem();
~T2RoutingTableElem();
BOOL IsStopFloor() const;
void SetTable(unsigned int inNextFloorID, int inFinalHPos);
BOOL IsSetTable(unsigned int inNextFloorID, unsigned int inScore, int inTime, int inFinalHPos);
BOOL HasRoute() const;
BOOL HasNextRoute(unsigned int inFloorID) const;
unsigned int GetNextFloorID() const;
unsigned int GetScore() const;
int GetTime() const;
int GetFinalHPos() const;
protected:
unsigned int mNextFloorID;
unsigned int mScore;
int mTime;
int mFinalHPos;
};
inline unsigned int T2RoutingTableElem::GetNextFloorID() const { return mNextFloorID; }
inline unsigned int T2RoutingTableElem::GetScore() const { return mScore; }
inline int T2RoutingTableElem::GetTime() const { return mTime; }
inline int T2RoutingTableElem::GetFinalHPos() const { return mFinalHPos; }
inline BOOL T2RoutingTableElem::HasRoute() const { return (mNextFloorID != 0); }
#endif
|