Example #1
0
        public void SetComparisonfunction(PComparisonfunction node)
        {
            if(_comparisonfunction_ != null)
            {
            _comparisonfunction_.Parent(null);
            }

            if(node != null)
            {
            if(node.Parent() != null)
            {
                node.Parent().RemoveChild(node);
            }

            node.Parent(this);
            }

            _comparisonfunction_ = node;
        }
Example #2
0
 internal override void RemoveChild(Node child)
 {
     if ( _a_ == child )
     {
     _a_ = null;
     return;
     }
     if ( _comparisonfunction_ == child )
     {
     _comparisonfunction_ = null;
     return;
     }
     if ( _b_ == child )
     {
     _b_ = null;
     return;
     }
 }
Example #3
0
     public ATest(
         PSimple _a_,
         PComparisonfunction _comparisonfunction_,
         PSimple _b_
 )
     {
         SetA (_a_);
         SetComparisonfunction (_comparisonfunction_);
         SetB (_b_);
     }