Exemplo n.º 1
0
 public void PerformLeafAction(Node2Leaf.LeafAction func, bool call_on_empty_leaves)
 {
     if (call_on_empty_leaves)
     {
         if (func(this) == Node2Leaf.VorLeafRecursionResult.Abort)
         {
             return;
         }
     }
     else if (this.m_nodes != null && this.m_nodes.Count != 0 && func(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);
 }
Exemplo n.º 2
0
 public void PerformAction(Node2Leaf.LeafAction func, bool call_on_empty_leaves)
 {
     if (this.m_root == null)
     {
         return;
     }
     this.m_root.PerformLeafAction(func, call_on_empty_leaves);
 }