Mercurial > hg > Database > jungle-sharp
comparison Main/jungle-main/traverser/InterfaceTraverser.cs @ 20:1f99e150f336
fix folder and add Object Mapper.
author | Kazuma Takeda |
---|---|
date | Thu, 15 Dec 2016 22:52:48 +0900 |
parents | |
children | 9588ad364fdd |
comparison
equal
deleted
inserted
replaced
19:0865819106cf | 20:1f99e150f336 |
---|---|
1 | |
2 namespace JungleDB { | |
3 public class InterfaceTraverser { | |
4 TreeNode root; | |
5 TreeMap<string, TreeMap<string, List<TreeNode>>> indexList; | |
6 ParentIndex parentIndex; | |
7 bool parentUpdateFlag; | |
8 bool useIndex; | |
9 | |
10 public InterfaceTraverser(TreeNode root, bool indexFlag) | |
11 : this (root, new TreeMap<string, TreeMap<string, List<TreeNode>>> (), new ParentIndex (), indexFlag) | |
12 { | |
13 } | |
14 | |
15 public InterfaceTraverser(TreeNode root, TreeMap<string, TreeMap<string, List<TreeNode>>> index, | |
16 ParentIndex parentIndex, bool useIndex) { | |
17 this.root = root; | |
18 this.indexList = index; | |
19 this.parentIndex = parentIndex; | |
20 if (parentIndex.isEmpty()) | |
21 parentUpdateFlag = true; | |
22 else | |
23 parentUpdateFlag = false; | |
24 this.useIndex = useIndex; | |
25 } | |
26 | |
27 public TreeMap<string, TreeMap<string, List<TreeNode>>> getIndex() { | |
28 return indexList; | |
29 } | |
30 | |
31 public void commit() { | |
32 parentUpdateFlag = false; | |
33 } | |
34 | |
35 public ParentIndex getParentIndex() { | |
36 return parentIndex; | |
37 } | |
38 } | |
39 } |