示例#1
0
 public void PerformLeafAction(Node2Leaf.ILeafAction func, bool call_on_empty_leaves)
 {
     if (call_on_empty_leaves)
     {
         if (func.LeafAction(this) == Node2Leaf.VorLeafRecursionResult.Abort)
         {
             return;
         }
     }
     else if (this.m_nodes != null && this.m_nodes.Count != 0 && func.LeafAction(this) == Node2Leaf.VorLeafRecursionResult.Abort)
     {
         return;
     }
     if (this.m_A != null)
     {
         this.m_A.PerformLeafAction(func, call_on_empty_leaves);
     }
     if (this.m_B != null)
     {
         this.m_B.PerformLeafAction(func, call_on_empty_leaves);
     }
     if (this.m_C != null)
     {
         this.m_C.PerformLeafAction(func, call_on_empty_leaves);
     }
     if (this.m_D == null)
     {
         return;
     }
     this.m_D.PerformLeafAction(func, call_on_empty_leaves);
 }
示例#2
0
 public void PerformAction(Node2Leaf.ILeafAction func, bool call_on_empty_leaves)
 {
     if (this.m_root == null)
     {
         return;
     }
     this.m_root.PerformLeafAction(func, call_on_empty_leaves);
 }