-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAuxiliary_Data_Structure.h
48 lines (38 loc) · 1.3 KB
/
Auxiliary_Data_Structure.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef AUXILIARY_DATA_STRUCTURE_H_INCLUDED
#define AUXILIARY_DATA_STRUCTURE_H_INCLUDED
#include "Exceptions_About_Memory.h"
enum InstType{Grid = 1, Random, Complete};
enum OverAllInfo{Root = 0, Min_Extremum, Max_Extremum, num_Items, num_Agencies};
enum Type_item{Terminal = 1, Partial_Knot, Complete_Knot, Juxta_Position};
enum Type_Position{Out = -1, Juxta = 0, In = 1};
enum Functional_cellular{Parent = 0, Left_child, Right_child, Cousin, Predecessor, Successor, Flexion, Self_counter, InOrOut, Auxiliary};
struct Cost_Range{
int Low_bound; int Up_bound;
void Initialize(){Low_bound = -1; Up_bound = -1;}
};
struct Info_collection{
INT64 Accounter;
int Flex_type;
int Key;
int Kind;
INT64 Length;
int Name;
int other;
int Quantity;
int Parent_Port;
int Port;
int Type;
void initialize(){
Accounter = 0; Kind = 0;//Flex_type = 0; Key = 0;
Length = 0; Name = 0; other = 0; Quantity = 0; Parent_Port = -1; Port = 0; Type = 0;
}
};
struct Traffic_info{
int ArrivalTime;
int CostTime;
int Lane;
INT64 QueryTimes;
INT64 SubQueryTime;
void initialize(){ArrivalTime = 0; CostTime = 0; Lane = 0; QueryTimes = 0; SubQueryTime = 0;}
};
#endif // AUXILIARY_DATA_STRUCTURE_H_INCLUDED